diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-06-21 13:36:31 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-06-21 13:36:31 +0000 |
commit | a64e3fed5d96a8a705d542231892dbefc7dea8e5 (patch) | |
tree | aa3ac4365cc8d90f92fbc84c029365f0cbc85aca /gtk/capture_if_dlg.c | |
parent | 04521c1f9bd78d095d41100ed910985c674c8cb5 (diff) |
Removed the usage of topic_available() as we now have all topics.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25505 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/capture_if_dlg.c')
-rw-r--r-- | gtk/capture_if_dlg.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/gtk/capture_if_dlg.c b/gtk/capture_if_dlg.c index 6666094d4f..9ba89c5c44 100644 --- a/gtk/capture_if_dlg.c +++ b/gtk/capture_if_dlg.c @@ -629,22 +629,16 @@ capture_if_cb(GtkWidget *w _U_, gpointer d _U_) g_string_free(if_tool_str, TRUE); - /* Button row: close button */ - if(topic_available(HELP_CAPTURE_INTERFACES_DIALOG)) { - bbox = dlg_button_row_new(GTK_STOCK_CLOSE, GTK_STOCK_HELP, NULL); - } else { - bbox = dlg_button_row_new(GTK_STOCK_CLOSE, NULL); - } + /* Button row: close and help button */ + bbox = dlg_button_row_new(GTK_STOCK_CLOSE, GTK_STOCK_HELP, NULL); gtk_box_pack_start(GTK_BOX(main_vb), bbox, FALSE, FALSE, 5); close_bt = g_object_get_data(G_OBJECT(bbox), GTK_STOCK_CLOSE); window_set_cancel_button(cap_if_w, close_bt, window_cancel_button_cb); gtk_tooltips_set_tip(tooltips, close_bt, "Close this window.", NULL); - if(topic_available(HELP_CAPTURE_INTERFACES_DIALOG)) { - help_bt = g_object_get_data(G_OBJECT(bbox), GTK_STOCK_HELP); - g_signal_connect(help_bt, "clicked", G_CALLBACK(topic_cb), (gpointer)(HELP_CAPTURE_INTERFACES_DIALOG)); - } + help_bt = g_object_get_data(G_OBJECT(bbox), GTK_STOCK_HELP); + g_signal_connect(help_bt, "clicked", G_CALLBACK(topic_cb), (gpointer)(HELP_CAPTURE_INTERFACES_DIALOG)); gtk_widget_size_request(GTK_WIDGET(close_bt), &requisition); /* height + static offset + what GTK-Wimp needs in addition per interface */ |