diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2015-07-24 16:25:01 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2015-07-24 16:25:01 +0800 |
commit | d9985dad5b8a24b1666f3382a411815965d1203b (patch) | |
tree | 811e59659f7239c4fe45eda75a707a4679f2ee51 | |
parent | 62286b9481ecf603187ef12f563b5c57fc08553b (diff) | |
download | gtk+-d9985dad5b8a24b1666f3382a411815965d1203b.tar.gz |
gtk/gtkplacessidebar.c: Fix Build on C89
Ensure variables are declared at the top of the block, and remove a ';;',
which C89 compilers don't like.
-rw-r--r-- | gtk/gtkplacessidebar.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index b8f990461b..3adca43a8a 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -1840,11 +1840,12 @@ drag_data_received_callback (GtkWidget *list_box, if (sidebar->drag_data_info == DND_GTK_SIDEBAR_ROW) { + GtkWidget **source_row; /* A bookmark got reordered */ if (target_section_type != SECTION_BOOKMARKS) goto out; - GtkWidget **source_row = (void*) gtk_selection_data_get_data (selection_data); + source_row = (void*) gtk_selection_data_get_data (selection_data); reorder_bookmarks (sidebar, GTK_SIDEBAR_ROW (*source_row), target_order_index); success = TRUE; @@ -2799,7 +2800,7 @@ unmount_shortcut_cb (GSimpleAction *action, GVariant *parameter, gpointer data) { - GtkPlacesSidebar *sidebar = data;; + GtkPlacesSidebar *sidebar = data; GMount *mount; g_object_get (sidebar->context_row, |