aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/gui_utils.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-10-30 22:39:52 +0000
committerGerald Combs <gerald@wireshark.org>2013-10-30 22:39:52 +0000
commit9075922f42fb9a7c4209c96e21b9f9f7ab9c2bbd (patch)
treeba7b5e2109ca3bff1f169876f51857fa321480e7 /ui/gtk/gui_utils.c
parentb84fee4fc7b96b9ccc39c1ce91fb553c7913da8d (diff)
Add initial support for geometry settings in the main window.
In the current Qt startup sequence the main window + splash screen is displayed before the main preferences are loaded which means we can't immediately apply the correct geometry. For now, use an animation to morph from the default to the saved geometry after the prefs are loaded. Get rid of main_do_quit() (Qt) and main_window_exit() (Qt+GTK). It looks like they were unused. Add wsApp->isInitialized() and use it to see if we should exit() when the main window is closed. Otherwise we won't shut the application down and clean up properly. svn path=/trunk/; revision=52988
Diffstat (limited to 'ui/gtk/gui_utils.c')
-rw-r--r--ui/gtk/gui_utils.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/ui/gtk/gui_utils.c b/ui/gtk/gui_utils.c
index c08ba8a9a4..8fc19d0e76 100644
--- a/ui/gtk/gui_utils.c
+++ b/ui/gtk/gui_utils.c
@@ -548,13 +548,6 @@ main_window_update(void)
gtk_main_iteration();
}
-/* exit the main window */
-void
-main_window_exit(void)
-{
- exit(0);
-}
-
#ifdef HAVE_LIBPCAP
/* quit a nested main window */
@@ -572,8 +565,6 @@ main_window_quit(void)
gtk_main_quit();
}
-
-
typedef struct pipe_input_tag {
gint source;
gpointer user_data;