comparison pidgin/gtkpluginpref.c @ 24987:17b840986607

GTK+ 2.16.0 will set the invisible character to a nice bullet instead of an asterisk, which has been the default up until now. So we should stop setting the invisible character ourselves in GTK+ 2.16.0 and higher. The comment in pidgin.h is cool because it talks about stuff that hasn't happened yet in the past tense.
author Mark Doliner <mark@kingant.net>
date Sat, 24 Jan 2009 02:19:14 +0000
parents 485383451769
children 584063555949
comparison
equal deleted inserted replaced
24986:43a093eb913f 24987:17b840986607
99 gtk_entry_set_max_length(GTK_ENTRY(entry), 99 gtk_entry_set_max_length(GTK_ENTRY(entry),
100 purple_plugin_pref_get_max_length(pref)); 100 purple_plugin_pref_get_max_length(pref));
101 if (purple_plugin_pref_get_masked(pref)) 101 if (purple_plugin_pref_get_masked(pref))
102 { 102 {
103 gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE); 103 gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE);
104 #if !GTK_CHECK_VERSION(2,16,0)
104 if (gtk_entry_get_invisible_char(GTK_ENTRY(entry)) == '*') 105 if (gtk_entry_get_invisible_char(GTK_ENTRY(entry)) == '*')
105 gtk_entry_set_invisible_char(GTK_ENTRY(entry), PIDGIN_INVISIBLE_CHAR); 106 gtk_entry_set_invisible_char(GTK_ENTRY(entry), PIDGIN_INVISIBLE_CHAR);
107 #endif /* Less than GTK+ 2.16 */
106 } 108 }
107 g_signal_connect(G_OBJECT(entry), "changed", 109 g_signal_connect(G_OBJECT(entry), "changed",
108 G_CALLBACK(entry_cb), 110 G_CALLBACK(entry_cb),
109 (gpointer)pref_name); 111 (gpointer)pref_name);
110 pidgin_add_widget_to_vbox(GTK_BOX(parent), pref_label, sg, entry, TRUE, NULL); 112 pidgin_add_widget_to_vbox(GTK_BOX(parent), pref_label, sg, entry, TRUE, NULL);