diff options
author | Pablo Barciela <[email protected]> | 2019-05-07 18:33:55 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-05-09 05:16:43 +0000 |
commit | 2768c0c160f2af5d04edf99da92b83fc087251fe (patch) | |
tree | 5383455dbbb3ba85f5d38cedea7d87ad323ead09 /libegg/eggtreemultidnd.c | |
parent | 4993f0eaa7860b7bf7408172a612d7a12c09bbb9 (diff) | |
download | caja-2768c0c160f2af5d04edf99da92b83fc087251fe.tar.bz2 caja-2768c0c160f2af5d04edf99da92b83fc087251fe.tar.xz |
libegg: reduce the scope of some variables
Fixes 'cppcheck' warnings:
[libegg/eggdesktopfile.c:483]: (style) The scope of the variable 'try_exec' can be reduced.
[libegg/eggdesktopfile.c:483]: (style) The scope of the variable 'found_program' can be reduced.
[libegg/eggdesktopfile.c:484]: (style) The scope of the variable 'only_show_in' can be reduced.
[libegg/eggdesktopfile.c:484]: (style) The scope of the variable 'not_show_in' can be reduced.
[libegg/eggdesktopfile.c:486]: (style) The scope of the variable 'i' can be reduced.
[libegg/eggdesktopfile.c:608]: (style) The scope of the variable 'p' can be reduced.
[libegg/eggsmclient-xsmp.c:227]: (style) The scope of the variable 'cmdline' can be reduced.
[libegg/eggsmclient-xsmp.c:773]: (style) The scope of the variable 'fd' can be reduced.
[libegg/eggsmclient-xsmp.c:808]: (style) The scope of the variable 'keys' can be reduced.
[libegg/eggtreemultidnd.c:305]: (style) The scope of the variable 'context' can be reduced.
Diffstat (limited to 'libegg/eggtreemultidnd.c')
-rw-r--r-- | libegg/eggtreemultidnd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libegg/eggtreemultidnd.c b/libegg/eggtreemultidnd.c index 062bb57e..f6e80187 100644 --- a/libegg/eggtreemultidnd.c +++ b/libegg/eggtreemultidnd.c @@ -302,7 +302,6 @@ egg_tree_multi_drag_motion_event (GtkWidget *widget, GList *path_list = NULL; GtkTreeSelection *selection; GtkTreeModel *model; - GdkDragContext *context; TreeViewDragInfo *di; di = get_info (GTK_TREE_VIEW (widget)); @@ -317,6 +316,7 @@ egg_tree_multi_drag_motion_event (GtkWidget *widget, model = gtk_tree_view_get_model (GTK_TREE_VIEW (widget)); if (egg_tree_multi_drag_source_row_draggable (EGG_TREE_MULTI_DRAG_SOURCE (model), path_list)) { + GdkDragContext *context; context = gtk_drag_begin_with_coordinates (widget, gtk_drag_source_get_target_list (widget), |