# HG changeset patch # User Laurent Monin # Date 1207671741 0 # Node ID 9ac071ce0e1fc52daaca70be59541f8143702b22 # Parent a91680880809fdf1db8a1c11d8824e97f5912844 gtk_notebook_set_tab_reorderable() is only available sinc gtk+ 2.10. diff -r a91680880809 -r 9ac071ce0e1f 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 */