diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-01-23 08:34:12 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-01-23 08:34:12 +0800 |
commit | 7fe73f1990a361a3c794ef5517e2cb4d3188466e (patch) | |
tree | c1b0382e254dd9dd3c53072f397f40bb60675738 /src/ephy-window.c | |
parent | 5d0ba75eb24a3acee481ce987b6003ef36195c94 (diff) | |
download | gsoc2013-epiphany-7fe73f1990a361a3c794ef5517e2cb4d3188466e.tar gsoc2013-epiphany-7fe73f1990a361a3c794ef5517e2cb4d3188466e.tar.gz gsoc2013-epiphany-7fe73f1990a361a3c794ef5517e2cb4d3188466e.tar.bz2 gsoc2013-epiphany-7fe73f1990a361a3c794ef5517e2cb4d3188466e.tar.lz gsoc2013-epiphany-7fe73f1990a361a3c794ef5517e2cb4d3188466e.tar.xz gsoc2013-epiphany-7fe73f1990a361a3c794ef5517e2cb4d3188466e.tar.zst gsoc2013-epiphany-7fe73f1990a361a3c794ef5517e2cb4d3188466e.zip |
Fix autocompletion to not show duped entries. Complete print preview impl.
2003-01-23 Marco Pesenti Gritti <marco@it.gnome.org>
* TODO:
* lib/ephy-autocompletion.c: (ephy_autocompletion_reset),
(ephy_autocompletion_set_key),
(ephy_autocompletion_update_matches_full):
* lib/widgets/ephy-location-entry.c:
(get_editable_number_of_chars), (position_is_at_end),
(ephy_location_entry_key_press_event_cb):
* src/ephy-favicon-action.c: (ephy_favicon_action_finalize):
* src/ephy-favorites-menu.c: (ephy_favorites_menu_finalize_impl),
(ephy_favorites_menu_rebuild):
* src/ephy-window.c: (add_widget), (setup_window),
(ephy_window_finalize), (ephy_window_set_chrome):
* src/ppview-toolbar.c: (toolbar_update_sensitivity),
(ppview_toolbar_set_window), (toolbar_cmd_ppv_close):
* src/toolbar.c: (toolbar_setup_widgets), (toolbar_finalize):
Fix autocompletion to not show duped entries.
Complete print preview impl.
Fix actions referencing, a bug in egg still blocking it though.
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r-- | src/ephy-window.c | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index bf88d72e9..1da8cc949 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -42,6 +42,7 @@ #include <string.h> #include <libgnome/gnome-i18n.h> #include <libgnomevfs/gnome-vfs-uri.h> +#include <libgnomeui/gnome-stock-icons.h> #include <gtk/gtk.h> #include <X11/X.h> #include <X11/Xlib.h> @@ -203,7 +204,7 @@ static EggActionGroupEntry ephy_menu_entries [] = { G_CALLBACK (window_cmd_tabs_detach), NULL }, /* Help menu */ - { "HelpAbout", N_("_About"), NULL, NULL, + { "HelpAbout", N_("_About"), GNOME_STOCK_ABOUT, NULL, N_("Display credits for the web browser creators"), G_CALLBACK (window_cmd_help_about), NULL }, }; @@ -262,6 +263,7 @@ static guint ephy_popups_n_entries = G_N_ELEMENTS (ephy_popups_entries); struct EphyWindowPrivate { GtkWidget *main_vbox; + GtkWidget *menu_dock; GtkWidget *menubar; Toolbar *toolbar; GList *toolbars; @@ -429,7 +431,7 @@ add_widget (EggMenuMerge *merge, GtkWidget *widget, EphyWindow *window) (window->priv->toolbars, widget); } - gtk_box_pack_start (GTK_BOX (window->priv->main_vbox), + gtk_box_pack_start (GTK_BOX (window->priv->menu_dock), widget, FALSE, FALSE, 0); } @@ -445,6 +447,12 @@ setup_window (EphyWindow *window) gtk_container_add (GTK_CONTAINER (window), window->priv->main_vbox); + window->priv->menu_dock = gtk_vbox_new (FALSE, 0); + gtk_widget_show (window->priv->menu_dock); + gtk_box_pack_start (GTK_BOX (window->priv->main_vbox), + GTK_WIDGET (window->priv->menu_dock), + FALSE, TRUE, 0); + for (i = 0; i < ephy_menu_n_entries; i++) { ephy_menu_entries[i].user_data = window; @@ -471,7 +479,8 @@ setup_window (EphyWindow *window) window->ui_merge = G_OBJECT (merge); g_signal_connect (merge, "add_widget", G_CALLBACK (add_widget), window); - egg_menu_merge_add_ui_from_file (merge, ephy_file ("epiphany-ui.xml"), NULL); + egg_menu_merge_add_ui_from_file + (merge, ephy_file ("epiphany-ui.xml"), NULL); gtk_window_add_accel_group (GTK_WINDOW (window), merge->accel_group); window->priv->toolbar = toolbar_new (window); @@ -631,6 +640,11 @@ ephy_window_finalize (GObject *object) g_object_unref (window->priv->fav_menu); + if (window->priv->toolbar) + { + g_object_unref (window->priv->toolbar); + } + if (window->priv->ppview_toolbar) { g_object_unref (window->priv->ppview_toolbar); @@ -641,6 +655,11 @@ ephy_window_finalize (GObject *object) g_list_free (window->priv->toolbars); } + g_object_unref (window->priv->action_group); + egg_menu_merge_remove_action_group (EGG_MENU_MERGE (window->ui_merge), + window->priv->action_group); + g_object_unref (window->ui_merge); + g_free (window->priv); G_OBJECT_CLASS (parent_class)->finalize (object); @@ -823,6 +842,7 @@ ephy_window_set_chrome (EphyWindow *window, if (window->priv->ppview_toolbar) { g_object_unref (window->priv->ppview_toolbar); + window->priv->ppview_toolbar = NULL; } } |