[gtk+/builder-details: 4/4] Fixed GtkEntry to report the proper default value for "primary/secondary-icon-activatable"
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/builder-details: 4/4] Fixed GtkEntry to report the proper default value for "primary/secondary-icon-activatable"
- Date: Mon, 10 Jan 2011 13:21:25 +0000 (UTC)
commit 3f911b251618b30ffbfc1ad7a557b51bc61a36fe
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Mon Jan 10 22:26:46 2011 +0900
Fixed GtkEntry to report the proper default value for "primary/secondary-icon-activatable"
gtk/gtkentry.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 0920037..e7bd3d9 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -1152,7 +1152,7 @@ gtk_entry_class_init (GtkEntryClass *class)
g_param_spec_boolean ("primary-icon-activatable",
P_("Primary icon activatable"),
P_("Whether the primary icon is activatable"),
- FALSE,
+ TRUE,
GTK_PARAM_READWRITE));
/**
@@ -1173,7 +1173,7 @@ gtk_entry_class_init (GtkEntryClass *class)
g_param_spec_boolean ("secondary-icon-activatable",
P_("Secondary icon activatable"),
P_("Whether the secondary icon is activatable"),
- FALSE,
+ TRUE,
GTK_PARAM_READWRITE));
@@ -7959,7 +7959,7 @@ gtk_entry_get_icon_activatable (GtkEntry *entry,
priv = entry->priv;
icon_info = priv->icons[icon_pos];
- return (icon_info != NULL && !icon_info->nonactivatable);
+ return (!icon_info || !icon_info->nonactivatable);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]