summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-01-15 00:49:49 +0100
committermonsta <[email protected]>2018-03-18 14:45:17 +0300
commit748394c3abf4228249a9181741b7d6a1f581d81b (patch)
treec14f535ed75832d9852e0806a795eec37f2b6ea5
parent84812d54da023f324a05ff5f016ec7568bd4a4d7 (diff)
downloadmate-panel-748394c3abf4228249a9181741b7d6a1f581d81b.tar.bz2
mate-panel-748394c3abf4228249a9181741b7d6a1f581d81b.tar.xz
get focus when displaying "applet broken" dialog
-rw-r--r--mate-panel/panel-applet-frame.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mate-panel/panel-applet-frame.c b/mate-panel/panel-applet-frame.c
index dea79339..9ab95019 100644
--- a/mate-panel/panel-applet-frame.c
+++ b/mate-panel/panel-applet-frame.c
@@ -827,6 +827,10 @@ _mate_panel_applet_frame_applet_broken (MatePanelAppletFrame *frame)
gtk_window_set_title (GTK_WINDOW (dialog), _("Error"));
gtk_widget_show (dialog);
+
+ gtk_window_present_with_time (GTK_WINDOW (dialog),
+ gdk_x11_get_server_time (gtk_widget_get_window (GTK_WIDGET (dialog))));
+
g_free (dialog_txt);
}