[anjuta] project-wizard: Replace GtkSwitch by GtkCheckButton
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] project-wizard: Replace GtkSwitch by GtkCheckButton
- Date: Thu, 8 Dec 2011 20:50:04 +0000 (UTC)
commit 6135ef3c550930ebd630d254524bcd2e5d9f152a
Author: SÃbastien Granjoux <seb sfo free fr>
Date: Wed Dec 7 21:36:45 2011 +0100
project-wizard: Replace GtkSwitch by GtkCheckButton
plugins/project-wizard/property.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/project-wizard/property.c b/plugins/project-wizard/property.c
index bff16b6..3a47069 100644
--- a/plugins/project-wizard/property.c
+++ b/plugins/project-wizard/property.c
@@ -459,11 +459,11 @@ npw_property_create_widget (NPWProperty* prop)
switch (prop->type)
{
case NPW_BOOLEAN_PROPERTY:
- entry = gtk_switch_new ();
+ entry = gtk_check_button_new ();
if (value)
{
- gtk_switch_set_active (GTK_SWITCH (entry),
- (gboolean)atoi (value));
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (entry),
+ (gboolean)atoi (value));
}
break;
case NPW_INTEGER_PROPERTY:
@@ -665,7 +665,7 @@ npw_property_set_value_from_widget (NPWProperty* prop, NPWValueTag tag)
value = alloc_value;
break;
case NPW_BOOLEAN_PROPERTY:
- alloc_value = g_strdup_printf("%d", gtk_switch_get_active (GTK_SWITCH (prop->widget)));
+ alloc_value = g_strdup_printf("%d", gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (prop->widget)));
value = alloc_value;
break;
case NPW_STRING_PROPERTY:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]