[glade] Remove GtkSwitch and GtkInfoBar support



commit 746553e2029e3b646e75682804f874fa048d68ae
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Mon Apr 4 14:34:18 2011 -0300

    Remove GtkSwitch and GtkInfoBar support

 plugins/gtk+/Makefile.am             |    2 -
 plugins/gtk+/glade-gtk-info-bar.c    |   53 -------------------------
 plugins/gtk+/glade-gtk-switch.c      |   71 ----------------------------------
 plugins/gtk+/glade-gtk.c             |    2 +-
 plugins/gtk+/gtk+.xml.in             |   40 -------------------
 plugins/gtk+/icons/16x16/Makefile.am |    2 -
 plugins/gtk+/icons/22x22/Makefile.am |    2 -
 7 files changed, 1 insertions(+), 171 deletions(-)
---
diff --git a/plugins/gtk+/Makefile.am b/plugins/gtk+/Makefile.am
index 36e30a9..ae5565c 100644
--- a/plugins/gtk+/Makefile.am
+++ b/plugins/gtk+/Makefile.am
@@ -45,9 +45,7 @@ libgladegtk_la_SOURCES = \
 	glade-gtk-table.c \
 	glade-gtk-grid.c \
 	glade-gtk-action-widgets.c \
-	glade-gtk-info-bar.c \
 	glade-gtk-activatable.c \
-	glade-gtk-switch.c \
 	glade-gtk-marshallers.c
 
 libgladegtk_la_LDFLAGS     = -module -avoid-version $(AM_LDFLAGS)
diff --git a/plugins/gtk+/glade-gtk.c b/plugins/gtk+/glade-gtk.c
index 96a55b4..50e21c5 100644
--- a/plugins/gtk+/glade-gtk.c
+++ b/plugins/gtk+/glade-gtk.c
@@ -3934,7 +3934,7 @@ glade_gtk_dialog_post_create (GladeWidgetAdaptor *adaptor,
   if (reason == GLADE_CREATE_USER)
     {
       /* HIG complient spacing defaults on dialogs */
-      glade_widget_property_set (vbox_widget, "spacing", 2);
+      glade_widget_property_set (vbox_widget, _("spacing"), 2);
 
       if (GTK_IS_ABOUT_DIALOG (object) ||
           GTK_IS_FILE_CHOOSER_DIALOG (object))
diff --git a/plugins/gtk+/gtk+.xml.in b/plugins/gtk+/gtk+.xml.in
index 4a239c0..86390ea 100644
--- a/plugins/gtk+/gtk+.xml.in
+++ b/plugins/gtk+/gtk+.xml.in
@@ -1112,22 +1112,6 @@ embedded in another object</_tooltip>
       </properties>
     </glade-widget-class>
 
-    <glade-widget-class name="GtkSwitch" generic-name="switch" _title="Switch">
-      <post-create-function>glade_gtk_switch_post_create</post-create-function>
-      <set-property-function>glade_gtk_switch_set_property</set-property-function>
-      <create-editable-function>glade_gtk_switch_create_editable</create-editable-function>
-      <properties>
-        <!-- GtkActivatable -->
-        <property id="related-action" _name="Related Action" custom-layout="True">
-      	  <parameter-spec>
-	    <type>GParamObject</type>
-	    <value-type>GtkToggleAction</value-type>
-          </parameter-spec>
-        </property>
-        <property id="use-action-appearance" _name="Use Action Appearance" custom-layout="True" default="False"/>
-      </properties>
-    </glade-widget-class>
-
     <glade-widget-class name="GtkFileChooserButton" generic-name="filechooserbutton" _title="File Chooser Button">
       <set-property-function>glade_gtk_file_chooser_button_set_property</set-property-function>
 
@@ -1776,27 +1760,6 @@ embedded in another object</_tooltip>
     </glade-widget-class>
     
     <glade-widget-class name="GtkDrawingArea" generic-name="drawingarea" _title="Drawing Area"/>
-    
-    <glade-widget-class name="GtkInfoBar" generic-name="infobar" _title="Info Bar">
-      <read-child-function>glade_gtk_info_bar_read_child</read-child-function>
-      <write-child-function>glade_gtk_info_bar_write_child</write-child-function>
-      <internal-children>
-        <object name="action_area"/>
-        <object name="content_area"/>
-      </internal-children>
-      <properties>
-	<property id="message-type">
-  	  <displayable-values>
-	    <value id="GTK_MESSAGE_INFO" _name="Info"/>
-	    <value id="GTK_MESSAGE_WARNING" _name="Warning"/>
-	    <value id="GTK_MESSAGE_QUESTION" _name="Question"/>
-	    <value id="GTK_MESSAGE_ERROR" _name="Error"/>
-	    <value id="GTK_MESSAGE_OTHER" _name="Other"/>
-	  </displayable-values>
-	</property>
-        <property id="size" query="True" ignore="True" disabled="True"/>
-      </properties>
-    </glade-widget-class>
 
     <glade-widget-class name="GtkEventBox" generic-name="eventbox" _title="Event Box"/>
 
@@ -3782,7 +3745,6 @@ embedded in another object</_tooltip>
     <glade-widget-class-ref name="GtkToggleButton"/>
     <glade-widget-class-ref name="GtkCheckButton"/>
     <glade-widget-class-ref name="GtkRadioButton"/>
-    <glade-widget-class-ref name="GtkSwitch"/>
 
     <glade-widget-class-ref name="GtkEntry"/>
     <glade-widget-class-ref name="GtkSpinButton"/>
@@ -3821,8 +3783,6 @@ embedded in another object</_tooltip>
     <glade-widget-class-ref name="GtkSeparator"/>
     <glade-widget-class-ref name="GtkArrow"/>
     <glade-widget-class-ref name="GtkDrawingArea"/>
-
-    <glade-widget-class-ref name="GtkInfoBar"/>
   </glade-widget-group>
 
   <glade-widget-group name="gtk-composite" _title="Composite Widgets">
diff --git a/plugins/gtk+/icons/16x16/Makefile.am b/plugins/gtk+/icons/16x16/Makefile.am
index d91bfc3..c0d1008 100644
--- a/plugins/gtk+/icons/16x16/Makefile.am
+++ b/plugins/gtk+/icons/16x16/Makefile.am
@@ -61,7 +61,6 @@ icons_DATA = \
         widget-gtk-iconview.png \
         widget-gtk-image.png \
         widget-gtk-imagemenuitem.png \
-	widget-gtk-infobar.png \
         widget-gtk-inputdialog.png \
         widget-gtk-label.png \
         widget-gtk-layout.png \
@@ -104,7 +103,6 @@ icons_DATA = \
 	widget-gtk-texttagtable.png \
         widget-gtk-textview.png \
         widget-gtk-togglebutton.png \
-        widget-gtk-switch.png \
         widget-gtk-toggletoolbutton.png \
         widget-gtk-toolbar.png \
         widget-gtk-toolbutton.png \
diff --git a/plugins/gtk+/icons/22x22/Makefile.am b/plugins/gtk+/icons/22x22/Makefile.am
index d8fbeff..128a8f0 100644
--- a/plugins/gtk+/icons/22x22/Makefile.am
+++ b/plugins/gtk+/icons/22x22/Makefile.am
@@ -61,7 +61,6 @@ icons_DATA = \
         widget-gtk-iconview.png \
         widget-gtk-image.png \
         widget-gtk-imagemenuitem.png \
-	widget-gtk-infobar.png \
         widget-gtk-inputdialog.png \
         widget-gtk-label.png \
         widget-gtk-layout.png \
@@ -104,7 +103,6 @@ icons_DATA = \
 	widget-gtk-texttagtable.png \
         widget-gtk-textview.png \
         widget-gtk-togglebutton.png \
-	widget-gtk-switch.png \
         widget-gtk-toggletoolbutton.png \
         widget-gtk-toolbar.png \
         widget-gtk-toolbutton.png \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]