[kupfer] Add a thank you text to preferences



commit 6dac66bd47c2a902199f3c7c85e969a1775fcef4
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Fri Apr 1 00:00:36 2011 +0200

    Add a thank you text to preferences

 data/art/hello-kupfer.jpg |  Bin 0 -> 27474 bytes
 data/preferences.ui       |   32 +++++++++++++++++++++++++++++++-
 kupfer/ui/preferences.py  |    2 ++
 3 files changed, 33 insertions(+), 1 deletions(-)
---
diff --git a/data/art/hello-kupfer.jpg b/data/art/hello-kupfer.jpg
new file mode 100644
index 0000000..da6c390
Binary files /dev/null and b/data/art/hello-kupfer.jpg differ
diff --git a/data/preferences.ui b/data/preferences.ui
index 131ecf5..9aaeaf1 100644
--- a/data/preferences.ui
+++ b/data/preferences.ui
@@ -189,7 +189,37 @@
                       </packing>
                     </child>
                     <child>
-                      <placeholder/>
+                      <object class="GtkVBox" id="vbox11">
+                        <property name="visible">True</property>
+                        <property name="orientation">vertical</property>
+                        <child>
+                          <object class="GtkImage" id="hello-image">
+                            <property name="visible">True</property>
+                            <property name="xpad">5</property>
+                            <property name="ypad">5</property>
+                            <property name="icon_name">kupfer</property>
+                          </object>
+                          <packing>
+                            <property name="position">0</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkLabel" id="label11">
+                            <property name="visible">True</property>
+                            <property name="ypad">10</property>
+                            <property name="label" translatable="yes">&lt;b&gt;Thank you for using Kupfer!&lt;/b&gt;
+
+Visit us at &lt;a href="http://kaizer.se/wiki/kupfer/"&gt;http://kaizer.se/wiki/kupfer/&lt;/a&gt;</property>
+                            <property name="use_markup">True</property>
+                          </object>
+                          <packing>
+                            <property name="position">1</property>
+                          </packing>
+                        </child>
+                      </object>
+                      <packing>
+                        <property name="position">1</property>
+                      </packing>
                     </child>
                   </object>
                 </child>
diff --git a/kupfer/ui/preferences.py b/kupfer/ui/preferences.py
index b7337b8..281bc6c 100644
--- a/kupfer/ui/preferences.py
+++ b/kupfer/ui/preferences.py
@@ -99,6 +99,8 @@ class PreferencesWindowController (pretty.OutputMixin):
 		checkautostart.set_active(self._get_should_autostart())
 		checkstatusicon.set_active(setctl.get_show_status_icon())
 		checkusecommandkeys.set_active(setctl.get_use_command_keys())
+		hello_image = builder.get_object("hello-image")
+		hello_image.set_from_file(config.get_data_file("art/hello-kupfer.jpg"))
 
 		# List store with columns (Name, ID) 
 		# Make alternative comboboxes



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