]> Pileus Git - ~andy/gtk/commitdiff
Fixed GtkEntry to report the proper default value for "primary/secondary-icon-activat...
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Mon, 10 Jan 2011 13:26:46 +0000 (22:26 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Mon, 10 Jan 2011 13:26:46 +0000 (22:26 +0900)
gtk/gtkentry.c

index 0920037d2b5e6907aea65b835b26d219798e7842..e7bd3d932b5bdc22a6be7a4ae4b9d0bcd30de005 100644 (file)
@@ -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);
 }
 
 /**