X-Git-Url: http://git.lttng.org/?p=lttv.git;a=blobdiff_plain;f=lttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Finterface.c;h=9e55661fa2a47fe8d3b64639888d111bdec817dd;hp=4f12082164dea00c5b6fe1b25fbe47c6ac042ecd;hb=9a366873e0ed6ecc7f23e2d3a959ecddd4f2f91d;hpb=2dd99ee20f5205f235e36af08b89cbc8252c642e diff --git a/lttv/modules/gui/lttvwindow/lttvwindow/interface.c b/lttv/modules/gui/lttvwindow/lttvwindow/interface.c index 4f120821..9e55661f 100644 --- a/lttv/modules/gui/lttvwindow/lttvwindow/interface.c +++ b/lttv/modules/gui/lttvwindow/lttvwindow/interface.c @@ -142,8 +142,13 @@ create_MWindow (void) MWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_set_size_request (MWindow, 100, 50); gtk_window_set_title (GTK_WINDOW (MWindow), "Linux Trace Toolkit Viewer"); + + /* making the window a size higher than 80% of the screen cause a gtk glitch + * where the window is automaticly going fullscreen but the widgets stay + * the normal size. + */ gtk_window_set_default_size (GTK_WINDOW (MWindow), - gdk_screen_width()*0.9, gdk_screen_height()*0.9); + gdk_screen_width()*0.8, gdk_screen_height()*0.8); gtk_window_set_icon(GTK_WINDOW(MWindow), create_pixbuf("lttng_logo.svg")); MVbox = gtk_vbox_new (FALSE, 0);