aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/bootp_stat.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2013-03-20 00:47:49 +0000
committerBill Meier <wmeier@newsguy.com>2013-03-20 00:47:49 +0000
commita43e5a7eb9fe1ad5a89e7cfd556a791a50fefee7 (patch)
tree7db93f74f6ac8abcd0b3cb454676541df74421a7 /ui/gtk/bootp_stat.c
parent4ef09071b54a470f9dff183b0136691a95bb707a (diff)
Fix another case of "Widgets are not properly expanded in gtk3"
See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7377#c21 svn path=/trunk/; revision=48437
Diffstat (limited to 'ui/gtk/bootp_stat.c')
-rw-r--r--ui/gtk/bootp_stat.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ui/gtk/bootp_stat.c b/ui/gtk/bootp_stat.c
index e7809dfe0b..ebed8feda3 100644
--- a/ui/gtk/bootp_stat.c
+++ b/ui/gtk/bootp_stat.c
@@ -86,13 +86,15 @@ dhcp_draw_message_type(gchar *key _U_, dhcp_message_type_t *data, gchar *unused
/* Maybe we should display the hexadecimal value ? */
/* g_snprintf(string_buff, sizeof(string_buff), "%s (0X%x)", data->name, *key); */
tmp = gtk_label_new(data->name /* string_buff */);
- ws_gtk_grid_attach_defaults(GTK_GRID(data->sp->grid_message_type), tmp, x, y, 1, 1);
+ ws_gtk_grid_attach_extended(GTK_GRID(data->sp->grid_message_type), tmp, x, y, 1, 1,
+ GTK_EXPAND|GTK_FILL, 0, 0, 0);
gtk_label_set_justify(GTK_LABEL(tmp), GTK_JUSTIFY_LEFT);
gtk_widget_show(tmp);
g_snprintf(string_buff, sizeof(string_buff), "%9d", data->packets);
data->widget = gtk_label_new(string_buff);
- ws_gtk_grid_attach_defaults(GTK_GRID(data->sp->grid_message_type), data->widget, x+1, y, 1, 1);
+ ws_gtk_grid_attach_extended(GTK_GRID(data->sp->grid_message_type), data->widget, x+1, y, 1, 1,
+ GTK_EXPAND|GTK_FILL, 0, 0, 0);
gtk_label_set_justify(GTK_LABEL(data->widget), GTK_JUSTIFY_LEFT);
gtk_widget_show(data->widget);
@@ -205,7 +207,7 @@ dhcpstat_init(const char *opt_arg, void *userdata _U_)
/* Status Codes frame */
message_type_fr = gtk_frame_new("DHCP Message Type");
- gtk_box_pack_start(GTK_BOX(vbox), message_type_fr, FALSE, FALSE, 0);
+ gtk_box_pack_start(GTK_BOX(vbox), message_type_fr, TRUE, TRUE, 0);
gtk_widget_show(message_type_fr);
sp->grid_message_type = ws_gtk_grid_new();