aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2007-05-25 16:47:22 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2007-05-25 16:47:22 +0000
commitc22f70ec1be27d319953eaa4e37e73fec6810d42 (patch)
tree776d7c688c5b7e2f037cf13ab551b8af26a6ff4e /gtk
parent31e3747eab921d391a7da094d9c7dd815dad64bc (diff)
- epan/uat.h: change the UAT_PROTO_DEF macro to handle both the name of the dissector and the handle
- packet-user_encap.c: use the new UAT_PROTO_DEF - gtk/uat_gui.c: change the order of "containment" of the widgets to have the clist fields sized to the scrolledwindow instead of the whole window svn path=/trunk/; revision=21934
Diffstat (limited to 'gtk')
-rw-r--r--gtk/uat_gui.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk/uat_gui.c b/gtk/uat_gui.c
index 34390dde8d..5525f9fae0 100644
--- a/gtk/uat_gui.c
+++ b/gtk/uat_gui.c
@@ -912,14 +912,15 @@ static GtkWidget* uat_window(void* u) {
rep->scrolledwindow = scrolled_window_new(NULL, NULL);
- gtk_box_pack_start(GTK_BOX(hbox), rep->scrolledwindow, TRUE, TRUE, 0);
#if GTK_MAJOR_VERSION >= 2
gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(rep->scrolledwindow), GTK_SHADOW_IN);
#endif
rep->clist = gtk_clist_new(uat->ncols);
-
+ gtk_container_add(GTK_CONTAINER(rep->scrolledwindow), rep->clist);
+ gtk_box_pack_start(GTK_BOX(hbox), rep->scrolledwindow, TRUE, TRUE, 0);
+
for ( colnum = 0; colnum < uat->ncols; colnum++ ) {
gtk_clist_set_column_title(GTK_CLIST(rep->clist), colnum, f[colnum].name);
gtk_clist_set_column_auto_resize(GTK_CLIST(rep->clist), colnum, TRUE);
@@ -941,8 +942,6 @@ static GtkWidget* uat_window(void* u) {
gtk_tree_selection_set_mode(rep->selection, GTK_SELECTION_SINGLE);
#endif
- gtk_container_add(GTK_CONTAINER(rep->scrolledwindow), rep->clist);
-
rep->bbox = dlg_button_row_new(GTK_STOCK_HELP, GTK_STOCK_OK, GTK_STOCK_APPLY, GTK_STOCK_CANCEL, NULL);
#if (GLIB_MAJOR_VERSION >= 2)