[gthumb: 5/23] contact_sheet: added a squared thumbnail property
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb: 5/23] contact_sheet: added a squared thumbnail property
- Date: Sun, 26 Dec 2010 19:20:09 +0000 (UTC)
commit 128202e1d054fc31ca5e942c8b78ef6d89a9cae1
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Dec 23 23:52:15 2010 +0100
contact_sheet: added a squared thumbnail property
.../data/gthumb_contact_sheet.schemas.in | 13 +++++++++++++
extensions/contact_sheet/dlg-contact-sheet.c | 3 +++
extensions/contact_sheet/preferences.h | 1 +
3 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/extensions/contact_sheet/data/gthumb_contact_sheet.schemas.in b/extensions/contact_sheet/data/gthumb_contact_sheet.schemas.in
index ab6aca7..751df67 100644
--- a/extensions/contact_sheet/data/gthumb_contact_sheet.schemas.in
+++ b/extensions/contact_sheet/data/gthumb_contact_sheet.schemas.in
@@ -184,6 +184,19 @@
</schema>
<schema>
+ <key>/schemas/apps/gthumb/ext/contact_sheet/squared_thumbnail</key>
+ <applyto>/apps/gthumb/ext/contact_sheet/squared_thumbnail</applyto>
+ <owner>gthumb</owner>
+ <type>bool</type>
+ <default>false</default>
+ <locale name="C">
+ <short></short>
+ <long>
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
<key>/schemas/apps/gthumb/ext/contact_sheet/thumbnail_caption</key>
<applyto>/apps/gthumb/ext/contact_sheet/thumbnail_caption</applyto>
<owner>gthumb</owner>
diff --git a/extensions/contact_sheet/dlg-contact-sheet.c b/extensions/contact_sheet/dlg-contact-sheet.c
index 144930c..2a59594 100644
--- a/extensions/contact_sheet/dlg-contact-sheet.c
+++ b/extensions/contact_sheet/dlg-contact-sheet.c
@@ -194,6 +194,9 @@ ok_clicked_cb (GtkWidget *widget,
thumbnail_size = thumb_size[gtk_combo_box_get_active (GTK_COMBO_BOX (GET_WIDGET ("thumbnail_size_combobox")))];
eel_gconf_set_integer (PREF_CONTACT_SHEET_THUMBNAIL_SIZE, thumbnail_size);
+ squared_thumbnail = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (GET_WIDGET ("squared_thumbnail_checkbutton")));
+ eel_gconf_set_boolean (PREF_CONTACT_SHEET_SQUARED_THUMBNAIL, squared_thumbnail);
+
thumbnail_caption = gth_metadata_chooser_get_selection (GTH_METADATA_CHOOSER (data->thumbnail_caption_chooser));
eel_gconf_set_string (PREF_CONTACT_SHEET_THUMBNAIL_CAPTION, thumbnail_caption);
diff --git a/extensions/contact_sheet/preferences.h b/extensions/contact_sheet/preferences.h
index 99bcade..f8cc006 100644
--- a/extensions/contact_sheet/preferences.h
+++ b/extensions/contact_sheet/preferences.h
@@ -40,6 +40,7 @@ G_BEGIN_DECLS
#define PREF_CONTACT_SHEET_SORT_INVERSE "/apps/gthumb/ext/contact_sheet/sort_inverse"
#define PREF_CONTACT_SHEET_SAME_SIZE "/apps/gthumb/ext/contact_sheet/same_size"
#define PREF_CONTACT_SHEET_THUMBNAIL_SIZE "/apps/gthumb/ext/contact_sheet/thumbnail_size"
+#define PREF_CONTACT_SHEET_SQUARED_THUMBNAIL "/apps/gthumb/ext/contact_sheet/squared_thumbnail"
#define PREF_CONTACT_SHEET_THUMBNAIL_CAPTION "/apps/gthumb/ext/contact_sheet/thumbnail_caption"
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]