diff options
author | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-11-17 06:55:01 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-11-17 06:55:01 +0800 |
commit | 5af8580728d5074c39d007cf008bc3be3a9a2149 (patch) | |
tree | fdf8b2a7bc4450bcac3b962ca7741bdd14fad30f | |
parent | 37f4b353b5a92b646153c6068fe97defb2c1994b (diff) | |
download | gsoc2013-epiphany-5af8580728d5074c39d007cf008bc3be3a9a2149.tar gsoc2013-epiphany-5af8580728d5074c39d007cf008bc3be3a9a2149.tar.gz gsoc2013-epiphany-5af8580728d5074c39d007cf008bc3be3a9a2149.tar.bz2 gsoc2013-epiphany-5af8580728d5074c39d007cf008bc3be3a9a2149.tar.lz gsoc2013-epiphany-5af8580728d5074c39d007cf008bc3be3a9a2149.tar.xz gsoc2013-epiphany-5af8580728d5074c39d007cf008bc3be3a9a2149.tar.zst gsoc2013-epiphany-5af8580728d5074c39d007cf008bc3be3a9a2149.zip |
*** empty log message ***
-rw-r--r-- | src/ephy-shell.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c index 4fd1a5aaf..a0d14b4f6 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -723,17 +723,25 @@ ephy_shell_get_extensions_manager (EphyShell *es) } static void -toolwindow_show_cb (GtkWidget *widget) +toolwindow_show_cb (GtkWidget *widget, EphyShell *es) { + EphySession *session; + LOG ("Ref shell for %s", G_OBJECT_TYPE_NAME (widget)) + + session = EPHY_SESSION (ephy_shell_get_session (es)); ephy_session_add_window (ephy_shell->priv->session, GTK_WINDOW (widget)); g_object_ref (ephy_shell); } static void -toolwindow_hide_cb (GtkWidget *widget) +toolwindow_hide_cb (GtkWidget *widget, EphyShell *es) { + EphySession *session; + LOG ("Unref shell for %s", G_OBJECT_TYPE_NAME (widget)) + + session = EPHY_SESSION (ephy_shell_get_session (es)); ephy_session_remove_window (ephy_shell->priv->session, GTK_WINDOW (widget)); g_object_unref (ephy_shell); } @@ -750,9 +758,9 @@ ephy_shell_get_bookmarks_editor (EphyShell *gs) gs->priv->bme = ephy_bookmarks_editor_new (bookmarks); g_signal_connect (gs->priv->bme, "show", - G_CALLBACK (toolwindow_show_cb), NULL); + G_CALLBACK (toolwindow_show_cb), gs); g_signal_connect (gs->priv->bme, "hide", - G_CALLBACK (toolwindow_hide_cb), NULL); + G_CALLBACK (toolwindow_hide_cb), gs); } return gs->priv->bme; |