diff options
author | Jörg Mayer <jmayer@loplof.de> | 2011-07-21 17:44:02 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2011-07-21 17:44:02 +0000 |
commit | 369929c2f6c9f5d12a904bae4db707a60cf07956 (patch) | |
tree | 10fae2daa5f8de24dde3554e848b0884ab6b2515 /gtk/expert_comp_table.c | |
parent | f98587d686a75a881491354f829efe040c6d86fa (diff) |
Create a file containing macros to provide the access-functions
when the gtk version is too old (for the 2,14,0 case).
Remove all old access methods that were guarded by 2,14,0 tests.
Feel free to do the same for newer guards :-)
svn path=/trunk/; revision=38147
Diffstat (limited to 'gtk/expert_comp_table.c')
-rw-r--r-- | gtk/expert_comp_table.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/expert_comp_table.c b/gtk/expert_comp_table.c index fbd8e12eac..25fc64d79d 100644 --- a/gtk/expert_comp_table.c +++ b/gtk/expert_comp_table.c @@ -55,6 +55,8 @@ #include "gtk/stock_icons.h" #include "gtk/utf8_entities.h" +#include "gtk/old-gtk-compat.h" + const char *packet = "Packet:"; enum @@ -278,11 +280,7 @@ error_select_filter_cb(GtkWidget *widget _U_, gpointer callback_data, guint call case ACTION_MATCH: gtk_entry_set_text(GTK_ENTRY(main_display_filter_widget), str); main_filter_packets(&cfile, str, FALSE); -#if GTK_CHECK_VERSION(2,14,0) gdk_window_raise(gtk_widget_get_window(top_level)); -#else - gdk_window_raise(top_level->window); -#endif break; case ACTION_PREPARE: gtk_entry_set_text(GTK_ENTRY(main_display_filter_widget), str); |