summaryrefslogtreecommitdiff
path: root/shell/maynard.c
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2014-04-02 21:10:18 +0200
committerJonny Lamb <jonny.lamb@collabora.co.uk>2014-04-02 21:10:18 +0200
commitc1f7b4d3c888b24d17fd7ced7ef37004fa778030 (patch)
treecad5777f8431b6df027c8eccc26efe88a366335f /shell/maynard.c
parentdea55fa3e757dd8e99594c4b19745af33bef73d6 (diff)
downloadgraynard-c1f7b4d3c888b24d17fd7ced7ef37004fa778030.tar.gz
graynard-c1f7b4d3c888b24d17fd7ced7ef37004fa778030.zip
panel: hide when a favorite is loaded
Diffstat (limited to 'shell/maynard.c')
-rw-r--r--shell/maynard.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/shell/maynard.c b/shell/maynard.c
index 81b1d37..8e47bd2 100644
--- a/shell/maynard.c
+++ b/shell/maynard.c
@@ -389,6 +389,17 @@ panel_hide_timeout_cb (gpointer data)
}
static void
+favorite_launched_cb (MaynardPanel *panel,
+ struct desktop *desktop)
+{
+ if (desktop->grid_visible) {
+ launcher_grid_toggle (desktop->launcher_grid->window, desktop);
+ }
+
+ panel_window_leave_cb (NULL, NULL, desktop);
+}
+
+static void
panel_create(struct desktop *desktop)
{
struct element *panel;
@@ -405,6 +416,8 @@ panel_create(struct desktop *desktop)
G_CALLBACK(system_toggled_cb), desktop);
g_signal_connect(panel->window, "volume-toggled",
G_CALLBACK(volume_toggled_cb), desktop);
+ g_signal_connect(panel->window, "favorite-launched",
+ G_CALLBACK(favorite_launched_cb), desktop);
desktop->initial_panel_timeout_id =
g_timeout_add_seconds(2, panel_hide_timeout_cb, desktop);