# HG changeset patch # User zas_ # Date 1207671741 0 # Node ID 35f9083c6b95a3ef708287dd6eccd0638fbfd1ec # Parent 67db7e4505c6a3bb92fd125f0efa2e4c338ef8b1 gtk_notebook_set_tab_reorderable() is only available sinc gtk+ 2.10. diff -r 67db7e4505c6 -r 35f9083c6b95 src/info.c --- 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 */