aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Adam Bordoley <bordoley@msu.edu>2003-05-09 02:37:49 +0800
committerDave Bordoley <Bordoley@src.gnome.org>2003-05-09 02:37:49 +0800
commiteba983c9919526bb366dbe7f5d10ef2c266ccd31 (patch)
treec052dfdd493c19504b1e18bdae3173a01c82332b /src
parent11c5ec3ac5c8c250a737a723d2dd0c1a9fd7a875 (diff)
downloadgsoc2013-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.
Diffstat (limited to 'src')
-rw-r--r--src/bookmarks/ephy-bookmark-action.c21
1 files changed, 14 insertions, 7 deletions
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