X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Femugtk.c;h=774278880a5f4d37eea5033231a5af9375b01545;hb=ba7ff1a7a78b3aa7c2cad9bfce117256638938b1;hp=224bc938a9f974d7658b2379c23bdb4dc6f613c1;hpb=696410ca8d43542b2a1cd19e00498e9532495623;p=emu8051.git diff --git a/src/emugtk.c b/src/emugtk.c index 224bc93..7742788 100644 --- a/src/emugtk.c +++ b/src/emugtk.c @@ -250,13 +250,20 @@ AddMenu(void) 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; + + /* + * 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