diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2012-01-19 02:56:45 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2012-01-20 02:07:22 +0800 |
commit | 2082e3a96b3aed97adc615e7739cec6afea5d76e (patch) | |
tree | 4a671907df719acfb6a9072daabcb036018a4564 /src/ephy-toolbar.c | |
parent | 90e79ffec92b47fbc6ad8b575b9691b1f7621f3b (diff) | |
download | gsoc2013-epiphany-2082e3a96b3aed97adc615e7739cec6afea5d76e.tar gsoc2013-epiphany-2082e3a96b3aed97adc615e7739cec6afea5d76e.tar.gz gsoc2013-epiphany-2082e3a96b3aed97adc615e7739cec6afea5d76e.tar.bz2 gsoc2013-epiphany-2082e3a96b3aed97adc615e7739cec6afea5d76e.tar.lz gsoc2013-epiphany-2082e3a96b3aed97adc615e7739cec6afea5d76e.tar.xz gsoc2013-epiphany-2082e3a96b3aed97adc615e7739cec6afea5d76e.tar.zst gsoc2013-epiphany-2082e3a96b3aed97adc615e7739cec6afea5d76e.zip |
location-action: don't make this a GtkAction anymore
It doesn't really make sense in a world where the location action is
only used on a fixed toolbar, and complicates the code a lot.
https://bugzilla.gnome.org/show_bug.cgi?id=668206
Diffstat (limited to 'src/ephy-toolbar.c')
-rw-r--r-- | src/ephy-toolbar.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c index 026363984..75f7ab520 100644 --- a/src/ephy-toolbar.c +++ b/src/ephy-toolbar.c @@ -21,6 +21,7 @@ #include "config.h" #include "ephy-toolbar.h" +#include "ephy-location-entry.h" #include "ephy-middle-clickable-button.h" G_DEFINE_TYPE (EphyToolbar, ephy_toolbar, GTK_TYPE_TOOLBAR) @@ -135,9 +136,7 @@ ephy_toolbar_constructed (GObject *object) box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); /* Location */ - action = gtk_action_group_get_action (action_group, "Location"); - location = gtk_action_create_tool_item (action); - priv->entry = location; + priv->entry = location = ephy_location_entry_new (); gtk_box_pack_start (GTK_BOX (box), location, TRUE, TRUE, 0); gtk_style_context_add_class (gtk_widget_get_style_context (box), |