Mercurial > geeqie.yaz
diff src/layout_util.c @ 457:5e9c24d3b3a8
Add a replacement for gtk_radio_action_set_current_value() which
require GTK+ >= 2.10.
Two new files were added, compat.h and compat.c.
author | zas_ |
---|---|
date | Sun, 20 Apr 2008 23:17:35 +0000 |
parents | 57459cf0952c |
children | 48c8e49b571c |
line wrap: on
line diff
--- a/src/layout_util.c Sun Apr 20 22:51:53 2008 +0000 +++ b/src/layout_util.c Sun Apr 20 23:17:35 2008 +0000 @@ -19,6 +19,7 @@ #include "cache_maint.h" #include "collect.h" #include "collect-dlg.h" +#include "compat.h" #include "dupe.h" #include "editors.h" #include "filelist.h" @@ -1551,7 +1552,7 @@ if (!lw->action_group) return; action = gtk_action_group_get_action(lw->action_group, "FolderTree"); - gtk_radio_action_set_current_value(GTK_RADIO_ACTION(action), lw->dir_view_type); + radio_action_set_current_value(GTK_RADIO_ACTION(action), lw->dir_view_type); action = gtk_action_group_get_action(lw->action_group, "ViewIcons"); gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), lw->icon_view);