[gthumb] added the destination button in all the import dialogs
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] added the destination button in all the import dialogs
- Date: Wed, 4 Aug 2010 22:04:15 +0000 (UTC)
commit cb20d1f8f98c300d2c0ec11f5e21423d22c48e26
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Aug 4 23:54:39 2010 +0200
added the destination button in all the import dialogs
extensions/flicker/data/ui/import-from-flickr.ui | 39 +++++++++++++++++++-
extensions/flicker/dlg-import-from-flickr.c | 10 +++++
.../picasaweb/data/ui/import-from-picasaweb.ui | 33 +++++++++++++++++
extensions/picasaweb/dlg-import-from-picasaweb.c | 10 +++++
4 files changed, 91 insertions(+), 1 deletions(-)
---
diff --git a/extensions/flicker/data/ui/import-from-flickr.ui b/extensions/flicker/data/ui/import-from-flickr.ui
index 66b1356..42bcae0 100644
--- a/extensions/flicker/data/ui/import-from-flickr.ui
+++ b/extensions/flicker/data/ui/import-from-flickr.ui
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0"?>
<interface>
<requires lib="gtk+" version="2.16"/>
<!-- interface-naming-policy project-wide -->
@@ -9,14 +9,17 @@
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox7">
<property name="visible">True</property>
+ <property name="orientation">vertical</property>
<child>
<object class="GtkVBox" id="hbox1">
<property name="visible">True</property>
<property name="border_width">5</property>
+ <property name="orientation">vertical</property>
<property name="spacing">12</property>
<child>
<object class="GtkVBox" id="vbox1">
<property name="visible">True</property>
+ <property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="GtkTable" id="table1">
@@ -28,6 +31,7 @@
<child>
<object class="GtkVBox" id="vbox4">
<property name="visible">True</property>
+ <property name="orientation">vertical</property>
<property name="spacing">3</property>
<child>
<object class="GtkHBox" id="hbox4">
@@ -147,6 +151,39 @@
<property name="position">1</property>
</packing>
</child>
+ <child>
+ <object class="GtkHBox" id="hbox2">
+ <property name="visible">True</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkLabel" id="label2">
+ <property name="visible">True</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">_Destination:</property>
+ <property name="use_underline">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHBox" id="destination_button_box">
+ <property name="visible">True</property>
+ <child>
+ <placeholder/>
+ </child>
+ </object>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
</object>
<packing>
<property name="position">1</property>
diff --git a/extensions/flicker/dlg-import-from-flickr.c b/extensions/flicker/dlg-import-from-flickr.c
index 0cfba5b..0316bb1 100644
--- a/extensions/flicker/dlg-import-from-flickr.c
+++ b/extensions/flicker/dlg-import-from-flickr.c
@@ -416,6 +416,8 @@ photoset_combobox_changed_cb (GtkComboBox *widget,
PHOTOSET_DATA_COLUMN, &data->photoset,
-1);
+ gth_import_preferences_dialog_set_event (GTH_IMPORT_PREFERENCES_DIALOG (data->preferences_dialog), data->photoset->title);
+
gth_task_dialog (GTH_TASK (data->conn), FALSE, NULL);
flickr_service_list_photos (data->service,
data->photoset,
@@ -588,6 +590,13 @@ dlg_import_from_flickr (FlickrServer *server,
data->preferences_dialog = gth_import_preferences_dialog_new ();
gtk_window_set_transient_for (GTK_WINDOW (data->preferences_dialog), GTK_WINDOW (data->dialog));
+ gtk_box_pack_start (GTK_BOX (GET_WIDGET ("destination_button_box")),
+ gth_import_destination_button_new (GTH_IMPORT_PREFERENCES_DIALOG (data->preferences_dialog)),
+ TRUE,
+ TRUE,
+ 0);
+ gtk_widget_show_all (GET_WIDGET ("destination_button_box"));
+
title = g_strdup_printf (_("Import from %s"), data->server->name);
gtk_window_set_title (GTK_WINDOW (data->dialog), title);
g_free (title);
@@ -626,6 +635,7 @@ dlg_import_from_flickr (FlickrServer *server,
data);
update_selection_status (data);
+ gth_import_preferences_dialog_set_event (GTH_IMPORT_PREFERENCES_DIALOG (data->preferences_dialog), "");
data->conn = flickr_connection_new (data->server);
data->service = flickr_service_new (data->conn);
diff --git a/extensions/picasaweb/data/ui/import-from-picasaweb.ui b/extensions/picasaweb/data/ui/import-from-picasaweb.ui
index 977d7a8..3dd69ee 100644
--- a/extensions/picasaweb/data/ui/import-from-picasaweb.ui
+++ b/extensions/picasaweb/data/ui/import-from-picasaweb.ui
@@ -163,6 +163,39 @@
<property name="position">1</property>
</packing>
</child>
+ <child>
+ <object class="GtkHBox" id="hbox2">
+ <property name="visible">True</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkLabel" id="label2">
+ <property name="visible">True</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">_Destination:</property>
+ <property name="use_underline">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHBox" id="destination_button_box">
+ <property name="visible">True</property>
+ <child>
+ <placeholder/>
+ </child>
+ </object>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
</object>
<packing>
<property name="position">1</property>
diff --git a/extensions/picasaweb/dlg-import-from-picasaweb.c b/extensions/picasaweb/dlg-import-from-picasaweb.c
index 48bdb59..9563800 100644
--- a/extensions/picasaweb/dlg-import-from-picasaweb.c
+++ b/extensions/picasaweb/dlg-import-from-picasaweb.c
@@ -800,6 +800,8 @@ album_combobox_changed_cb (GtkComboBox *widget,
ALBUM_DATA_COLUMN, &data->album,
-1);
+ gth_import_preferences_dialog_set_event (GTH_IMPORT_PREFERENCES_DIALOG (data->preferences_dialog), data->album->title);
+
gth_task_dialog (GTH_TASK (data->conn), FALSE, NULL);
picasa_web_service_list_photos (data->picasaweb,
data->album,
@@ -968,6 +970,13 @@ dlg_import_from_picasaweb (GthBrowser *browser)
data->preferences_dialog = gth_import_preferences_dialog_new ();
gtk_window_set_transient_for (GTK_WINDOW (data->preferences_dialog), GTK_WINDOW (data->dialog));
+ gtk_box_pack_start (GTK_BOX (GET_WIDGET ("destination_button_box")),
+ gth_import_destination_button_new (GTH_IMPORT_PREFERENCES_DIALOG (data->preferences_dialog)),
+ TRUE,
+ TRUE,
+ 0);
+ gtk_widget_show_all (GET_WIDGET ("destination_button_box"));
+
/* Set the signals handlers. */
g_signal_connect (G_OBJECT (data->dialog),
@@ -1000,6 +1009,7 @@ dlg_import_from_picasaweb (GthBrowser *browser)
data);
update_selection_status (data);
+ gth_import_preferences_dialog_set_event (GTH_IMPORT_PREFERENCES_DIALOG (data->preferences_dialog), "");
data->accounts = picasa_web_accounts_load_from_file (&data->email);
auto_select_account (data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]