[glade] GladeEPropBool: Removed GladeBoolToggle and replaced with plain old good GtkSwitch.
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] GladeEPropBool: Removed GladeBoolToggle and replaced with plain old good GtkSwitch.
- Date: Fri, 5 Apr 2013 18:48:43 +0000 (UTC)
commit d5a2961ae77ce23aedcf92da2935ba9bfd4c8de1
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date: Fri Apr 5 15:47:29 2013 -0300
GladeEPropBool: Removed GladeBoolToggle and replaced with plain old good GtkSwitch.
gladeui/Makefile.am | 6 +-
gladeui/glade-bool-toggle.c | 216 ---------------------------------------
gladeui/glade-bool-toggle.h | 58 -----------
gladeui/glade-editor-property.c | 7 +-
4 files changed, 5 insertions(+), 282 deletions(-)
---
diff --git a/gladeui/Makefile.am b/gladeui/Makefile.am
index a12d62f..fba20cd 100644
--- a/gladeui/Makefile.am
+++ b/gladeui/Makefile.am
@@ -100,8 +100,7 @@ libgladeui_2_la_SOURCES = \
glade-displayable-values.c \
glade-signal-model.c \
glade-cell-renderer-icon.c \
- glade-preview.c \
- glade-bool-toggle.c
+ glade-preview.c
libgladeui_2_la_CPPFLAGS = \
$(common_defines) \
@@ -165,8 +164,7 @@ noinst_HEADERS = \
glade-design-private.h \
glade-preview-tokens.h \
glade-preview.h \
- glade-path.h \
- glade-bool-toggle.h
+ glade-path.h
if PLATFORM_WIN32
libgladeui_2_la_LDFLAGS += -no-undefined
diff --git a/gladeui/glade-editor-property.c b/gladeui/glade-editor-property.c
index d1699ac..ed72e11 100644
--- a/gladeui/glade-editor-property.c
+++ b/gladeui/glade-editor-property.c
@@ -49,7 +49,6 @@
#include "glade-marshallers.h"
#include "glade-displayable-values.h"
#include "glade-named-icon-chooser-dialog.h"
-#include "glade-bool-toggle.h"
enum
{
@@ -2303,7 +2302,7 @@ glade_eprop_bool_load (GladeEditorProperty *eprop, GladeProperty *property)
{
GladeEPropBool *eprop_bool = GLADE_EPROP_BOOL (eprop);
gboolean state = g_value_get_boolean (glade_property_inline_value (property));
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (eprop_bool->button), state);
+ gtk_switch_set_active (GTK_SWITCH (eprop_bool->button), state);
}
}
@@ -2318,7 +2317,7 @@ glade_eprop_bool_active_notify (GObject *gobject,
return;
g_value_init (&val, G_TYPE_BOOLEAN);
- g_value_set_boolean (&val, gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (gobject)));
+ g_value_set_boolean (&val, gtk_switch_get_active (GTK_SWITCH (gobject)));
glade_editor_property_commit_no_callback (eprop, &val);
@@ -2330,7 +2329,7 @@ glade_eprop_bool_create_input (GladeEditorProperty *eprop)
{
GladeEPropBool *eprop_bool = GLADE_EPROP_BOOL (eprop);
- eprop_bool->button = _glade_bool_toggle_new ();
+ eprop_bool->button = gtk_switch_new ();
gtk_widget_set_halign (eprop_bool->button, GTK_ALIGN_START);
gtk_widget_set_valign (eprop_bool->button, GTK_ALIGN_CENTER);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]