Mercurial > geeqie.yaz
changeset 271:35f9083c6b95
gtk_notebook_set_tab_reorderable() is only available sinc gtk+ 2.10.
author | zas_ |
---|---|
date | Tue, 08 Apr 2008 16:22:21 +0000 |
parents | 67db7e4505c6 |
children | fbbb960a3857 |
files | src/info.c |
diffstat | 1 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/info.c Tue Apr 08 15:53:03 2008 +0000 +++ b/src/info.c Tue Apr 08 16:22:21 2008 +0000 @@ -54,6 +54,13 @@ static GList *info_tabs_pos_list = NULL; +static void notebook_set_tab_reorderable(GtkNotebook *notebook, GtkWidget *child, gboolean reorderable) +{ +#if GTK_CHECK_VERSION(2,10,0) + gtk_notebook_set_tab_reorderable(notebook, child, reorderable); +#endif +} + /* *------------------------------------------------------------------- * table utils @@ -115,7 +122,7 @@ label = gtk_label_new(_("Exif")); gtk_notebook_append_page(GTK_NOTEBOOK(id->notebook), bar, label); - gtk_notebook_set_tab_reorderable(GTK_NOTEBOOK(id->notebook), bar, TRUE); + notebook_set_tab_reorderable(GTK_NOTEBOOK(id->notebook), bar, TRUE); gtk_widget_show(bar); /* register */ @@ -179,7 +186,7 @@ label = gtk_label_new(_("Keywords")); gtk_notebook_append_page(GTK_NOTEBOOK(id->notebook), tab->bar_info, label); - gtk_notebook_set_tab_reorderable(GTK_NOTEBOOK(id->notebook), tab->bar_info, TRUE); + notebook_set_tab_reorderable(GTK_NOTEBOOK(id->notebook), tab->bar_info, TRUE); gtk_widget_show(tab->bar_info); /* register */ @@ -395,7 +402,7 @@ label = gtk_label_new(_("General")); gtk_notebook_append_page(GTK_NOTEBOOK(id->notebook), table, label); - gtk_notebook_set_tab_reorderable(GTK_NOTEBOOK(id->notebook), table, TRUE); + notebook_set_tab_reorderable(GTK_NOTEBOOK(id->notebook), table, TRUE); gtk_widget_show(table); /* register */