diff options
author | Gerald Combs <gerald@wireshark.org> | 2006-08-16 18:01:25 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2006-08-16 18:01:25 +0000 |
commit | f9661850d17e2ad47db2cc7e8b19eea3c990a9b4 (patch) | |
tree | d147d42347f9f0c1696934f807b64856060b2f20 /gtk/gui_utils.c | |
parent | b02d08fa7653949f5f66bee94bfa9e80f6f1badc (diff) |
Add support for AirPcap, an upcoming wireless product from CACE. Support
is disabled by default, and can be enabled by setting AIRPCAP_CONFIG
in config.nmake. The code is currently limited to Windows, but should
be adaptable to other platforms.
The official announcement won't come until next week, so you'll have to
read the source for details. :)
svn path=/trunk/; revision=18928
Diffstat (limited to 'gtk/gui_utils.c')
-rw-r--r-- | gtk/gui_utils.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gtk/gui_utils.c b/gtk/gui_utils.c index e5e3b4a280..891e77f4e3 100644 --- a/gtk/gui_utils.c +++ b/gtk/gui_utils.c @@ -573,6 +573,26 @@ GtkWidget *xpm_to_widget(const char ** xpm) { return xpm_to_widget_from_parent(top_level, xpm); } +/* Create a new hbox with an image packed into it + * and return the box. */ +GtkWidget *xpm_box( gchar **xpm ) +{ + GtkWidget *box; + GtkWidget *image; + + /* Create box for image */ + box = gtk_hbox_new (FALSE, 0); + gtk_container_set_border_width (GTK_CONTAINER (box), 3); + + /* Now on to the image stuff */ + image = xpm_to_widget (xpm); + + /* Pack the image into the box */ + gtk_box_pack_start (GTK_BOX (box), image, FALSE, FALSE, 3); + + return box; +} + /* Set the name of the top-level window and its icon to the specified string. */ |