aboutsummaryrefslogtreecommitdiffstats
path: root/src/toolbar.c
diff options
context:
space:
mode:
authorDavid Bordoley <bordoley@msu.edu>2003-03-07 20:37:47 +0800
committerDave Bordoley <Bordoley@src.gnome.org>2003-03-07 20:37:47 +0800
commitff8cb3c94a12a0c52f5d32c88598a018e7fa74c4 (patch)
treec9040fcd7f87bbc9eac0d190a9c076e282083b98 /src/toolbar.c
parent49b1348c56bbcd4f00361b0aed4755242903efd8 (diff)
downloadgsoc2013-epiphany-ff8cb3c94a12a0c52f5d32c88598a018e7fa74c4.tar
gsoc2013-epiphany-ff8cb3c94a12a0c52f5d32c88598a018e7fa74c4.tar.gz
gsoc2013-epiphany-ff8cb3c94a12a0c52f5d32c88598a018e7fa74c4.tar.bz2
gsoc2013-epiphany-ff8cb3c94a12a0c52f5d32c88598a018e7fa74c4.tar.lz
gsoc2013-epiphany-ff8cb3c94a12a0c52f5d32c88598a018e7fa74c4.tar.xz
gsoc2013-epiphany-ff8cb3c94a12a0c52f5d32c88598a018e7fa74c4.tar.zst
gsoc2013-epiphany-ff8cb3c94a12a0c52f5d32c88598a018e7fa74c4.zip
New toolbar action so that the "Go" button is always text only. Removed
2003-03-07 David Bordoley <bordoley@msu.edu> * src/ephy-go-action.c: (new file) * src/ephy-go-action.h: (new file) * src/Makefile.am: * src/ephy-window.c: * src/toolbar.c: * data/ui/epiphany-toolbar.xml.in: * po/POTFILES.in: New toolbar action so that the "Go" button is always text only. Removed the old toolbar "Go" button.
Diffstat (limited to 'src/toolbar.c')
-rwxr-xr-xsrc/toolbar.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/toolbar.c b/src/toolbar.c
index 690edc1b7..86730d97f 100755
--- a/src/toolbar.c
+++ b/src/toolbar.c
@@ -27,6 +27,7 @@
#include "ephy-spinner-action.h"
#include "ephy-location-action.h"
#include "ephy-favicon-action.h"
+#include "ephy-go-action.h"
#include "ephy-navigation-action.h"
#include "ephy-bookmark-action.h"
#include "window-commands.h"
@@ -70,6 +71,7 @@ struct ToolbarPrivate
GtkWidget *location_entry;
GtkWidget *spinner;
GtkWidget *favicon;
+ GtkWidget *go;
};
GType
@@ -323,6 +325,16 @@ toolbar_setup_actions (Toolbar *t)
NULL);
egg_action_group_add_action (t->priv->action_group, action);
g_object_unref (action);
+
+ action = g_object_new (EPHY_TYPE_GO_ACTION,
+ "name", "ToolbarGo",
+ "label", "Go",
+ "stock_id", GTK_STOCK_JUMP_TO,
+ NULL);
+ g_signal_connect (action, "activate",
+ G_CALLBACK (window_cmd_load_location), t->priv->window);
+ egg_action_group_add_action (t->priv->action_group, action);
+ g_object_unref (action);
}
static void