aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-commands.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-02-08 19:23:32 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-02-08 19:23:32 +0800
commitfd8fbb88aca38f094ef80e223abfa17e8505e624 (patch)
treea31816f8d2e80fd2503bdfee91a402473d756d35 /src/window-commands.c
parent9731a68ae462cf67c4857d142c060b16d0d2db53 (diff)
downloadgsoc2013-epiphany-fd8fbb88aca38f094ef80e223abfa17e8505e624.tar
gsoc2013-epiphany-fd8fbb88aca38f094ef80e223abfa17e8505e624.tar.gz
gsoc2013-epiphany-fd8fbb88aca38f094ef80e223abfa17e8505e624.tar.bz2
gsoc2013-epiphany-fd8fbb88aca38f094ef80e223abfa17e8505e624.tar.lz
gsoc2013-epiphany-fd8fbb88aca38f094ef80e223abfa17e8505e624.tar.xz
gsoc2013-epiphany-fd8fbb88aca38f094ef80e223abfa17e8505e624.tar.zst
gsoc2013-epiphany-fd8fbb88aca38f094ef80e223abfa17e8505e624.zip
Add a go button to the toolbar editor. The icon is duped with default
2003-02-08 Marco Pesenti Gritti <marco@it.gnome.org> * data/ui/epiphany-toolbar.xml.in: * lib/widgets/ephy-editable-toolbar.c: (add_action): * src/ephy-window.c: * src/window-commands.c: (window_cmd_load_location): * src/window-commands.h: Add a go button to the toolbar editor. The icon is duped with default favicon. Would be nice to find something better for one of them (I'm not sure if the concept of jump to is good for favicon actually). Rename FileNewWindow to FileNewBrowser also in toolbar configuration file.
Diffstat (limited to 'src/window-commands.c')
-rw-r--r--src/window-commands.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index 923bf4775..2201d169c 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -30,6 +30,7 @@
#include "ephy-new-bookmark.h"
#include "egg-toggle-action.h"
#include "ephy-editable-toolbar.h"
+#include "toolbar.h"
#include <string.h>
#include <libgnomevfs/gnome-vfs-uri.h>
@@ -768,3 +769,21 @@ window_cmd_tabs_detach (EggAction *action,
ephy_tab_set_window (tab, new_win);
gtk_widget_show (GTK_WIDGET (new_win));
}
+
+void
+window_cmd_load_location (EggAction *action,
+ EphyWindow *window)
+{
+ Toolbar *toolbar;
+ char *location;
+
+ toolbar = ephy_window_get_toolbar (window);
+ location = toolbar_get_location (toolbar);
+
+ if (location)
+ {
+ ephy_window_load_url (window, location);
+ g_free (location);
+ }
+}
+