Use prefs_widget rather than preview placeholder widget

2001-12-17  Bradford Hovinen  <hovinen@ximian.com>

	* background-properties-capplet.c (create_dialog): Use
	prefs_widget rather than preview placeholder widget

	* background-properties.glade: Remove the preview placeholder
This commit is contained in:
Bradford Hovinen 2001-12-17 16:23:10 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent 1f7b8868df
commit fd0119b1e9
4 changed files with 41 additions and 90 deletions

View file

@ -1,3 +1,8 @@
2001-12-17 Bradford Hovinen <hovinen@ximian.com>
* background-properties-capplet.c (create_dialog): Use
prefs_widget rather than preview placeholder widget
2001-12-07 Bradford Hovinen <hovinen@ximian.com>
* background.schema: Fix default values

View file

@ -242,7 +242,7 @@ create_dialog (void)
g_signal_connect_swapped (G_OBJECT (widget), "destroy", (GCallback) g_object_unref, G_OBJECT (applier));
/* Minor GUI addition */
holder = WID ("preview_holder");
holder = WID ("prefs_widget");
gtk_box_pack_start (GTK_BOX (holder), applier_get_preview_widget (applier), TRUE, TRUE, 0);
gtk_widget_show_all (holder);

View file

@ -20,53 +20,6 @@
<property name="spacing">0</property>
<property name="visible">yes</property>
<child>
<widget class="GtkHBox" id="hbox3">
<property name="homogeneous">no</property>
<property name="spacing">0</property>
<property name="visible">yes</property>
<child>
<widget class="GtkVBox" id="preview_holder">
<property name="homogeneous">no</property>
<property name="spacing">0</property>
<property name="visible">yes</property>
<child>
<widget class="Placeholder" id="None">
<property name="visible">yes</property>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">yes</property>
<property name="fill">yes</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">no</property>
<property name="fill">no</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="picture_enabled_check">
<property name="can_focus">yes</property>
<property name="label" translatable="yes">Use a picture for the background</property>
<property name="active">no</property>
<property name="draw_indicator">yes</property>
<property name="visible">yes</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">no</property>
<property name="fill">no</property>
</packing>
</child>
<child>
<widget class="GtkFrame" id="picture_frame">
<property name="border_width">4</property>
@ -344,6 +297,7 @@
<property name="padding">0</property>
<property name="expand">no</property>
<property name="fill">no</property>
<property name="pack_type">GTK_PACK_END</property>
</packing>
</child>
@ -483,6 +437,23 @@
<property name="padding">0</property>
<property name="expand">no</property>
<property name="fill">no</property>
<property name="pack_type">GTK_PACK_END</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="picture_enabled_check">
<property name="can_focus">yes</property>
<property name="label" translatable="yes">Use a picture for the background</property>
<property name="active">no</property>
<property name="draw_indicator">yes</property>
<property name="visible">yes</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">no</property>
<property name="fill">no</property>
<property name="pack_type">GTK_PACK_END</property>
</packing>
</child>
</widget>

View file

@ -30,48 +30,6 @@
<homogeneous>False</homogeneous>
<spacing>0</spacing>
<widget>
<class>GtkHBox</class>
<name>hbox3</name>
<homogeneous>False</homogeneous>
<spacing>0</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkVBox</class>
<name>preview_holder</name>
<homogeneous>False</homogeneous>
<spacing>0</spacing>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>Placeholder</class>
</widget>
</widget>
</widget>
<widget>
<class>GtkCheckButton</class>
<name>picture_enabled_check</name>
<can_focus>True</can_focus>
<label>Use a picture for the background</label>
<active>False</active>
<draw_indicator>True</draw_indicator>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkFrame</class>
<name>picture_frame</name>
@ -83,6 +41,7 @@
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
<pack>GTK_PACK_END</pack>
</child>
<widget>
@ -321,6 +280,7 @@ Stretched
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
<pack>GTK_PACK_END</pack>
</child>
<widget>
@ -392,6 +352,21 @@ Vertical gradient
</widget>
</widget>
</widget>
<widget>
<class>GtkCheckButton</class>
<name>picture_enabled_check</name>
<can_focus>True</can_focus>
<label>Use a picture for the background</label>
<active>False</active>
<draw_indicator>True</draw_indicator>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
<pack>GTK_PACK_END</pack>
</child>
</widget>
</widget>
</widget>