Fix call to location_store_xml

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

	* main.c (store_archive_data): Fix call to location_store_xml
This commit is contained in:
Bradford Hovinen 2001-03-13 03:16:08 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent a4d3d1b934
commit 45c0705006
8 changed files with 1093 additions and 1057 deletions

View file

@ -17,7 +17,7 @@
<widget> <widget>
<class>GtkWindow</class> <class>GtkWindow</class>
<name>window1</name> <name>window1</name>
<title>window1</title> <title>window2</title>
<type>GTK_WINDOW_TOPLEVEL</type> <type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position> <position>GTK_WIN_POS_NONE</position>
<modal>False</modal> <modal>False</modal>
@ -26,24 +26,13 @@
<auto_shrink>False</auto_shrink> <auto_shrink>False</auto_shrink>
<widget> <widget>
<class>GtkVBox</class> <class>GtkTable</class>
<name>prefs_widget</name> <name>prefs_widget</name>
<rows>4</rows>
<columns>2</columns>
<homogeneous>False</homogeneous> <homogeneous>False</homogeneous>
<spacing>0</spacing> <row_spacing>5</row_spacing>
<column_spacing>5</column_spacing>
<widget>
<class>GtkEventBox</class>
<name>monitor_frame</name>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>Placeholder</class>
</widget>
</widget>
<widget> <widget>
<class>GtkCheckButton</class> <class>GtkCheckButton</class>
@ -58,464 +47,213 @@
<active>True</active> <active>True</active>
<draw_indicator>True</draw_indicator> <draw_indicator>True</draw_indicator>
<child> <child>
<padding>0</padding> <left_attach>0</left_attach>
<expand>False</expand> <right_attach>1</right_attach>
<fill>False</fill> <top_attach>0</top_attach>
<bottom_attach>1</bottom_attach>
<xpad>0</xpad>
<ypad>0</ypad>
<xexpand>False</xexpand>
<yexpand>False</yexpand>
<xshrink>False</xshrink>
<yshrink>False</yshrink>
<xfill>True</xfill>
<yfill>False</yfill>
</child> </child>
</widget> </widget>
<widget> <widget>
<class>GtkHBox</class> <class>GtkFrame</class>
<name>hbox2</name> <name>color_frame</name>
<homogeneous>False</homogeneous> <label>Colors</label>
<spacing>4</spacing> <label_xalign>0</label_xalign>
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
<child> <child>
<padding>4</padding> <left_attach>0</left_attach>
<expand>False</expand> <right_attach>1</right_attach>
<fill>False</fill> <top_attach>1</top_attach>
<bottom_attach>2</bottom_attach>
<xpad>0</xpad>
<ypad>0</ypad>
<xexpand>False</xexpand>
<yexpand>True</yexpand>
<xshrink>False</xshrink>
<yshrink>False</yshrink>
<xfill>True</xfill>
<yfill>True</yfill>
</child> </child>
<widget> <widget>
<class>GtkFrame</class> <class>GtkTable</class>
<name>color_frame</name> <name>table4</name>
<label>Colors</label> <border_width>4</border_width>
<label_xalign>0</label_xalign> <rows>3</rows>
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type> <columns>2</columns>
<child> <homogeneous>False</homogeneous>
<padding>0</padding> <row_spacing>4</row_spacing>
<expand>False</expand> <column_spacing>4</column_spacing>
<fill>True</fill>
</child>
<widget> <widget>
<class>GtkTable</class> <class>GtkLabel</class>
<name>table4</name> <name>label5</name>
<border_width>4</border_width> <label>Effect</label>
<rows>3</rows> <justify>GTK_JUSTIFY_CENTER</justify>
<columns>2</columns> <wrap>False</wrap>
<homogeneous>False</homogeneous> <xalign>0</xalign>
<row_spacing>4</row_spacing> <yalign>0.5</yalign>
<column_spacing>4</column_spacing> <xpad>0</xpad>
<ypad>0</ypad>
<widget> <child>
<class>GtkLabel</class> <left_attach>0</left_attach>
<name>label5</name> <right_attach>1</right_attach>
<label>Effect</label> <top_attach>0</top_attach>
<justify>GTK_JUSTIFY_CENTER</justify> <bottom_attach>1</bottom_attach>
<wrap>False</wrap>
<xalign>0</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad> <xpad>0</xpad>
<ypad>0</ypad> <ypad>0</ypad>
<child> <xexpand>False</xexpand>
<left_attach>0</left_attach> <yexpand>False</yexpand>
<right_attach>1</right_attach> <xshrink>False</xshrink>
<top_attach>0</top_attach> <yshrink>False</yshrink>
<bottom_attach>1</bottom_attach> <xfill>True</xfill>
<xpad>0</xpad> <yfill>False</yfill>
<ypad>0</ypad> </child>
<xexpand>False</xexpand> </widget>
<yexpand>False</yexpand>
<xshrink>False</xshrink>
<yshrink>False</yshrink>
<xfill>True</xfill>
<yfill>False</yfill>
</child>
</widget>
<widget> <widget>
<class>GtkLabel</class> <class>GtkLabel</class>
<name>label6</name> <name>label6</name>
<label>Color 1</label> <label>Primary color</label>
<justify>GTK_JUSTIFY_CENTER</justify> <justify>GTK_JUSTIFY_LEFT</justify>
<wrap>False</wrap> <wrap>False</wrap>
<xalign>0</xalign> <xalign>0</xalign>
<yalign>0.5</yalign> <yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
<child>
<left_attach>0</left_attach>
<right_attach>1</right_attach>
<top_attach>1</top_attach>
<bottom_attach>2</bottom_attach>
<xpad>0</xpad> <xpad>0</xpad>
<ypad>0</ypad> <ypad>0</ypad>
<child> <xexpand>False</xexpand>
<left_attach>0</left_attach> <yexpand>False</yexpand>
<right_attach>1</right_attach> <xshrink>False</xshrink>
<top_attach>1</top_attach> <yshrink>False</yshrink>
<bottom_attach>2</bottom_attach> <xfill>True</xfill>
<xpad>0</xpad> <yfill>False</yfill>
<ypad>0</ypad> </child>
<xexpand>False</xexpand> </widget>
<yexpand>False</yexpand>
<xshrink>False</xshrink>
<yshrink>False</yshrink>
<xfill>True</xfill>
<yfill>False</yfill>
</child>
</widget>
<widget> <widget>
<class>GtkLabel</class> <class>GtkLabel</class>
<name>label7</name> <name>color2_label</name>
<label>Color 2</label> <label>Right or bottom color</label>
<justify>GTK_JUSTIFY_CENTER</justify> <justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap> <wrap>False</wrap>
<xalign>0</xalign> <xalign>0</xalign>
<yalign>0.5</yalign> <yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
<child>
<left_attach>0</left_attach>
<right_attach>1</right_attach>
<top_attach>2</top_attach>
<bottom_attach>3</bottom_attach>
<xpad>0</xpad> <xpad>0</xpad>
<ypad>0</ypad> <ypad>0</ypad>
<child> <xexpand>False</xexpand>
<left_attach>0</left_attach> <yexpand>False</yexpand>
<right_attach>1</right_attach> <xshrink>False</xshrink>
<top_attach>2</top_attach> <yshrink>False</yshrink>
<bottom_attach>3</bottom_attach> <xfill>True</xfill>
<xpad>0</xpad> <yfill>False</yfill>
<ypad>0</ypad> </child>
<xexpand>False</xexpand> </widget>
<yexpand>False</yexpand>
<xshrink>False</xshrink>
<yshrink>False</yshrink>
<xfill>True</xfill>
<yfill>False</yfill>
</child>
</widget>
<widget> <widget>
<class>GnomeColorPicker</class> <class>GnomeColorPicker</class>
<name>color1_select</name> <name>color1_select</name>
<can_focus>True</can_focus> <can_focus>True</can_focus>
<signal> <signal>
<name>color_set</name> <name>color_set</name>
<handler>color1_select_color_set_cb</handler> <handler>color1_select_color_set_cb</handler>
<last_modification_time>Sat, 09 Dec 2000 01:18:26 GMT</last_modification_time> <last_modification_time>Sat, 09 Dec 2000 01:18:26 GMT</last_modification_time>
</signal> </signal>
<dither>True</dither> <dither>True</dither>
<use_alpha>False</use_alpha> <use_alpha>False</use_alpha>
<title>Pick a color</title> <title>Pick a color</title>
<child> <child>
<left_attach>1</left_attach> <left_attach>1</left_attach>
<right_attach>2</right_attach> <right_attach>2</right_attach>
<top_attach>1</top_attach> <top_attach>1</top_attach>
<bottom_attach>2</bottom_attach> <bottom_attach>2</bottom_attach>
<xpad>0</xpad> <xpad>0</xpad>
<ypad>0</ypad> <ypad>0</ypad>
<xexpand>False</xexpand> <xexpand>False</xexpand>
<yexpand>False</yexpand> <yexpand>False</yexpand>
<xshrink>False</xshrink> <xshrink>False</xshrink>
<yshrink>False</yshrink> <yshrink>False</yshrink>
<xfill>True</xfill> <xfill>True</xfill>
<yfill>False</yfill> <yfill>False</yfill>
</child> </child>
</widget> </widget>
<widget> <widget>
<class>GnomeColorPicker</class> <class>GnomeColorPicker</class>
<name>color2_select</name> <name>color2_select</name>
<can_focus>True</can_focus> <can_focus>True</can_focus>
<signal> <signal>
<name>color_set</name> <name>color_set</name>
<handler>color2_select_color_set_cb</handler> <handler>color2_select_color_set_cb</handler>
<last_modification_time>Sat, 09 Dec 2000 01:18:35 GMT</last_modification_time> <last_modification_time>Sat, 09 Dec 2000 01:18:35 GMT</last_modification_time>
</signal> </signal>
<dither>True</dither> <dither>True</dither>
<use_alpha>False</use_alpha> <use_alpha>False</use_alpha>
<title>Pick a color</title> <title>Pick a color</title>
<child> <child>
<left_attach>1</left_attach> <left_attach>1</left_attach>
<right_attach>2</right_attach> <right_attach>2</right_attach>
<top_attach>2</top_attach> <top_attach>2</top_attach>
<bottom_attach>3</bottom_attach> <bottom_attach>3</bottom_attach>
<xpad>0</xpad> <xpad>0</xpad>
<ypad>0</ypad> <ypad>0</ypad>
<xexpand>False</xexpand> <xexpand>False</xexpand>
<yexpand>False</yexpand> <yexpand>False</yexpand>
<xshrink>False</xshrink> <xshrink>False</xshrink>
<yshrink>False</yshrink> <yshrink>False</yshrink>
<xfill>True</xfill> <xfill>True</xfill>
<yfill>False</yfill> <yfill>False</yfill>
</child> </child>
</widget> </widget>
<widget> <widget>
<class>GtkOptionMenu</class> <class>GtkOptionMenu</class>
<name>color_option</name> <name>color_option</name>
<can_focus>True</can_focus> <can_focus>True</can_focus>
<items>Solid Color <items>Solid Color
Vertical Gradient Vertical Gradient
Horizontal Gradient Horizontal Gradient
</items> </items>
<initial_choice>1</initial_choice> <initial_choice>1</initial_choice>
<child> <child>
<left_attach>1</left_attach> <left_attach>1</left_attach>
<right_attach>2</right_attach> <right_attach>2</right_attach>
<top_attach>0</top_attach> <top_attach>0</top_attach>
<bottom_attach>1</bottom_attach> <bottom_attach>1</bottom_attach>
<xpad>0</xpad>
<ypad>0</ypad>
<xexpand>True</xexpand>
<yexpand>False</yexpand>
<xshrink>False</xshrink>
<yshrink>False</yshrink>
<xfill>True</xfill>
<yfill>False</yfill>
</child>
</widget>
</widget>
</widget>
<widget>
<class>GtkFrame</class>
<name>wallpaper_frame</name>
<label>Wallpaper</label>
<label_xalign>0</label_xalign>
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkTable</class>
<name>table3</name>
<border_width>4</border_width>
<rows>2</rows>
<columns>3</columns>
<homogeneous>False</homogeneous>
<row_spacing>4</row_spacing>
<column_spacing>4</column_spacing>
<widget>
<class>GtkLabel</class>
<name>label3</name>
<label>File</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad> <xpad>0</xpad>
<ypad>0</ypad> <ypad>0</ypad>
<child> <xexpand>True</xexpand>
<left_attach>0</left_attach> <yexpand>False</yexpand>
<right_attach>1</right_attach> <xshrink>False</xshrink>
<top_attach>0</top_attach> <yshrink>False</yshrink>
<bottom_attach>1</bottom_attach> <xfill>True</xfill>
<xpad>0</xpad> <yfill>False</yfill>
<ypad>0</ypad> </child>
<xexpand>False</xexpand>
<yexpand>False</yexpand>
<xshrink>False</xshrink>
<yshrink>False</yshrink>
<xfill>True</xfill>
<yfill>False</yfill>
</child>
</widget>
<widget>
<class>GtkLabel</class>
<name>label4</name>
<label>Effect</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
<child>
<left_attach>0</left_attach>
<right_attach>1</right_attach>
<top_attach>1</top_attach>
<bottom_attach>2</bottom_attach>
<xpad>0</xpad>
<ypad>0</ypad>
<xexpand>False</xexpand>
<yexpand>False</yexpand>
<xshrink>False</xshrink>
<yshrink>False</yshrink>
<xfill>True</xfill>
<yfill>False</yfill>
</child>
</widget>
<widget>
<class>GtkOptionMenu</class>
<name>wp_effect_option</name>
<can_focus>True</can_focus>
<items>Tiled
Centered
Scaled (keep aspect ratio)
Stretched (change aspect ratio)
Embossed
</items>
<initial_choice>0</initial_choice>
<child>
<left_attach>1</left_attach>
<right_attach>3</right_attach>
<top_attach>1</top_attach>
<bottom_attach>2</bottom_attach>
<xpad>0</xpad>
<ypad>0</ypad>
<xexpand>True</xexpand>
<yexpand>False</yexpand>
<xshrink>False</xshrink>
<yshrink>False</yshrink>
<xfill>True</xfill>
<yfill>False</yfill>
</child>
</widget>
<widget>
<class>GtkButton</class>
<name>browse_button</name>
<can_focus>True</can_focus>
<signal>
<name>clicked</name>
<handler>browse_button_cb</handler>
<last_modification_time>Fri, 08 Dec 2000 21:55:52 GMT</last_modification_time>
</signal>
<label>Browse...</label>
<child>
<left_attach>2</left_attach>
<right_attach>3</right_attach>
<top_attach>0</top_attach>
<bottom_attach>1</bottom_attach>
<xpad>0</xpad>
<ypad>0</ypad>
<xexpand>False</xexpand>
<yexpand>False</yexpand>
<xshrink>False</xshrink>
<yshrink>False</yshrink>
<xfill>False</xfill>
<yfill>False</yfill>
</child>
</widget>
<widget>
<class>GtkOptionMenu</class>
<name>wp_file_option</name>
<width>66</width>
<can_focus>True</can_focus>
<items>(None)
</items>
<initial_choice>0</initial_choice>
<child>
<left_attach>1</left_attach>
<right_attach>2</right_attach>
<top_attach>0</top_attach>
<bottom_attach>1</bottom_attach>
<xpad>0</xpad>
<ypad>0</ypad>
<xexpand>True</xexpand>
<yexpand>False</yexpand>
<xshrink>False</xshrink>
<yshrink>False</yshrink>
<xfill>True</xfill>
<yfill>False</yfill>
</child>
</widget>
</widget> </widget>
</widget> </widget>
</widget> </widget>
<widget>
<class>GtkCheckButton</class>
<name>adjust_opacity_toggle</name>
<can_focus>True</can_focus>
<signal>
<name>toggled</name>
<handler>adjust_opacity_toggled_cb</handler>
<last_modification_time>Thu, 21 Dec 2000 19:54:21 GMT</last_modification_time>
</signal>
<label>Adjust wallpaper's opacity</label>
<active>False</active>
<draw_indicator>True</draw_indicator>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkHBox</class>
<name>opacity_box</name>
<homogeneous>False</homogeneous>
<spacing>4</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkLabel</class>
<name>label10</name>
<width>16</width>
<label></label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkLabel</class>
<name>label8</name>
<label>More Transparent</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkHScale</class>
<name>opacity_adjust</name>
<can_focus>True</can_focus>
<draw_value>False</draw_value>
<value_pos>GTK_POS_TOP</value_pos>
<digits>1</digits>
<policy>GTK_UPDATE_CONTINUOUS</policy>
<value>0</value>
<lower>0</lower>
<upper>0</upper>
<step>0</step>
<page>0</page>
<page_size>0</page_size>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
</widget>
<widget>
<class>GtkLabel</class>
<name>label9</name>
<label>More Solid</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
</widget>
<widget> <widget>
<class>GtkCheckButton</class> <class>GtkCheckButton</class>
<name>auto_apply</name> <name>auto_apply</name>
@ -529,11 +267,313 @@ Embossed
<active>False</active> <active>False</active>
<draw_indicator>True</draw_indicator> <draw_indicator>True</draw_indicator>
<child> <child>
<padding>0</padding> <left_attach>0</left_attach>
<expand>False</expand> <right_attach>2</right_attach>
<fill>False</fill> <top_attach>3</top_attach>
<bottom_attach>4</bottom_attach>
<xpad>0</xpad>
<ypad>0</ypad>
<xexpand>False</xexpand>
<yexpand>False</yexpand>
<xshrink>False</xshrink>
<yshrink>False</yshrink>
<xfill>True</xfill>
<yfill>False</yfill>
</child> </child>
</widget> </widget>
<widget>
<class>GtkFrame</class>
<name>wallpaper_frame</name>
<label>Wallpaper</label>
<label_xalign>0</label_xalign>
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
<child>
<left_attach>0</left_attach>
<right_attach>2</right_attach>
<top_attach>2</top_attach>
<bottom_attach>3</bottom_attach>
<xpad>0</xpad>
<ypad>0</ypad>
<xexpand>True</xexpand>
<yexpand>True</yexpand>
<xshrink>False</xshrink>
<yshrink>False</yshrink>
<xfill>True</xfill>
<yfill>True</yfill>
</child>
<widget>
<class>GtkTable</class>
<name>table3</name>
<border_width>4</border_width>
<rows>4</rows>
<columns>3</columns>
<homogeneous>False</homogeneous>
<row_spacing>4</row_spacing>
<column_spacing>4</column_spacing>
<widget>
<class>GtkLabel</class>
<name>label3</name>
<label>File</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
<child>
<left_attach>0</left_attach>
<right_attach>1</right_attach>
<top_attach>0</top_attach>
<bottom_attach>1</bottom_attach>
<xpad>0</xpad>
<ypad>0</ypad>
<xexpand>False</xexpand>
<yexpand>False</yexpand>
<xshrink>False</xshrink>
<yshrink>False</yshrink>
<xfill>True</xfill>
<yfill>False</yfill>
</child>
</widget>
<widget>
<class>GtkLabel</class>
<name>label4</name>
<label>Display Style</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
<child>
<left_attach>0</left_attach>
<right_attach>1</right_attach>
<top_attach>1</top_attach>
<bottom_attach>2</bottom_attach>
<xpad>0</xpad>
<ypad>0</ypad>
<xexpand>False</xexpand>
<yexpand>False</yexpand>
<xshrink>False</xshrink>
<yshrink>False</yshrink>
<xfill>True</xfill>
<yfill>False</yfill>
</child>
</widget>
<widget>
<class>GtkOptionMenu</class>
<name>wp_effect_option</name>
<can_focus>True</can_focus>
<items>Tiled
Centered
Scaled (keep aspect ratio)
Stretched (change aspect ratio)
</items>
<initial_choice>0</initial_choice>
<child>
<left_attach>1</left_attach>
<right_attach>3</right_attach>
<top_attach>1</top_attach>
<bottom_attach>2</bottom_attach>
<xpad>0</xpad>
<ypad>0</ypad>
<xexpand>True</xexpand>
<yexpand>False</yexpand>
<xshrink>False</xshrink>
<yshrink>False</yshrink>
<xfill>True</xfill>
<yfill>False</yfill>
</child>
</widget>
<widget>
<class>GtkButton</class>
<name>browse_button</name>
<can_focus>True</can_focus>
<signal>
<name>clicked</name>
<handler>browse_button_cb</handler>
<last_modification_time>Fri, 08 Dec 2000 21:55:52 GMT</last_modification_time>
</signal>
<label>Browse...</label>
<relief>GTK_RELIEF_NORMAL</relief>
<child>
<left_attach>2</left_attach>
<right_attach>3</right_attach>
<top_attach>0</top_attach>
<bottom_attach>1</bottom_attach>
<xpad>0</xpad>
<ypad>0</ypad>
<xexpand>False</xexpand>
<yexpand>False</yexpand>
<xshrink>False</xshrink>
<yshrink>False</yshrink>
<xfill>False</xfill>
<yfill>False</yfill>
</child>
</widget>
<widget>
<class>GtkOptionMenu</class>
<name>wp_file_option</name>
<width>66</width>
<can_focus>True</can_focus>
<items>(None)
</items>
<initial_choice>0</initial_choice>
<child>
<left_attach>1</left_attach>
<right_attach>2</right_attach>
<top_attach>0</top_attach>
<bottom_attach>1</bottom_attach>
<xpad>0</xpad>
<ypad>0</ypad>
<xexpand>True</xexpand>
<yexpand>False</yexpand>
<xshrink>False</xshrink>
<yshrink>False</yshrink>
<xfill>True</xfill>
<yfill>False</yfill>
</child>
</widget>
<widget>
<class>GtkCheckButton</class>
<name>adjust_opacity_toggle</name>
<can_focus>True</can_focus>
<signal>
<name>toggled</name>
<handler>adjust_opacity_toggled_cb</handler>
<last_modification_time>Thu, 21 Dec 2000 19:54:21 GMT</last_modification_time>
</signal>
<label>Adjust wallpaper's transparency</label>
<active>False</active>
<draw_indicator>True</draw_indicator>
<child>
<left_attach>0</left_attach>
<right_attach>3</right_attach>
<top_attach>2</top_attach>
<bottom_attach>3</bottom_attach>
<xpad>0</xpad>
<ypad>0</ypad>
<xexpand>False</xexpand>
<yexpand>False</yexpand>
<xshrink>False</xshrink>
<yshrink>False</yshrink>
<xfill>True</xfill>
<yfill>False</yfill>
</child>
</widget>
<widget>
<class>GtkHBox</class>
<name>opacity_box</name>
<homogeneous>False</homogeneous>
<spacing>4</spacing>
<child>
<left_attach>0</left_attach>
<right_attach>3</right_attach>
<top_attach>3</top_attach>
<bottom_attach>4</bottom_attach>
<xpad>0</xpad>
<ypad>0</ypad>
<xexpand>False</xexpand>
<yexpand>True</yexpand>
<xshrink>False</xshrink>
<yshrink>False</yshrink>
<xfill>True</xfill>
<yfill>True</yfill>
</child>
<widget>
<class>GtkLabel</class>
<name>label8</name>
<label>More Transparent</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkHScale</class>
<name>opacity_adjust</name>
<can_focus>True</can_focus>
<draw_value>False</draw_value>
<value_pos>GTK_POS_TOP</value_pos>
<digits>1</digits>
<policy>GTK_UPDATE_CONTINUOUS</policy>
<value>0</value>
<lower>0</lower>
<upper>256</upper>
<step>2.56</step>
<page>25.6</page>
<page_size>25.6</page_size>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
</widget>
<widget>
<class>GtkLabel</class>
<name>label9</name>
<label>More Solid</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
</widget>
</widget>
</widget>
<widget>
<class>GtkFrame</class>
<name>monitor_frame</name>
<width>210</width>
<height>170</height>
<label_xalign>0</label_xalign>
<shadow_type>GTK_SHADOW_NONE</shadow_type>
<child>
<left_attach>1</left_attach>
<right_attach>2</right_attach>
<top_attach>0</top_attach>
<bottom_attach>2</bottom_attach>
<xpad>0</xpad>
<ypad>0</ypad>
<xexpand>False</xexpand>
<yexpand>False</yexpand>
<xshrink>False</xshrink>
<yshrink>False</yshrink>
<xfill>True</xfill>
<yfill>True</yfill>
</child>
<widget>
<class>Placeholder</class>
</widget>
</widget>
</widget> </widget>
</widget> </widget>

View file

@ -1,33 +1,30 @@
/*n * Fil med oversettbare strenger generert av Glade. /*
* Legg till denne filen i ditt prosjekts POTFILES.in. * Translatable strings file generated by Glade.
* IKKE kompiler den som en del av applikasjonen din. * Add this file to your project's POTFILES.in.
* DO NOT compile it as part of your application.
*/ */
gchar *s = N_("window1"); gchar *s = N_("window2");
gchar *s = N_("Use GNOME for setting background"); gchar *s = N_("Use GNOME for setting background");
gchar *s = N_("Colors"); gchar *s = N_("Colors");
gchar *s = N_("Effect"); gchar *s = N_("Effect");
gchar *s = N_("Color 1"); gchar *s = N_("Primary color");
gchar *s = N_("Color 2"); gchar *s = N_("Right or bottom color");
gchar *s = N_("Pick a color"); gchar *s = N_("Pick a color");
gchar *s = N_("Pick a color"); gchar *s = N_("Pick a color");
gchar *s = N_("Solid Color\n" gchar *s = N_("Solid Color");
"Vertical Gradient\n" gchar *s = N_("Vertical Gradient");
"Horizontal Gradient\n" gchar *s = N_("Horizontal Gradient");
""); gchar *s = N_("Apply changes automatically");
gchar *s = N_("Wallpaper"); gchar *s = N_("Wallpaper");
gchar *s = N_("File"); gchar *s = N_("File");
gchar *s = N_("Effect"); gchar *s = N_("Display Style");
gchar *s = N_("Tiled\n" gchar *s = N_("Tiled");
"Centered\n" gchar *s = N_("Centered");
"Scaled (keep aspect ratio)\n" gchar *s = N_("Scaled (keep aspect ratio)");
"Stretched (change aspect ratio)\n" gchar *s = N_("Stretched (change aspect ratio)");
"Embossed\n"
"");
gchar *s = N_("Browse..."); gchar *s = N_("Browse...");
gchar *s = N_("(None)\n" gchar *s = N_("(None)");
""); gchar *s = N_("Adjust wallpaper's transparency");
gchar *s = N_("Adjust wallpaper's opacity");
gchar *s = N_("More Transparent"); gchar *s = N_("More Transparent");
gchar *s = N_("More Solid"); gchar *s = N_("More Solid");
gchar *s = N_("Apply changes automatically");

View file

@ -59,7 +59,7 @@ store_archive_data (void)
location = archive_get_current_location (archive); location = archive_get_current_location (archive);
xml_doc = preferences_write_xml (prefs); xml_doc = preferences_write_xml (prefs);
location_store_xml (location, "background-properties-capplet", location_store_xml (location, "background-properties-capplet",
xml_doc); xml_doc, STORE_MASK_PREVIOUS);
xmlFreeDoc (xml_doc); xmlFreeDoc (xml_doc);
archive_close (archive); archive_close (archive);
} }

View file

@ -210,12 +210,14 @@ preferences_load (Preferences *prefs)
gnome_config_get_int ("/Background/Default/wallpaperAlign=0"); gnome_config_get_int ("/Background/Default/wallpaperAlign=0");
prefs->wallpaper_filename = prefs->wallpaper_filename =
gnome_config_get_string ("/Background/Default/wallpaper=(None)"); gnome_config_get_string
("/Background/Default/wallpaper=(None)");
prefs->wallpaper_sel_path = prefs->wallpaper_sel_path =
gnome_config_get_string gnome_config_get_string
("/Background/Default/wallpapers_dir=./"); ("/Background/Default/wallpapers_dir=./");
prefs->auto_apply = gnome_config_get_bool ("/Background/Default/autoApply=true"); prefs->auto_apply =
gnome_config_get_bool ("/Background/Default/autoApply=true");
if (!g_strcasecmp (prefs->wallpaper_filename, "(None)")) { if (!g_strcasecmp (prefs->wallpaper_filename, "(None)")) {
g_free(prefs->wallpaper_filename); g_free(prefs->wallpaper_filename);
@ -226,21 +228,25 @@ preferences_load (Preferences *prefs)
} }
wps = gnome_config_get_int ("/Background/Default/wallpapers=0"); wps = gnome_config_get_int ("/Background/Default/wallpapers=0");
for (i = 0; i < wps; i++) { for (i = 0; i < wps; i++) {
wp = g_strdup_printf ("/Background/Default/wallpaper%d", i+1); wp = g_strdup_printf ("/Background/Default/wallpaper%d", i+1);
wp1 = gnome_config_get_string (wp); wp1 = gnome_config_get_string (wp);
g_free (wp); g_free (wp);
if (!wp1) continue; if (wp1 == NULL) continue;
prefs->wallpapers = g_slist_prepend (prefs->wallpapers, wp1); prefs->wallpapers = g_slist_prepend (prefs->wallpapers, wp1);
} }
prefs->wallpapers = g_slist_reverse (prefs->wallpapers); prefs->wallpapers = g_slist_reverse (prefs->wallpapers);
prefs->adjust_opacity = gnome_config_get_bool ("/Background/Default/adjustOpacity=true"); prefs->adjust_opacity =
gnome_config_get_bool
("/Background/Default/adjustOpacity=true");
prefs->opacity = gnome_config_get_int ("/Background/Default/opacity=255"); prefs->opacity =
gnome_config_get_int ("/Background/Default/opacity=255");
} }
void void

View file

@ -64,7 +64,7 @@ struct _Preferences
gchar *wallpaper_filename; gchar *wallpaper_filename;
gchar *wallpaper_sel_path; gchar *wallpaper_sel_path;
GSList *wallpapers; GSList *wallpapers;
gboolean adjust_opacity; gboolean adjust_opacity;
gint opacity; gint opacity;

File diff suppressed because it is too large Load diff

View file

@ -1,3 +1,7 @@
2001-03-12 Bradford Hovinen <hovinen@ximian.com>
* main.c (store_archive_data): Fix call to location_store_xml
2001-01-25 Bradford Hovinen <hovinen@ximian.com> 2001-01-25 Bradford Hovinen <hovinen@ximian.com>
* main.c (store_archive_data): Implement; copy from * main.c (store_archive_data): Implement; copy from

View file

@ -62,7 +62,7 @@ store_archive_data (void)
location = archive_get_current_location (archive); location = archive_get_current_location (archive);
xml_doc = preferences_write_xml (prefs); xml_doc = preferences_write_xml (prefs);
location_store_xml (location, "screensaver-properties-capplet", location_store_xml (location, "screensaver-properties-capplet",
xml_doc); xml_doc, STORE_MASK_PREVIOUS);
xmlFreeDoc (xml_doc); xmlFreeDoc (xml_doc);
archive_close (archive); archive_close (archive);
} }