summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-05-14 16:42:00 +0300
committermonsta <[email protected]>2018-05-14 16:42:34 +0300
commit03a697c79b372ddd4cbfd0185b57ece4647d6319 (patch)
tree000922a3b800c84eb978564c91ed6a97040adb20 /shell
parent05e6aa3714a76d1a924d59a07804cf10ff55003a (diff)
downloadatril-03a697c79b372ddd4cbfd0185b57ece4647d6319.tar.bz2
atril-03a697c79b372ddd4cbfd0185b57ece4647d6319.tar.xz
ev-sidebar-bookmarks: use NULL instead of uninitialized variable
follow-up to be5fadcdce164bf7b4cde5487dd0c8837a7efb9d
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-sidebar-bookmarks.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/ev-sidebar-bookmarks.c b/shell/ev-sidebar-bookmarks.c
index e94c6352..5b227580 100644
--- a/shell/ev-sidebar-bookmarks.c
+++ b/shell/ev-sidebar-bookmarks.c
@@ -331,7 +331,6 @@ ev_sidebar_bookmarks_popup_menu_show (EvSidebarBookmarks *sidebar_bookmarks,
EvSidebarBookmarksPrivate *priv = sidebar_bookmarks->priv;
GtkTreeView *tree_view = GTK_TREE_VIEW (sidebar_bookmarks->priv->tree_view);
GtkTreeSelection *selection = gtk_tree_view_get_selection (tree_view);
- GdkEvent *event;
if (keyboard_mode) {
if (!gtk_tree_selection_get_selected (selection, NULL, NULL))
@@ -355,7 +354,7 @@ ev_sidebar_bookmarks_popup_menu_show (EvSidebarBookmarks *sidebar_bookmarks,
if (!priv->popup)
priv->popup = gtk_ui_manager_get_widget (priv->ui_manager, "/BookmarksPopup");
- gtk_menu_popup_at_pointer (GTK_MENU (priv->popup), (const GdkEvent*) event);
+ gtk_menu_popup_at_pointer (GTK_MENU (priv->popup), NULL);
return TRUE;
}