Add in an explicit 'use_nick' parameter. Implicit guessing can break badly
2002-04-21 Rachel Hestilow <hestilow@ximian.com> * gconf-property-editor.c (gconf_peditor_new_select_menu_with_enum, gconf_peditor_new_enum_toggle, gconf_peditor_new_select_radio_with_enum): Add in an explicit 'use_nick' parameter. Implicit guessing can break badly if the gconf data gets corrupted. (peditor_enum_int_from_string): Change use_nick to copy-by-value, do not try to guess it. (peditor_enum_conv_to_widget, guard_get_bool, peditor_enum_toggle_conv_to_widget): Do not pass in use_nick as a reference.
This commit is contained in:
parent
df131cfc67
commit
702d06c8f8
3 changed files with 34 additions and 16 deletions
|
@ -78,6 +78,7 @@ GObject *gconf_peditor_new_enum_toggle (GConfChangeSet *changeset,
|
|||
GType enum_type,
|
||||
GConfPEditorGetValueFn val_true_fn,
|
||||
guint val_false,
|
||||
gboolean use_nick,
|
||||
gpointer data,
|
||||
gchar *first_property_name,
|
||||
...);
|
||||
|
@ -109,6 +110,7 @@ GObject *gconf_peditor_new_select_menu_with_enum (GConfChangeSet *changeset,
|
|||
gchar *key,
|
||||
GtkWidget *option_menu,
|
||||
GType enum_type,
|
||||
gboolean use_nick,
|
||||
gchar *first_property_name,
|
||||
...);
|
||||
|
||||
|
@ -122,6 +124,7 @@ GObject *gconf_peditor_new_select_radio_with_enum (GConfChangeSet *changeset,
|
|||
gchar *key,
|
||||
GSList *radio_group,
|
||||
GType enum_type,
|
||||
gboolean use_nick,
|
||||
gchar *first_property_name,
|
||||
...);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue