summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Wold <[email protected]>2019-06-20 04:41:43 +0000
committerraveit65 <[email protected]>2019-06-23 10:12:24 +0200
commit2327fc711b7b427cfd9b41b050075790411b4e7d (patch)
treea4e5ca2da76ea935d13a86bef5d98f1ebc953441
parent8fca8d929a6382d59566639acb0edf1bdb5c9600 (diff)
downloadmate-panel-2327fc711b7b427cfd9b41b050075790411b4e7d.tar.bz2
mate-panel-2327fc711b7b427cfd9b41b050075790411b4e7d.tar.xz
Fix unused variable in panel-widget.c
-rw-r--r--mate-panel/panel-widget.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mate-panel/panel-widget.c b/mate-panel/panel-widget.c
index 23722387..4dcf2dfe 100644
--- a/mate-panel/panel-widget.c
+++ b/mate-panel/panel-widget.c
@@ -162,7 +162,6 @@ add_all_move_bindings (PanelWidget *panel)
{
GtkWidgetClass *class;
GtkBindingSet *binding_set;
- GtkWidget *focus_widget;
class = GTK_WIDGET_GET_CLASS (panel);
@@ -193,8 +192,9 @@ add_all_move_bindings (PanelWidget *panel)
"end_move", 0);
#ifdef HAVE_X11
- focus_widget = gtk_window_get_focus (GTK_WINDOW (panel->toplevel));
+ GtkWidget *focus_widget;
+ focus_widget = gtk_window_get_focus (GTK_WINDOW (panel->toplevel));
// will always be false when not on X
if (GTK_IS_SOCKET (focus_widget)) {
/*
@@ -208,7 +208,7 @@ add_all_move_bindings (PanelWidget *panel)
gtk_widget_grab_focus (GTK_WIDGET (panel));
saved_focus_widget = focus_widget;
}
-#endif
+#endif // HAVE_X11
}
static void