aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/capture_dlg.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2010-07-15 15:05:39 +0000
committerBill Meier <wmeier@newsguy.com>2010-07-15 15:05:39 +0000
commitfa5fecf047ff31afed222cce56c327a6afa7ff96 (patch)
treefd84ffeae8ec0668a8dc898e4928845a49f00b80 /gtk/capture_dlg.c
parentc62d8cbf06f7cf176f68c461c72638bc9f509365 (diff)
Change ws_combo_box... to use a tree-store instead of a list-store;
This allows the dispay of the ws_combo_box choices as a tree. Also: Rename ws_combo_box_append_text_and_pointer_with_sensitivity() to ws_combo_box_append_text_and_pointer_full(). svn path=/trunk/; revision=33538
Diffstat (limited to 'gtk/capture_dlg.c')
-rw-r--r--gtk/capture_dlg.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/gtk/capture_dlg.c b/gtk/capture_dlg.c
index 92398658db..81a23e8e3f 100644
--- a/gtk/capture_dlg.c
+++ b/gtk/capture_dlg.c
@@ -436,10 +436,11 @@ set_if_capabilities(gboolean monitor_mode_changed)
gchar *str;
/* Not supported - tell them about it but don't let them select it. */
str = g_strdup_printf("%s (not supported)", data_link_info->name);
- ws_combo_box_append_text_and_pointer_with_sensitivity(GTK_COMBO_BOX(linktype_combo_box),
- str,
- GINT_TO_POINTER(-1), /* Flag as "not supported" */
- FALSE);
+ ws_combo_box_append_text_and_pointer_full(GTK_COMBO_BOX(linktype_combo_box),
+ NULL,
+ str,
+ GINT_TO_POINTER(-1), /* Flag as "not supported" */
+ FALSE);
g_free(str);
}
if (data_link_info->dlt == cap_settings.linktype) {
@@ -459,10 +460,11 @@ set_if_capabilities(gboolean monitor_mode_changed)
}
#endif
if (linktype_count == 0) {
- ws_combo_box_append_text_and_pointer_with_sensitivity(GTK_COMBO_BOX(linktype_combo_box),
- "not supported",
- GINT_TO_POINTER(-1), /* Flag as "not supported" */
- FALSE);
+ ws_combo_box_append_text_and_pointer_full(GTK_COMBO_BOX(linktype_combo_box),
+ NULL,
+ "not supported",
+ GINT_TO_POINTER(-1), /* Flag as "not supported" */
+ FALSE);
}
gtk_widget_set_sensitive(linktype_lb, num_supported_link_types >= 2);
gtk_widget_set_sensitive(linktype_combo_box, num_supported_link_types >= 2);