aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/dlg_utils.h
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2014-06-19 12:40:11 -0700
committerBalint Reczey <balint@balintreczey.hu>2014-06-19 22:21:05 +0000
commite07b7953a80af30ad1f7dd51f8c8f773cd514f56 (patch)
tree76435e218cad8830ce01565d769ec8f60d5bab63 /ui/gtk/dlg_utils.h
parentf5e072a2c3fb913bf4615bee77e8f4b7fd14dae8 (diff)
Save the size and position of the expert info dialog
Set initialize position to center on parent bug: 3817 Change-Id: Iad48aa762d892908d50f742606160c8305084f48 Reviewed-on: https://code.wireshark.org/review/2459 Reviewed-by: Balint Reczey <balint@balintreczey.hu> Tested-by: Balint Reczey <balint@balintreczey.hu>
Diffstat (limited to 'ui/gtk/dlg_utils.h')
-rw-r--r--ui/gtk/dlg_utils.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/gtk/dlg_utils.h b/ui/gtk/dlg_utils.h
index 878a55625f..bf5231ede2 100644
--- a/ui/gtk/dlg_utils.h
+++ b/ui/gtk/dlg_utils.h
@@ -101,6 +101,19 @@
*/
extern GtkWidget *dlg_window_new(const gchar *title);
+/** Create a dialog box window that belongs to Wireshark's main window.
+ * If you want to create a window, use window_new_with_geom() instead.
+ * See window_new_with_geom() for general window usage.
+ *
+ * @param title the title for the new dialog
+ * @param geom_name A unique name for the geometry of this new dialog
+ * @parm pos the initial position of the window if a previously saved geometry was not saved or found.
+ * If the initial position does not matter, specify GTK_WIN_POS_NONE.
+ * @return the newly created dialog
+ */
+extern GtkWidget *
+dlg_window_new_with_geom(const gchar *title, const gchar *geom_name, GtkWindowPosition pos);
+
/** Create a configuration dialog box window that belongs to Wireshark's
* main window and add the name of the current profile name to its title bar
* If you want to create a window, use window_new() instead.