diff options
author | David Adam Bordoley <bordoley@msu.edu> | 2003-05-09 02:37:49 +0800 |
---|---|---|
committer | Dave Bordoley <Bordoley@src.gnome.org> | 2003-05-09 02:37:49 +0800 |
commit | eba983c9919526bb366dbe7f5d10ef2c266ccd31 (patch) | |
tree | c052dfdd493c19504b1e18bdae3173a01c82332b | |
parent | 11c5ec3ac5c8c250a737a723d2dd0c1a9fd7a875 (diff) | |
download | gsoc2013-epiphany-eba983c9919526bb366dbe7f5d10ef2c266ccd31.tar gsoc2013-epiphany-eba983c9919526bb366dbe7f5d10ef2c266ccd31.tar.gz gsoc2013-epiphany-eba983c9919526bb366dbe7f5d10ef2c266ccd31.tar.bz2 gsoc2013-epiphany-eba983c9919526bb366dbe7f5d10ef2c266ccd31.tar.lz gsoc2013-epiphany-eba983c9919526bb366dbe7f5d10ef2c266ccd31.tar.xz gsoc2013-epiphany-eba983c9919526bb366dbe7f5d10ef2c266ccd31.tar.zst gsoc2013-epiphany-eba983c9919526bb366dbe7f5d10ef2c266ccd31.zip |
Don't set an icon unless their is a favicon. Append a colon onto the label
2003-05-08 David Adam Bordoley <bordoley@msu.edu>
* src/bookmarks/ephy-bookmark-action.c:
(ephy_bookmark_action_sync_icon),
(ephy_bookmark_action_sync_label):
Don't set an icon unless their is a favicon.
Append a colon onto the label of smartbookmarks.
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | src/bookmarks/ephy-bookmark-action.c | 21 |
2 files changed, 23 insertions, 7 deletions
@@ -1,5 +1,14 @@ 2003-05-08 David Adam Bordoley <bordoley@msu.edu> + * src/bookmarks/ephy-bookmark-action.c: + (ephy_bookmark_action_sync_icon), + (ephy_bookmark_action_sync_label): + + Don't set an icon unless their is a favicon. + Append a colon onto the label of smartbookmarks. + +2003-05-08 David Adam Bordoley <bordoley@msu.edu> + * TODO: * data/glade/epiphany.glade: * data/glade/prefs-dialog.glade: diff --git a/src/bookmarks/ephy-bookmark-action.c b/src/bookmarks/ephy-bookmark-action.c index 196a05e36..ebb8565f4 100644 --- a/src/bookmarks/ephy-bookmark-action.c +++ b/src/bookmarks/ephy-bookmark-action.c @@ -16,6 +16,8 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include <libgnome/gnome-i18n.h> + #include "ephy-bookmark-action.h" #include "ephy-bookmarks.h" #include "ephy-shell.h" @@ -153,25 +155,30 @@ ephy_bookmark_action_sync_icon (EggAction *action, GParamSpec *pspec, GtkWidget gtk_image_set_from_pixbuf (icon, pixbuf); g_object_unref (pixbuf); } - else - { - gtk_image_set_from_stock (icon, - GTK_STOCK_JUMP_TO, - GTK_ICON_SIZE_MENU); - } } static void ephy_bookmark_action_sync_label (EggAction *action, GParamSpec *pspec, GtkWidget *proxy) { GtkLabel *label; + gchar *toolbar_label; LOG ("Set bookmark action proxy label to %s", action->label) label = GTK_LABEL (g_object_get_data (G_OBJECT (proxy), "label")); g_return_if_fail (label != NULL); - gtk_label_set_label (label, action->label); + if (EPHY_BOOKMARK_ACTION (action)->priv->smart_url) + { + toolbar_label = g_strdup_printf (_("%s:"), action->label); + } + else + { + toolbar_label = g_strdup (action->label); + } + + gtk_label_set_label (label, toolbar_label); + g_free (toolbar_label); } static void |