aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-toolbar.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-01-19 01:59:57 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2012-01-20 02:07:22 +0800
commit90e79ffec92b47fbc6ad8b575b9691b1f7621f3b (patch)
treeb7242ebaf9f6792a7253fb280e030ac7454029be /src/ephy-toolbar.c
parent653966c7a52cd037dd86623f85ffdd7fcd47b822 (diff)
downloadgsoc2013-epiphany-90e79ffec92b47fbc6ad8b575b9691b1f7621f3b.tar
gsoc2013-epiphany-90e79ffec92b47fbc6ad8b575b9691b1f7621f3b.tar.gz
gsoc2013-epiphany-90e79ffec92b47fbc6ad8b575b9691b1f7621f3b.tar.bz2
gsoc2013-epiphany-90e79ffec92b47fbc6ad8b575b9691b1f7621f3b.tar.lz
gsoc2013-epiphany-90e79ffec92b47fbc6ad8b575b9691b1f7621f3b.tar.xz
gsoc2013-epiphany-90e79ffec92b47fbc6ad8b575b9691b1f7621f3b.tar.zst
gsoc2013-epiphany-90e79ffec92b47fbc6ad8b575b9691b1f7621f3b.zip
entry: make EphyLocationEntry a GtkEntry
Instead of a GtkToolItem. A future commit will move the code in EphyLocationAction not to be a GtkAction, which is why this was a GtkToolItem in the first place. https://bugzilla.gnome.org/show_bug.cgi?id=668206
Diffstat (limited to 'src/ephy-toolbar.c')
-rw-r--r--src/ephy-toolbar.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c
index 48447eb0c..026363984 100644
--- a/src/ephy-toolbar.c
+++ b/src/ephy-toolbar.c
@@ -36,7 +36,8 @@ enum {
static GParamSpec *object_properties[N_PROPERTIES] = { NULL, };
struct _EphyToolbarPrivate {
- EphyWindow *window;
+ EphyWindow *window;
+ GtkWidget *entry;
};
static void
@@ -136,6 +137,7 @@ ephy_toolbar_constructed (GObject *object)
/* Location */
action = gtk_action_group_get_action (action_group, "Location");
location = gtk_action_create_tool_item (action);
+ priv->entry = location;
gtk_box_pack_start (GTK_BOX (box), location,
TRUE, TRUE, 0);
gtk_style_context_add_class (gtk_widget_get_style_context (box),
@@ -156,7 +158,7 @@ ephy_toolbar_constructed (GObject *object)
GTK_WIDGET (location_stop_reload),
"expand", TRUE,
NULL);
-
+
gtk_container_add (GTK_CONTAINER (toolbar), GTK_WIDGET (location_stop_reload));
gtk_widget_set_margin_right (GTK_WIDGET (location_stop_reload), 12);
gtk_widget_show_all (GTK_WIDGET (location_stop_reload));
@@ -214,3 +216,9 @@ ephy_toolbar_new (EphyWindow *window)
"window", window,
NULL));
}
+
+GtkWidget *
+ephy_toolbar_get_location_entry (EphyToolbar *toolbar)
+{
+ return toolbar->priv->entry;
+}