f-spot r4063 - in trunk/src: . UI.Dialog
- From: sdelcroix svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r4063 - in trunk/src: . UI.Dialog
- Date: Fri, 13 Jun 2008 12:20:43 +0000 (UTC)
Author: sdelcroix
Date: Fri Jun 13 12:20:43 2008
New Revision: 4063
URL: http://svn.gnome.org/viewvc/f-spot?rev=4063&view=rev
Log:
something fun for jimmac
Modified:
trunk/src/UI.Dialog/PreferenceDialog.cs
trunk/src/f-spot.glade
Modified: trunk/src/UI.Dialog/PreferenceDialog.cs
==============================================================================
--- trunk/src/UI.Dialog/PreferenceDialog.cs (original)
+++ trunk/src/UI.Dialog/PreferenceDialog.cs Fri Jun 13 12:20:43 2008
@@ -53,6 +53,7 @@
[Glade.Widget] private Label restartlabel;
[Glade.Widget] private FileChooserButton theme_filechooser;
[Glade.Widget] private Table theme_table;
+ [Glade.Widget] private Button refreshtheme_button;
private ComboBox themelist_combo;
@@ -142,6 +143,10 @@
restartlabel.Visible = false;
#endif
+#if DEBUGTHEMES
+ refreshtheme_button = true;
+#endif
+
Preferences.SettingChanged += OnPreferencesChanged;
this.Dialog.Destroyed += HandleDestroyed;
}
@@ -230,7 +235,7 @@
Gtk.Rc.DefaultFiles = Global.DefaultRcFiles;
Gtk.Rc.AddDefaultFile (Preferences.Get<string> (Preferences.GTK_RC));
foreach (string s in Rc.DefaultFiles)
- Console.WriteLine (s);
+ Console.WriteLine (s);
Gtk.Rc.ReparseAll ();
#endif
}
@@ -260,6 +265,14 @@
Global.PhotoDirectory = photosdir_chooser.Filename;
}
+
+ void HandleRefreshTheme (object o, EventArgs e)
+ {
+#if GTK_2_12_2
+ Gtk.Rc.ReparseAll ();
+#endif
+ }
+
void LoadPreference (string key)
{
switch (key) {
Modified: trunk/src/f-spot.glade
==============================================================================
--- trunk/src/f-spot.glade (original)
+++ trunk/src/f-spot.glade Fri Jun 13 12:20:43 2008
@@ -6614,8 +6614,15 @@
<property name="position">2</property>
</packing>
</child>
- <child>
- <placeholder/>
+ <child>
+ <widget class="GtkButton" id="refreshtheme_button">
+ <property name="label" translatable="yes">gtk-refresh</property>
+ <property name="use_stock">True</property>
+ <signal name="clicked" handler="HandleRefreshTheme"/>
+ </widget>
+ <packing>
+ <property name="position">3</property>
+ </packing>
</child>
</widget>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]