aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-07-01 21:23:49 +0800
committerChristian Persch <chpe@src.gnome.org>2006-07-01 21:23:49 +0800
commit3bc393a03ff990df90d6c29206d915aa36693b12 (patch)
tree7d3013061bf739c9d1c6d18d66077bef2d9ac9e2
parentfeb35c55df4f97b0a5eed0d048013e14f0a27118 (diff)
downloadgsoc2013-epiphany-3bc393a03ff990df90d6c29206d915aa36693b12.tar
gsoc2013-epiphany-3bc393a03ff990df90d6c29206d915aa36693b12.tar.gz
gsoc2013-epiphany-3bc393a03ff990df90d6c29206d915aa36693b12.tar.bz2
gsoc2013-epiphany-3bc393a03ff990df90d6c29206d915aa36693b12.tar.lz
gsoc2013-epiphany-3bc393a03ff990df90d6c29206d915aa36693b12.tar.xz
gsoc2013-epiphany-3bc393a03ff990df90d6c29206d915aa36693b12.tar.zst
gsoc2013-epiphany-3bc393a03ff990df90d6c29206d915aa36693b12.zip
Don't cast to gboolean but check for != NULL instead.
2006-07-01 Christian Persch <chpe@cvs.gnome.org> * src/bookmarks/ephy-bookmark-action.c (ephy_bookmark_action_sync_smart_url): Don't cast to gboolean but check for != NULL instead.
-rw-r--r--ChangeLog7
-rw-r--r--src/bookmarks/ephy-bookmark-action.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 52e1a0757..2dc07edf4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2006-07-01 Christian Persch <chpe@cvs.gnome.org>
+ * src/bookmarks/ephy-bookmark-action.c
+ (ephy_bookmark_action_sync_smart_url):
+
+ Don't cast to gboolean but check for != NULL instead.
+
+2006-07-01 Christian Persch <chpe@cvs.gnome.org>
+
* src/languages.h:
Add fur.
diff --git a/src/bookmarks/ephy-bookmark-action.c b/src/bookmarks/ephy-bookmark-action.c
index b3fea1fdb..455ee6c17 100644
--- a/src/bookmarks/ephy-bookmark-action.c
+++ b/src/bookmarks/ephy-bookmark-action.c
@@ -135,8 +135,8 @@ ephy_bookmark_action_sync_smart_url (GtkAction *gaction,
EphyBookmarkAction *action = EPHY_BOOKMARK_ACTION (gaction);
EphyBookmarkActionPrivate *priv = action->priv;
gboolean is_smart_url = priv->smart_url;
- gboolean has_icon = (gboolean) ephy_node_get_property_string
- (priv->node, EPHY_NODE_BMK_PROP_ICON);
+ gboolean has_icon = ephy_node_get_property_string
+ (priv->node, EPHY_NODE_BMK_PROP_ICON) != NULL;
GtkWidget *entry, *icon;
guint width;