aboutsummaryrefslogtreecommitdiffstats
path: root/src/toolbar.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-01-08 22:02:20 +0800
committerChristian Persch <chpe@src.gnome.org>2005-01-08 22:02:20 +0800
commitd9ec1f482b6b8926cbb10f1fb6b55b6b6685a1fd (patch)
tree82c8626eeb2eeab2182ed1d8cf98ed0409dc67b8 /src/toolbar.c
parent1db0996634c234cfde4330ebaa7697d041a5d0ee (diff)
downloadgsoc2013-epiphany-d9ec1f482b6b8926cbb10f1fb6b55b6b6685a1fd.tar
gsoc2013-epiphany-d9ec1f482b6b8926cbb10f1fb6b55b6b6685a1fd.tar.gz
gsoc2013-epiphany-d9ec1f482b6b8926cbb10f1fb6b55b6b6685a1fd.tar.bz2
gsoc2013-epiphany-d9ec1f482b6b8926cbb10f1fb6b55b6b6685a1fd.tar.lz
gsoc2013-epiphany-d9ec1f482b6b8926cbb10f1fb6b55b6b6685a1fd.tar.xz
gsoc2013-epiphany-d9ec1f482b6b8926cbb10f1fb6b55b6b6685a1fd.tar.zst
gsoc2013-epiphany-d9ec1f482b6b8926cbb10f1fb6b55b6b6685a1fd.zip
Unify the location and favicon actions.
2005-01-08 Christian Persch <chpe@cvs.gnome.org> * data/ui/epiphany-toolbar.xml: * lib/ephy-marshal.list: * lib/ephy-signal-accumulator.c: (ephy_signal_accumulator_string): * lib/ephy-signal-accumulator.h: * lib/widgets/ephy-location-entry.c: (ephy_location_entry_set_tooltip), (ephy_location_entry_class_init), (editable_changed_cb), (each_url_get_data_binder), (favicon_drag_data_get_cb), (ephy_location_entry_construct_contents), (ephy_location_entry_activate), (ephy_location_entry_get_entry), (ephy_location_entry_get_image): * lib/widgets/ephy-location-entry.h: * src/Makefile.am: * src/ephy-favicon-action.c: * src/ephy-favicon-action.h: * src/ephy-location-action.c: (sync_address), (sync_editable), (sync_icon), (get_location_cb), (get_title_cb), (remove_completion_actions), (add_completion_actions), (connect_proxy), (disconnect_proxy), (ephy_location_action_set_property), (ephy_location_action_get_property), (ephy_location_action_class_init), (ephy_location_action_init), (ephy_location_action_finalize): * src/ephy-window.c: (sync_tab_icon): * src/toolbar.c: (toolbar_setup_actions), (toolbar_update_favicon): * src/toolbar.h: Unify the location and favicon actions. * src/window-commands.c: (window_cmd_help_about): Add translator comment to the translation-credits string.
Diffstat (limited to 'src/toolbar.c')
-rwxr-xr-xsrc/toolbar.c23
1 files changed, 5 insertions, 18 deletions
diff --git a/src/toolbar.c b/src/toolbar.c
index e0f4a7f09..0c9857c01 100755
--- a/src/toolbar.c
+++ b/src/toolbar.c
@@ -23,7 +23,6 @@
#include "config.h"
#include "toolbar.h"
-#include "ephy-favicon-action.h"
#include "ephy-link.h"
#include "ephy-go-action.h"
#include "ephy-home-action.h"
@@ -376,6 +375,7 @@ toolbar_setup_actions (Toolbar *t)
"stock_id", EPHY_STOCK_ENTRY,
"tooltip", _("Enter a web address to open, or a phrase to search for on the web"),
"visible-overflown", FALSE,
+ "window", t->priv->window,
NULL);
g_signal_connect_swapped (action, "open-link",
G_CALLBACK (ephy_link_open), t);
@@ -397,16 +397,6 @@ toolbar_setup_actions (Toolbar *t)
gtk_action_group_add_action (t->priv->action_group, action);
g_object_unref (action);
- action = g_object_new (EPHY_TYPE_FAVICON_ACTION,
- "name", "Favicon",
- "label", _("Favicon"),
- "tooltip", _("Drag and drop this icon to create a link to this page"),
- "window", t->priv->window,
- "visible-overflown", FALSE,
- NULL);
- gtk_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"),
@@ -618,18 +608,15 @@ toolbar_set_location (Toolbar *t,
}
void
-toolbar_update_favicon (Toolbar *t)
+toolbar_update_favicon (Toolbar *t,
+ const char *icon)
{
- EphyTab *tab;
- const char *url;
GtkActionGroup *action_group;
GtkAction *action;
- tab = ephy_window_get_active_tab (t->priv->window);
- url = ephy_tab_get_icon_address (tab);
action_group = t->priv->action_group;
- action = gtk_action_group_get_action (action_group, "Favicon");
- g_object_set (action, "icon", url, NULL);
+ action = gtk_action_group_get_action (action_group, "Location");
+ g_object_set (action, "icon", icon, NULL);
}
const char *