[shotwell/wip/pluggable-auth: 21/23] wip: Hook up logout capability of authenticator
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell/wip/pluggable-auth: 21/23] wip: Hook up logout capability of authenticator
- Date: Fri, 23 Dec 2016 15:27:05 +0000 (UTC)
commit 73519810ebf11fe31df5d6ff6abffe53cb42a91a
Author: Jens Georg <mail jensge org>
Date: Sun Dec 18 23:09:04 2016 +0100
wip: Hook up logout capability of authenticator
Signed-off-by: Jens Georg <mail jensge org>
.../shotwell-publishing/FacebookPublishing.vala | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/plugins/shotwell-publishing/FacebookPublishing.vala
b/plugins/shotwell-publishing/FacebookPublishing.vala
index 8b1fc21..6f52b6e 100644
--- a/plugins/shotwell-publishing/FacebookPublishing.vala
+++ b/plugins/shotwell-publishing/FacebookPublishing.vala
@@ -482,7 +482,8 @@ public class FacebookPublisher : Spit.Publishing.Publisher, GLib.Object {
}
publishing_options_pane = new PublishingOptionsPane(username, publishing_params.albums,
- host.get_publishable_media_type(), this, builder, get_persistent_strip_metadata());
+ host.get_publishable_media_type(), this, builder, get_persistent_strip_metadata(),
+ authenticator.can_logout());
publishing_options_pane.logout.connect(on_publishing_options_pane_logout);
publishing_options_pane.publish.connect(on_publishing_options_pane_publish);
host.install_dialog_pane(publishing_options_pane,
@@ -1052,7 +1053,7 @@ internal class PublishingOptionsPane : Spit.Publishing.DialogPane, GLib.Object {
public PublishingOptionsPane(string username, Album[] albums,
Spit.Publishing.Publisher.MediaType media_type, FacebookPublisher publisher,
- Gtk.Builder builder, bool strip_metadata) {
+ Gtk.Builder builder, bool strip_metadata, bool can_logout) {
this.builder = builder;
assert(builder != null);
@@ -1076,6 +1077,9 @@ internal class PublishingOptionsPane : Spit.Publishing.DialogPane, GLib.Object {
visibility_combo = (Gtk.ComboBoxText) this.builder.get_object("visibility_combo");
publish_button = (Gtk.Button) this.builder.get_object("publish_button");
logout_button = (Gtk.Button) this.builder.get_object("logout_button");
+ if (!can_logout) {
+ logout_button.parent.remove (logout_button);
+ }
new_album_entry = (Gtk.Entry) this.builder.get_object("new_album_entry");
resolution_combo = (Gtk.ComboBoxText) this.builder.get_object("resolution_combo");
how_to_label = (Gtk.Label) this.builder.get_object("how_to_label");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]