aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/ui_util.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-02-13 00:53:37 +0000
committerGuy Harris <guy@alum.mit.edu>2004-02-13 00:53:37 +0000
commit36ece5a17ad804d3c6e668af1bb254e8d3e67b48 (patch)
tree12528c3d9b2df330cfe374963bb02901ea4dbdce /gtk/ui_util.h
parent5f27347dfa71ce05f77aa14cf6a89f1bfb2e6914 (diff)
Add a "window_new()" routine that creates a window of a given type, sets
the title, and arranges to set the icon for it. Use that instead of "gtk_window_new()" and separate calls to set the title and arrange to set the icon. Regularize #includes a bit. Clean up white space. svn path=/trunk/; revision=10054
Diffstat (limited to 'gtk/ui_util.h')
-rw-r--r--gtk/ui_util.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk/ui_util.h b/gtk/ui_util.h
index 0c6448d8e5..67d5e08f0f 100644
--- a/gtk/ui_util.h
+++ b/gtk/ui_util.h
@@ -1,7 +1,7 @@
/* ui_util.h
* Definitions for UI utility routines
*
- * $Id: ui_util.h,v 1.6 2002/11/03 17:38:34 oabad Exp $
+ * $Id: ui_util.h,v 1.7 2004/02/13 00:53:37 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -25,6 +25,10 @@
#ifndef __GTKGUIUI_UTIL_H__
#define __GTKGUIUI_UTIL_H__
+/* Create a new window, of the specified type, with the specified title
+ (if any) and the Ethereal icon. */
+GtkWidget *window_new(GtkWindowType, const gchar *);
+
/* Given a pointer to a GtkWidget for a top-level window, raise it and
de-iconify it. This routine is used if the user has done something to
ask that a window of a certain type be popped up when there can be only
@@ -32,9 +36,6 @@
pop up the existing one rather than creating a new one. */
void reactivate_window(GtkWidget *);
-/* Set the window icon to the 16x16 3D icon. */
-void window_icon_realize_cb (GtkWidget *, gpointer);
-
/* Create a GtkScrolledWindow, set its scrollbar placement appropriately,
and remember it. */
GtkWidget *scrolled_window_new(GtkAdjustment *hadjustment,