Mercurial > geeqie
comparison src/bar_sort.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 |
---|---|
722 if (!bar) return; | 722 if (!bar) return; |
723 sd = g_object_get_data(G_OBJECT(bar), "bar_sort_data"); | 723 sd = g_object_get_data(G_OBJECT(bar), "bar_sort_data"); |
724 if (!sd) return; | 724 if (!sd) return; |
725 | 725 |
726 WRITE_NL(); WRITE_STRING("<bar_sort "); | 726 WRITE_NL(); WRITE_STRING("<bar_sort "); |
727 #if GTK_CHECK_VERSION(2,20,0) | |
728 write_bool_option(outstr, indent, "enabled", gtk_widget_get_visible(bar)); | |
729 #else | |
727 write_bool_option(outstr, indent, "enabled", GTK_WIDGET_VISIBLE(bar)); | 730 write_bool_option(outstr, indent, "enabled", GTK_WIDGET_VISIBLE(bar)); |
731 #endif | |
728 WRITE_INT(*sd, mode); | 732 WRITE_INT(*sd, mode); |
729 WRITE_INT(*sd, action); | 733 WRITE_INT(*sd, action); |
730 WRITE_INT(*sd, selection); | 734 WRITE_INT(*sd, selection); |
731 WRITE_CHAR(*sd, filter_key); | 735 WRITE_CHAR(*sd, filter_key); |
732 WRITE_STRING("/>"); | 736 WRITE_STRING("/>"); |