summaryrefslogtreecommitdiff
path: root/plugins/filebrowser
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-05-12 19:47:17 +0200
committerraveit65 <[email protected]>2017-05-25 20:13:59 +0200
commit44d7761c90405c6bfbe3e306bab02397435ff44c (patch)
tree80f680eaf9c5ad4e05ad1f0242c86df95bc5e037 /plugins/filebrowser
parentf4b308cad220c246aa9f8b17b974ec64d7088055 (diff)
downloadpluma-44d7761c90405c6bfbe3e306bab02397435ff44c.tar.bz2
pluma-44d7761c90405c6bfbe3e306bab02397435ff44c.tar.xz
file-browser-view: silent some build warnings
warning: this 'if' clause does not guard... warning: 'display' may be used uninitialized in this function [-Wmaybe-uninitialized]
Diffstat (limited to 'plugins/filebrowser')
-rw-r--r--plugins/filebrowser/pluma-file-browser-view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/filebrowser/pluma-file-browser-view.c b/plugins/filebrowser/pluma-file-browser-view.c
index a206d8a8..134bf922 100644
--- a/plugins/filebrowser/pluma-file-browser-view.c
+++ b/plugins/filebrowser/pluma-file-browser-view.c
@@ -303,11 +303,12 @@ set_click_policy_property (PlumaFileBrowserView *obj,
GdkDisplay *display;
GdkWindow *win;
+ display = gtk_widget_get_display (GTK_WIDGET (obj));
+
obj->priv->click_policy = click_policy;
if (click_policy == PLUMA_FILE_BROWSER_VIEW_CLICK_POLICY_SINGLE) {
if (obj->priv->hand_cursor == NULL)
- display = gtk_widget_get_display (GTK_WIDGET (obj));
obj->priv->hand_cursor = gdk_cursor_new_for_display (display, GDK_HAND2);
} else if (click_policy == PLUMA_FILE_BROWSER_VIEW_CLICK_POLICY_DOUBLE) {
if (obj->priv->hover_path != NULL) {