Mercurial > geeqie
comparison src/search.c @ 1810:c416d099a3dc
GTK marks several functions as deprecated
The following functions has been replaced and deprecated by version
2.20:
- GTK_WIDGET_CAN_FOCUS
- GTK_WIDGET_DRAWABLE
- GTK_WIDGET_HAS_FOCUS
- GTK_WIDGET_HAS_GRAB
- GTK_WIDGET_IS_SENSITIVE
- GTK_WIDGET_NO_WINDOW
- GTK_WIDGET_REALIZED
- GTK_WIDGET_SENSITIVE
- GTK_WIDGET_STATE
- GTK_WIDGET_TOPLEVEL
- GTK_WIDGET_VISIBLE
author | mow |
---|---|
date | Mon, 10 May 2010 11:32:56 +0000 |
parents | 956aab097ea7 |
children |
comparison
equal
deleted
inserted
replaced
1809:e1c18f81e637 | 1810:c416d099a3dc |
---|---|
2359 | 2359 |
2360 static void menu_choice_set_visible(GtkWidget *widget, gboolean visible) | 2360 static void menu_choice_set_visible(GtkWidget *widget, gboolean visible) |
2361 { | 2361 { |
2362 if (visible) | 2362 if (visible) |
2363 { | 2363 { |
2364 #if GTK_CHECK_VERSION(2,20,0) | |
2365 if (!gtk_widget_get_visible(widget)) gtk_widget_show(widget); | |
2366 #else | |
2364 if (!GTK_WIDGET_VISIBLE(widget)) gtk_widget_show(widget); | 2367 if (!GTK_WIDGET_VISIBLE(widget)) gtk_widget_show(widget); |
2368 #endif | |
2365 } | 2369 } |
2366 else | 2370 else |
2367 { | 2371 { |
2372 #if GTK_CHECK_VERSION(2,20,0) | |
2373 if (gtk_widget_get_visible(widget)) gtk_widget_hide(widget); | |
2374 #else | |
2368 if (GTK_WIDGET_VISIBLE(widget)) gtk_widget_hide(widget); | 2375 if (GTK_WIDGET_VISIBLE(widget)) gtk_widget_hide(widget); |
2376 #endif | |
2369 } | 2377 } |
2370 } | 2378 } |
2371 | 2379 |
2372 static gboolean menu_choice_get_match_type(GtkWidget *combo, MatchType *type) | 2380 static gboolean menu_choice_get_match_type(GtkWidget *combo, MatchType *type) |
2373 { | 2381 { |