projects
/
emu8051.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
696410c
)
Fix bug with children not resizing with main window
author
Hugo Villeneuve
<hugo@hugovil.com>
Sat, 5 Oct 2013 16:42:51 +0000
(12:42 -0400)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Thu, 10 Oct 2013 01:07:22 +0000
(21:07 -0400)
src/emugtk.c
patch
|
blob
|
history
diff --git
a/src/emugtk.c
b/src/emugtk.c
index
224bc93
..
7742788
100644
(file)
--- a/
src/emugtk.c
+++ b/
src/emugtk.c
@@
-250,13
+250,20
@@
AddMenu(void)
return menu_bar;
}
return menu_bar;
}
-static
void
+static
int
mainwin_configure_event(GtkWindow *window, GdkEvent *event, gpointer data)
{
//event->configure.x;
//event->configure.y;
cfg->win_width = event->configure.width;
cfg->win_height = event->configure.height;
mainwin_configure_event(GtkWindow *window, GdkEvent *event, gpointer data)
{
//event->configure.x;
//event->configure.y;
cfg->win_width = event->configure.width;
cfg->win_height = event->configure.height;
+
+ /*
+ * Important:
+ * Returning false allows event to propagate to children. If not, they
+ * will not be resized when we resize the main window.
+ */
+ return FALSE;
}
static void
}
static void