diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2013-03-24 23:04:13 +0000 |
---|---|---|
committer | Martin Kaiser <wireshark@kaiser.cx> | 2013-03-24 23:04:13 +0000 |
commit | b8a67334a134074f870fa20ce8198ac36487a474 (patch) | |
tree | b06048cfa386ab8879e4486ec4c791b3ee7dc1aa /ui/gtk/capture_if_dlg.c | |
parent | cfc0087d71ea12feaf11e7b3b05325985e801660 (diff) |
add casts for ws_gtk_grid_attach_extended()
svn path=/trunk/; revision=48541
Diffstat (limited to 'ui/gtk/capture_if_dlg.c')
-rw-r--r-- | ui/gtk/capture_if_dlg.c | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/ui/gtk/capture_if_dlg.c b/ui/gtk/capture_if_dlg.c index 800a1322f4..07cec6e7aa 100644 --- a/ui/gtk/capture_if_dlg.c +++ b/ui/gtk/capture_if_dlg.c @@ -681,7 +681,8 @@ capture_if_refresh_if_list(void) /* This is the icon column, used to display which kind of interface we have */ if_lb = gtk_label_new(""); - ws_gtk_grid_attach_extended(GTK_GRID(if_grid), if_lb, 0, row, 1, 1, 0, 0, 0, 0); + ws_gtk_grid_attach_extended(GTK_GRID(if_grid), if_lb, 0, row, 1, 1, + (GtkAttachOptions)0, (GtkAttachOptions)0, 0, 0); if_lb = gtk_label_new("Device"); ws_gtk_grid_attach_defaults(GTK_GRID(if_grid), if_lb, 1, row, 3, 1); @@ -690,13 +691,16 @@ capture_if_refresh_if_list(void) ws_gtk_grid_attach_defaults(GTK_GRID(if_grid), if_lb, 4, row, 1, 1); if_lb = gtk_label_new(" IP "); - ws_gtk_grid_attach_extended(GTK_GRID(if_grid), if_lb, 5, row, 1, 1, 0, 0, 0, 0); + ws_gtk_grid_attach_extended(GTK_GRID(if_grid), if_lb, 5, row, 1, 1, + (GtkAttachOptions)0, (GtkAttachOptions)0, 0, 0); if_lb = gtk_label_new("Packets"); - ws_gtk_grid_attach_extended(GTK_GRID(if_grid), if_lb, 6, row, 1, 1, 0, 0, 0, 0); + ws_gtk_grid_attach_extended(GTK_GRID(if_grid), if_lb, 6, row, 1, 1, + (GtkAttachOptions)0, (GtkAttachOptions)0, 0, 0); if_lb = gtk_label_new(" Packets/s "); - ws_gtk_grid_attach_extended(GTK_GRID(if_grid), if_lb, 7, row, 1, 1, 0, 0, 0, 0); + ws_gtk_grid_attach_extended(GTK_GRID(if_grid), if_lb, 7, row, 1, 1, + (GtkAttachOptions)0, (GtkAttachOptions)0, 0, 0); row++; height += 30; @@ -715,7 +719,8 @@ capture_if_refresh_if_list(void) continue; } data.choose_bt = gtk_check_button_new(); - ws_gtk_grid_attach_extended(GTK_GRID(if_grid), data.choose_bt, 0, row, 1, 1, 0, 0, 0, 0); + ws_gtk_grid_attach_extended(GTK_GRID(if_grid), data.choose_bt, 0, row, 1, 1, + (GtkAttachOptions)0, (GtkAttachOptions)0, 0, 0); if (gbl_capture_in_progress) { gtk_widget_set_sensitive(data.choose_bt, FALSE); } else { @@ -725,7 +730,8 @@ capture_if_refresh_if_list(void) g_signal_connect(data.choose_bt, "toggled", G_CALLBACK(store_selected), device.name); /* Kind of adaptor (icon) */ icon = capture_get_if_icon(&(device)); - ws_gtk_grid_attach_extended(GTK_GRID(if_grid), icon, 1, row, 1, 1, 0, 0, 0, 0); + ws_gtk_grid_attach_extended(GTK_GRID(if_grid), icon, 1, row, 1, 1, + (GtkAttachOptions)0, (GtkAttachOptions)0, 0, 0); /* device name */ #ifdef _WIN32 @@ -774,7 +780,8 @@ capture_if_refresh_if_list(void) } eb = gtk_event_box_new (); gtk_container_add(GTK_CONTAINER(eb), data.ip_lb); - ws_gtk_grid_attach_extended(GTK_GRID(if_grid), eb, 5, row, 1, 1, 0, 0, 0, 0); + ws_gtk_grid_attach_extended(GTK_GRID(if_grid), eb, 5, row, 1, 1, + (GtkAttachOptions)0, (GtkAttachOptions)0, 0, 0); if (get_ip_addr_count(device.if_info.addrs) > 1) { /* More than one IP address, make it possible to toggle */ g_object_set_data(G_OBJECT(eb), CAPTURE_IF_IP_ADDR_LABEL, data.ip_lb); @@ -785,11 +792,13 @@ capture_if_refresh_if_list(void) /* packets */ data.curr_lb = gtk_label_new("-"); - ws_gtk_grid_attach_extended(GTK_GRID(if_grid), data.curr_lb, 6, row, 1, 1, 0, 0, 0, 0); + ws_gtk_grid_attach_extended(GTK_GRID(if_grid), data.curr_lb, 6, row, 1, 1, + (GtkAttachOptions)0, (GtkAttachOptions)0, 0, 0); /* packets/s */ data.last_lb = gtk_label_new("-"); - ws_gtk_grid_attach_extended(GTK_GRID(if_grid), data.last_lb, 7, row, 1, 1, 0, 0, 0, 0); + ws_gtk_grid_attach_extended(GTK_GRID(if_grid), data.last_lb, 7, row, 1, 1, + (GtkAttachOptions)0, (GtkAttachOptions)0, 0, 0); /* details button */ #ifdef _WIN32 |