pidgin/gtkrequest.c

branch
next.minor
changeset 25874
966325e48356
parent 24990
e2fdc2cd23a4
parent 25457
477f84ff0a7e
child 25900
0be61f1b3dd1
equal deleted inserted replaced
25873:a9e71e47e7b5 25874:966325e48356
428 gtk_entry_set_text(GTK_ENTRY(entry), default_value); 428 gtk_entry_set_text(GTK_ENTRY(entry), default_value);
429 429
430 if (masked) 430 if (masked)
431 { 431 {
432 gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE); 432 gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE);
433 #if !GTK_CHECK_VERSION(2,16,0)
433 if (gtk_entry_get_invisible_char(GTK_ENTRY(entry)) == '*') 434 if (gtk_entry_get_invisible_char(GTK_ENTRY(entry)) == '*')
434 gtk_entry_set_invisible_char(GTK_ENTRY(entry), PIDGIN_INVISIBLE_CHAR); 435 gtk_entry_set_invisible_char(GTK_ENTRY(entry), PIDGIN_INVISIBLE_CHAR);
436 #endif /* Less than GTK+ 2.16 */
435 } 437 }
436 } 438 }
437 gtk_widget_show_all(vbox); 439 gtk_widget_show_all(vbox);
438 } 440 }
439 441
794 gtk_entry_set_text(GTK_ENTRY(widget), value); 796 gtk_entry_set_text(GTK_ENTRY(widget), value);
795 797
796 if (purple_request_field_string_is_masked(field)) 798 if (purple_request_field_string_is_masked(field))
797 { 799 {
798 gtk_entry_set_visibility(GTK_ENTRY(widget), FALSE); 800 gtk_entry_set_visibility(GTK_ENTRY(widget), FALSE);
801 #if !GTK_CHECK_VERSION(2,16,0)
799 if (gtk_entry_get_invisible_char(GTK_ENTRY(widget)) == '*') 802 if (gtk_entry_get_invisible_char(GTK_ENTRY(widget)) == '*')
800 gtk_entry_set_invisible_char(GTK_ENTRY(widget), PIDGIN_INVISIBLE_CHAR); 803 gtk_entry_set_invisible_char(GTK_ENTRY(widget), PIDGIN_INVISIBLE_CHAR);
804 #endif /* Less than GTK+ 2.16 */
801 } 805 }
802 806
803 gtk_editable_set_editable(GTK_EDITABLE(widget), 807 gtk_editable_set_editable(GTK_EDITABLE(widget),
804 purple_request_field_string_is_editable(field)); 808 purple_request_field_string_is_editable(field));
805 809

mercurial