diff options
author | Xan Lopez <xan@src.gnome.org> | 2003-04-09 07:13:37 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2003-04-09 07:13:37 +0800 |
commit | 6869072199d751b46f6f7757aee792a9f0eca7fe (patch) | |
tree | c693ac5274c53a931337a1df812a32a2fb50336f /src/window-commands.c | |
parent | b934ed62cfeb93b86c0f655eff39ff0de63ef7df (diff) | |
download | gsoc2013-epiphany-6869072199d751b46f6f7757aee792a9f0eca7fe.tar gsoc2013-epiphany-6869072199d751b46f6f7757aee792a9f0eca7fe.tar.gz gsoc2013-epiphany-6869072199d751b46f6f7757aee792a9f0eca7fe.tar.bz2 gsoc2013-epiphany-6869072199d751b46f6f7757aee792a9f0eca7fe.tar.lz gsoc2013-epiphany-6869072199d751b46f6f7757aee792a9f0eca7fe.tar.xz gsoc2013-epiphany-6869072199d751b46f6f7757aee792a9f0eca7fe.tar.zst gsoc2013-epiphany-6869072199d751b46f6f7757aee792a9f0eca7fe.zip |
Allow to launch the BME alone, rework some CORBA code, add a .desktop file
Allow to launch the BME alone, rework some CORBA code, add a .desktop
file for the BME. Fixes #102477.
Diffstat (limited to 'src/window-commands.c')
-rw-r--r-- | src/window-commands.c | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/src/window-commands.c b/src/window-commands.c index f9e5ecf72..4cd9c9b87 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -239,47 +239,11 @@ window_cmd_file_new_tab (EggAction *action, EPHY_NEW_TAB_JUMP); } -static void -bookmarks_hide_cb (GtkWidget *widget, gpointer data) -{ - LOG ("Unref shell for bookmarks editor") - g_object_unref (ephy_shell); -} - -static void -shell_weak_notify_cb (gpointer data, GObject *object) -{ - LOG ("Bookmarks editor destroyed") - gtk_widget_destroy (GTK_WIDGET (data)); -} - void window_cmd_go_bookmarks (EggAction *action, EphyWindow *window) { - static GtkWidget *dialog = NULL; - EphyBookmarks *bookmarks; - - if (dialog == NULL) - { - bookmarks = ephy_shell_get_bookmarks (ephy_shell); - g_assert (bookmarks != NULL); - dialog = ephy_bookmarks_editor_new (bookmarks); - g_object_weak_ref (G_OBJECT (ephy_shell), - shell_weak_notify_cb, dialog); - g_signal_connect (dialog, "hide", - G_CALLBACK (bookmarks_hide_cb), NULL); - } - - if (!GTK_WIDGET_VISIBLE (dialog)) - { - LOG ("Ref shell for bookmarks editor") - g_object_ref (ephy_shell); - } - - ephy_bookmarks_editor_set_parent (EPHY_BOOKMARKS_EDITOR (dialog), - GTK_WIDGET (window)); - gtk_window_present (GTK_WINDOW (dialog)); + ephy_shell_show_bookmarks_editor (ephy_shell); } void |