]> Pileus Git - ~andy/gtk/commit
GtkComboBox: Improve gtk_combo_box_set_active_id
authorMatthew Barnes <mbarnes@redhat.com>
Tue, 26 Apr 2011 11:59:53 +0000 (07:59 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 26 Apr 2011 11:59:53 +0000 (07:59 -0400)
commit7ae4a06d1f2591a95f521660a587b3d28a756e69
tree5c6f977ed810dd6da2563080488dfd0ab46fb924
parent54c3f05848967cc30356d69d4f34b5d112fe8aeb
GtkComboBox: Improve gtk_combo_box_set_active_id

- Passing a NULL ID string should be equivalent to
  gtk_combo_box_set_active (combo_box, -1).
- Use g_strcmp0() instead of strcmp() when comparing
  ID strings to avoid a crash when an ID is NULL.
- Return a boolean indicating if the ID was found or not.

https://bugzilla.gnome.org/show_bug.cgi?id=647806
gtk/gtkcombobox.c
gtk/gtkcombobox.h