[gthumb/ext] remove sensitivity to more widgets when no source is available
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gthumb/ext] remove sensitivity to more widgets when no source is available
- Date: Sun, 23 Aug 2009 07:43:21 +0000 (UTC)
commit 04e239f670f4424e7d7448ce3e0a4288948fbd72
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Aug 22 09:19:15 2009 +0200
remove sensitivity to more widgets when no source is available
.../photo_importer/data/ui/photo-importer.ui | 6 +++---
extensions/photo_importer/dlg-photo-importer.c | 2 ++
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/extensions/photo_importer/data/ui/photo-importer.ui b/extensions/photo_importer/data/ui/photo-importer.ui
index 16e7bb8..034cf43 100644
--- a/extensions/photo_importer/data/ui/photo-importer.ui
+++ b/extensions/photo_importer/data/ui/photo-importer.ui
@@ -19,7 +19,7 @@
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
- <object class="GtkHBox" id="hbox5">
+ <object class="GtkHBox" id="source_selector_box">
<property name="visible">True</property>
<property name="spacing">6</property>
<child>
@@ -171,7 +171,7 @@
</packing>
</child>
<child>
- <object class="GtkTable" id="table3">
+ <object class="GtkTable" id="tags_box">
<property name="visible">True</property>
<property name="n_columns">2</property>
<property name="column_spacing">6</property>
@@ -370,8 +370,8 @@
<child>
<object class="GtkFileChooserButton" id="destination_filechooserbutton">
<property name="visible">True</property>
- <property name="local_only">False</property>
<property name="action">select-folder</property>
+ <property name="local_only">False</property>
</object>
<packing>
<property name="position">0</property>
diff --git a/extensions/photo_importer/dlg-photo-importer.c b/extensions/photo_importer/dlg-photo-importer.c
index 09277fa..0ef1386 100644
--- a/extensions/photo_importer/dlg-photo-importer.c
+++ b/extensions/photo_importer/dlg-photo-importer.c
@@ -200,6 +200,8 @@ update_sensitivity (DialogData *data)
can_import = data->source != NULL;
gtk_widget_set_sensitive (GET_WIDGET ("ok_button"), can_import);
gtk_widget_set_sensitive (GET_WIDGET ("list_command_box"), can_import);
+ gtk_widget_set_sensitive (GET_WIDGET ("source_selector_box"), can_import);
+ gtk_widget_set_sensitive (GET_WIDGET ("tags_box"), can_import);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]