summaryrefslogtreecommitdiff
path: root/plugins/shotwell-publishing-extras/RajcePublishing.vala
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/shotwell-publishing-extras/RajcePublishing.vala')
-rw-r--r--plugins/shotwell-publishing-extras/RajcePublishing.vala6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/shotwell-publishing-extras/RajcePublishing.vala b/plugins/shotwell-publishing-extras/RajcePublishing.vala
index 8ae05c6..d282ed5 100644
--- a/plugins/shotwell-publishing-extras/RajcePublishing.vala
+++ b/plugins/shotwell-publishing-extras/RajcePublishing.vala
@@ -932,10 +932,8 @@ internal class AuthenticationPane : Spit.Publishing.DialogPane, Object
private void update_login_button_sensitivity()
{
- login_button.set_sensitive(
- !is_string_empty(username_entry.get_text()) &&
- !is_string_empty(password_entry.get_text())
- );
+ login_button.set_sensitive(username_entry.text_length > 0 &&
+ password_entry.text_length > 0);
}
public Gtk.Widget get_widget()