"might be using AirPcap, or you might not have sufficient privileges."
/* Set the Decryption Mode */
- decryption_mode_string = gtk_combo_box_get_active_text (GTK_COMBO_BOX(decryption_mode_cb));
+ decryption_mode_string = gtk_combo_box_text_get_active_text (GTK_COMBO_BOX_TEXT(decryption_mode_cb));
if (g_ascii_strcasecmp(decryption_mode_string, AIRPCAP_DECRYPTION_TYPE_STRING_WIRESHARK) == 0)
{
set_wireshark_decryption(TRUE);
#include "gtk/keys.h"
#include "gtk/help_dlg.h"
#include "gtk/filter_autocomplete.h"
+#include "gtk/old-gtk-compat.h"
/* Capture callback data keys */
#define E_FIND_FILT_KEY "find_filter_te"
These only apply to the string find option */
/* Create Combo Box */
- combo_cb = gtk_combo_box_new_text();
+ combo_cb = gtk_combo_box_text_new();
- gtk_combo_box_append_text(GTK_COMBO_BOX(combo_cb), "ASCII Unicode & Non-Unicode");
- gtk_combo_box_append_text(GTK_COMBO_BOX(combo_cb), "ASCII Non-Unicode");
- gtk_combo_box_append_text(GTK_COMBO_BOX(combo_cb), "ASCII Unicode");
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT(combo_cb), "ASCII Unicode & Non-Unicode");
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT(combo_cb), "ASCII Non-Unicode");
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT(combo_cb), "ASCII Unicode");
gtk_combo_box_set_active(GTK_COMBO_BOX(combo_cb),0);
gtk_container_add(GTK_CONTAINER(string_opt_vb), combo_cb);
#include <gtk/file_dlg.h>
#include <gtk/help_dlg.h>
#include <gtk/gui_utils.h>
+#include "gtk/old-gtk-compat.h"
#include "gtk/firewall_dlg.h"
#define MAX_RULE_LEN 200
label = gtk_label_new("Product");
gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
- product_combo_box = gtk_combo_box_new_text();
+ product_combo_box = gtk_combo_box_text_new();
for (i = 0; i < NUM_PRODS; i++) {
- gtk_combo_box_append_text(GTK_COMBO_BOX(product_combo_box), products[i].name);
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT(product_combo_box), products[i].name);
}
g_object_set_data(G_OBJECT(product_combo_box), WS_RULE_INFO_KEY, rule_info);
g_signal_connect(product_combo_box, "changed", G_CALLBACK(select_product), NULL);
#include <gtk/gui_utils.h>
#include <gtk/help_dlg.h>
#include "gtk/main.h"
+#include "gtk/old-gtk-compat.h"
#ifdef _WIN32
#include "../tempfile.h"
direction_hbox = gtk_hbox_new(FALSE, 1);
gtk_box_pack_start(GTK_BOX(stream_vb), direction_hbox, FALSE, FALSE, 0);
- stream_cmb = gtk_combo_box_new_text();
+ stream_cmb = gtk_combo_box_text_new();
- gtk_combo_box_append_text(GTK_COMBO_BOX(stream_cmb),
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT(stream_cmb),
both_directions_string);
follow_info->show_stream = BOTH_HOSTS;
- gtk_combo_box_append_text(GTK_COMBO_BOX(stream_cmb),
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT(stream_cmb),
server_to_client_string);
- gtk_combo_box_append_text(GTK_COMBO_BOX(stream_cmb),
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT(stream_cmb),
client_to_server_string);
gtk_combo_box_set_active(GTK_COMBO_BOX(stream_cmb), 0); /* Do this before signal_connect */
#ifdef HAVE_AIRPCAP
#include <gtk/gtk.h>
+#include "gtk/old-gtk-compat.h"
#include <epan/epan.h>
#include <epan/frequency-utils.h>
gchar *fcs_filter_str;
if (fcs_filter_cb != NULL && !block_toolbar_signals && (airpcap_if_active != NULL)) {
- fcs_filter_str = gtk_combo_box_get_active_text(GTK_COMBO_BOX(fcs_filter_cb));
+ fcs_filter_str = gtk_combo_box_text_get_active_text (GTK_COMBO_BOX_TEXT(fcs_filter_cb));
ad = airpcap_if_open(airpcap_if_active->name, ebuf);
if (fcs_filter_str && (g_ascii_strcasecmp("", fcs_filter_str)) && ad) {
gtk_widget_set_tooltip_text(GTK_WIDGET(tool_item), "Current 802.11 Channel");
/* Create the channel combo box */
- channel_cb = gtk_combo_box_new_text();
+ channel_cb = gtk_combo_box_text_new();
g_object_set_data(G_OBJECT(airpcap_tb), AIRPCAP_TOOLBAR_CHANNEL_KEY, channel_cb);
/* Select the current channel */
gtk_widget_set_tooltip_text(GTK_WIDGET(tool_item), "Current 802.11 Channel Offset");
/* Start: Channel offset combo box */
- channel_offset_cb = gtk_combo_box_new_text();
+ channel_offset_cb = gtk_combo_box_text_new();
g_object_set_data(G_OBJECT(airpcap_tb), AIRPCAP_TOOLBAR_CHANNEL_OFFSET_KEY, channel_offset_cb);
if(airpcap_if_active != NULL){
gtk_toolbar_insert(GTK_TOOLBAR(airpcap_tb), tool_item, -1);
/* FCS filter combo box */
- fcs_filter_cb = gtk_combo_box_new_text();
+ fcs_filter_cb = gtk_combo_box_text_new();
g_object_set_data(G_OBJECT(airpcap_tb), AIRPCAP_TOOLBAR_FCS_FILTER_KEY, fcs_filter_cb);
gtk_widget_set_size_request(fcs_filter_cb, 100, -1);
- gtk_combo_box_append_text(GTK_COMBO_BOX(fcs_filter_cb), airpcap_get_validation_name(AIRPCAP_VT_ACCEPT_EVERYTHING));
- gtk_combo_box_append_text(GTK_COMBO_BOX(fcs_filter_cb), airpcap_get_validation_name(AIRPCAP_VT_ACCEPT_CORRECT_FRAMES));
- gtk_combo_box_append_text(GTK_COMBO_BOX(fcs_filter_cb), airpcap_get_validation_name(AIRPCAP_VT_ACCEPT_CORRUPT_FRAMES));
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT(fcs_filter_cb), airpcap_get_validation_name(AIRPCAP_VT_ACCEPT_EVERYTHING));
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT(fcs_filter_cb), airpcap_get_validation_name(AIRPCAP_VT_ACCEPT_CORRECT_FRAMES));
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT(fcs_filter_cb), airpcap_get_validation_name(AIRPCAP_VT_ACCEPT_CORRUPT_FRAMES));
gtk_combo_box_set_active(GTK_COMBO_BOX(fcs_filter_cb), 0);
gtk_widget_set_tooltip_text(fcs_filter_cb, "Select the 802.11 FCS filter that the wireless adapter will apply.");
gtk_widget_set_name (decryption_mode_lb, "decryption_mode_lb");
gtk_widget_show (decryption_mode_lb);
- decryption_mode_cb = gtk_combo_box_new_text();
+ decryption_mode_cb = gtk_combo_box_text_new();
gtk_widget_set_name (decryption_mode_cb, "decryption_mode_cb");
gtk_widget_show (decryption_mode_cb);
gtk_widget_set_size_request(decryption_mode_cb, 83, -1);
'gdk_bitmap_create_from_data', 'W', #
'gdk_bitmap_ref', 'W', #
'gdk_bitmap_unref', 'W', #
- 'gdk_cairo_set_source_pixmap', 'W', #
+ 'gdk_cairo_set_source_pixmap', 'W', # deprecated since version 2.24. Use gdk_cairo_set_source_window() where appropriate(Since 2.24).
'gdk_char_height', 'W', #
'gdk_char_measure', 'W', #
'gdk_char_width', 'W', #
'gdk_draw_layout_line_with_colors', 'W', #
'gdk_draw_layout_with_colors', 'W', #
'gdk_draw_line', 'W', #
- 'gdk_draw_lines', 'W', #
+ 'gdk_draw_lines', 'W', # deprecated since version 2.22. Use cairo_line_to() and cairo_stroke() instead.
'gdk_draw_pixbuf', 'W', # gdk_cairo_set_source_pixbuf() and cairo_paint() or cairo_rectangle() and cairo_fill() instead.
'gdk_draw_pixmap', 'W', # gdk_draw_drawable() (gdk_draw_drawable has been deprecated since version 2.22 )
'gdk_draw_point', 'W', #