[gnome-control-center/wip/feborges/new-users-panel: 14/18] user-accounts: Bring back the "Remove Account" functionality
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/feborges/new-users-panel: 14/18] user-accounts: Bring back the "Remove Account" functionality
- Date: Mon, 11 Jul 2016 12:53:32 +0000 (UTC)
commit d199f945a9e1bfbb2be0f0f60f7a6321e6062ddb
Author: Felipe Borges <felipeborges gnome org>
Date: Wed Jun 29 14:56:20 2016 +0200
user-accounts: Bring back the "Remove Account" functionality
panels/user-accounts/data/user-accounts-dialog.ui | 44 ++++++++++++++-------
panels/user-accounts/um-user-panel.c | 4 +-
2 files changed, 32 insertions(+), 16 deletions(-)
---
diff --git a/panels/user-accounts/data/user-accounts-dialog.ui
b/panels/user-accounts/data/user-accounts-dialog.ui
index 5b74063..21433df 100644
--- a/panels/user-accounts/data/user-accounts-dialog.ui
+++ b/panels/user-accounts/data/user-accounts-dialog.ui
@@ -379,21 +379,6 @@
<property name="height">1</property>
</packing>
</child>
- <child>
- <object class="GtkButton" id="last-login-history-button">
- <property name="label" translatable="yes">_Account Activity</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_underline">True</property>
- </object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
</object>
<packing>
<property name="left_attach">1</property>
@@ -409,6 +394,35 @@
<property name="position">0</property>
</packing>
</child>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ <property name="orientation">horizontal</property>
+ <child>
+ <object class="GtkButton" id="remove-user-button">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">_Remove Account</property>
+ <property name="use_underline">True</property>
+ </object>
+ <packing>
+ <property name="pack_type">start</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="last-login-history-button">
+ <property name="label" translatable="yes">_Account Activity</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_underline">True</property>
+ </object>
+ <packing>
+ <property name="pack_type">end</property>
+ </packing>
+ </child>
+ </object>
+ </child>
</object>
</child>
</object>
diff --git a/panels/user-accounts/um-user-panel.c b/panels/user-accounts/um-user-panel.c
index 58c8670..63e8d3c 100644
--- a/panels/user-accounts/um-user-panel.c
+++ b/panels/user-accounts/um-user-panel.c
@@ -214,7 +214,6 @@ user_removed (ActUserManager *um, ActUser *user, CcUserPanelPrivate *d)
static void
user_changed (ActUserManager *um, ActUser *user, CcUserPanelPrivate *d)
{
- g_print ("user changed\n");
}
static void
@@ -1179,6 +1178,9 @@ setup_main_window (CcUserPanel *self)
g_signal_connect (button, "start-editing",
G_CALLBACK (change_fingerprint), d);
+ button = get_widget (d, "remove-user-button");
+ g_signal_connect (button, "clicked", G_CALLBACK (delete_user), self);
+
button = get_widget (d, "last-login-history-button");
g_signal_connect (button, "clicked",
G_CALLBACK (show_history), d);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]