summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-09-10 17:42:50 +0200
committerThomas Haller <thaller@redhat.com>2015-09-11 14:13:30 +0200
commit8a77b227ad7cde7d9eed622a83e0d560b38ed19b (patch)
treef6af592e4397590304f19c3cd93aeb55b021920d
parent9491e737e39f1226120b6fdfbda297af800310c9 (diff)
downloadnetwork-manager-applet-8a77b227ad7cde7d9eed622a83e0d560b38ed19b.tar.gz
c-e: don't pass actionable argument to CEPolkitButton:update_button()
-rw-r--r--src/connection-editor/ce-polkit-button.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/connection-editor/ce-polkit-button.c b/src/connection-editor/ce-polkit-button.c
index c72177f0..690ed928 100644
--- a/src/connection-editor/ce-polkit-button.c
+++ b/src/connection-editor/ce-polkit-button.c
@@ -59,9 +59,12 @@ enum {
static guint signals[LAST_SIGNAL] = { 0 };
static void
-update_button (CEPolkitButton *self, gboolean actionable)
+update_button (CEPolkitButton *self)
{
CEPolkitButtonPrivate *priv = CE_POLKIT_BUTTON_GET_PRIVATE (self);
+ gboolean actionable;
+
+ actionable = ce_polkit_button_get_actionable (self);
gtk_widget_set_sensitive (GTK_WIDGET (self), actionable);
@@ -80,7 +83,7 @@ update_and_emit (CEPolkitButton *self, gboolean old_actionable)
gboolean new_actionable;
new_actionable = ce_polkit_button_get_actionable (self);
- update_button (self, new_actionable);
+ update_button (self);
if (new_actionable != old_actionable)
g_signal_emit (self, signals[ACTIONABLE], 0, new_actionable);
}
@@ -172,8 +175,7 @@ ce_polkit_button_new (const char *label,
g_object_ref_sink (priv->auth);
gtk_button_set_label (GTK_BUTTON (object), label);
- update_button (CE_POLKIT_BUTTON (object),
- ce_polkit_button_get_actionable (CE_POLKIT_BUTTON (object)));
+ update_button (CE_POLKIT_BUTTON (object));
permission_changed_cb (client,
permission,