[gedit] gedit-view: Fix previous commit to build with gcc at least
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] gedit-view: Fix previous commit to build with gcc at least
- Date: Mon, 28 Oct 2013 15:50:13 +0000 (UTC)
commit d5a21439b6c3903979c8848c03dc89b8a2741354
Author: Colin Walters <walters verbum org>
Date: Mon Oct 28 11:48:32 2013 -0400
gedit-view: Fix previous commit to build with gcc at least
We need {} to create a new block in which variables can be declared.
gedit/gedit-view.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-view.c b/gedit/gedit-view.c
index 17ae078..1eb1229 100644
--- a/gedit/gedit-view.c
+++ b/gedit/gedit-view.c
@@ -380,6 +380,7 @@ gedit_view_drag_data_received (GtkWidget *widget,
switch (info)
{
case TARGET_URI_LIST:
+ {
gchar **uri_list;
uri_list = gedit_utils_drop_get_uris (selection_data);
@@ -394,7 +395,9 @@ gedit_view_drag_data_received (GtkWidget *widget,
break;
+ }
case TARGET_TAB:
+ {
GtkWidget *notebook;
GtkWidget *new_notebook;
GtkWidget *page;
@@ -424,8 +427,9 @@ gedit_view_drag_data_received (GtkWidget *widget,
gtk_drag_finish (context, TRUE, TRUE, timestamp);
break;
-
+ }
case TARGET_XDNDDIRECTSAVE:
+ {
GeditView *view;
view = GEDIT_VIEW (widget);
@@ -460,8 +464,9 @@ gedit_view_drag_data_received (GtkWidget *widget,
gtk_drag_finish (context, TRUE, FALSE, timestamp);
break;
-
+ }
default:
+ {
GTK_WIDGET_CLASS (gedit_view_parent_class)->drag_data_received (widget,
context,
x, y,
@@ -469,6 +474,7 @@ gedit_view_drag_data_received (GtkWidget *widget,
info,
timestamp);
break;
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]