aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-shell.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-02-23 10:20:51 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-02-23 10:20:51 +0800
commitdb0e48d09abcc0134efac3ce2717c42a216b18e3 (patch)
treeb44b835ecd180d5efc0d3822613837c0c95131a5 /src/ephy-shell.c
parent6fb4ac671cbcfdd90fffb7752f3fdce8f80cc30e (diff)
downloadgsoc2013-epiphany-db0e48d09abcc0134efac3ce2717c42a216b18e3.tar
gsoc2013-epiphany-db0e48d09abcc0134efac3ce2717c42a216b18e3.tar.gz
gsoc2013-epiphany-db0e48d09abcc0134efac3ce2717c42a216b18e3.tar.bz2
gsoc2013-epiphany-db0e48d09abcc0134efac3ce2717c42a216b18e3.tar.lz
gsoc2013-epiphany-db0e48d09abcc0134efac3ce2717c42a216b18e3.tar.xz
gsoc2013-epiphany-db0e48d09abcc0134efac3ce2717c42a216b18e3.tar.zst
gsoc2013-epiphany-db0e48d09abcc0134efac3ce2717c42a216b18e3.zip
Update location entry with the urls selected on the drop down. Implement
2003-02-23 Marco Pesenti Gritti <marco@it.gnome.org> * lib/widgets/ephy-autocompletion-window.c: (ephy_autocompletion_window_class_init), (ephy_autocompletion_window_key_press_hack): * lib/widgets/ephy-autocompletion-window.h: * lib/widgets/ephy-editable-toolbar.c: (drag_data_delete_cb), (drag_data_get_cb), (connect_toolbar_drag_source), (disconnect_toolbar_drag_source), (do_merge), (editor_close_cb), (button_press_cb), (ephy_editable_toolbar_edit): * lib/widgets/ephy-location-entry.c: (location_focus_out_cb), (ephy_location_entry_init), (real_entry_set_location), (ephy_location_entry_key_press_event_cb), (ephy_location_entry_activate_cb), (ephy_location_entry_set_location), (ephy_location_entry_autocompletion_window_url_selected_cb), (ephy_location_entry_set_autocompletion), (ephy_location_entry_autocompletion_window_url_activated_cb), (ephy_location_entry_autocompletion_window_hidden_cb), (ephy_location_entry_edit): * lib/widgets/ephy-location-entry.h: * src/ephy-shell.c: (ephy_shell_new_tab): * src/ephy-window.c: (add_widget): * src/toolbar.c: (toolbar_edit_location): * src/toolbar.h: Update location entry with the urls selected on the drop down. Implement editing mode in location entry == when the user is typing an url try to do not disturb (mozilla still grab the focus damnit). Dont put the homepage url in the location. I'm not sure if this is a good behavior for normal urls (I dont see problems, but please prove me wrong), but for about:blank it's needed.
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r--src/ephy-shell.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index eae78784b..9dfccb49f 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -31,6 +31,7 @@
#include "ephy-thread-helpers.h"
#include "ephy-bookmarks-import.h"
#include "ephy-debug.h"
+#include "toolbar.h"
#include <string.h>
#include <libgnomeui/gnome-client.h>
@@ -448,10 +449,10 @@ ephy_shell_get_active_window (EphyShell *gs)
**/
EphyTab *
ephy_shell_new_tab (EphyShell *shell,
- EphyWindow *parent_window,
- EphyTab *previous_tab,
- const char *url,
- EphyNewTabFlags flags)
+ EphyWindow *parent_window,
+ EphyTab *previous_tab,
+ const char *url,
+ EphyNewTabFlags flags)
{
EphyWindow *window;
EphyTab *tab;
@@ -493,11 +494,15 @@ ephy_shell_new_tab (EphyShell *shell,
if (flags & EPHY_NEW_TAB_HOMEPAGE)
{
+ Toolbar *toolbar;
char *homepage;
homepage = build_homepage_url (shell, previous_embed);
g_assert (homepage != NULL);
+ toolbar = ephy_window_get_toolbar (window);
+ toolbar_edit_location (toolbar);
+
ephy_embed_load_url (embed, homepage);
g_free (homepage);