user-accounts: replace deprecated stuff
This commit is contained in:
parent
bd5ac1078d
commit
320f6e617b
4 changed files with 15 additions and 24 deletions
|
@ -192,7 +192,6 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">False</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="active">True</property>
|
||||
<property name="draw_indicator">True</property>
|
||||
</object>
|
||||
|
@ -206,7 +205,6 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">False</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="active">True</property>
|
||||
<property name="draw_indicator">True</property>
|
||||
<property name="group">local-password-login-radio</property>
|
||||
|
@ -601,10 +599,10 @@
|
|||
<property name="can_focus">False</property>
|
||||
<property name="icon_name">network-offline-symbolic</property>
|
||||
<property name="pixel_size">64</property>
|
||||
<property name="yalign">1</property>
|
||||
<property name="vexpand">True</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="margin_bottom">6</property>
|
||||
<property name="valign">end</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="left_attach">0</property>
|
||||
|
|
|
@ -238,7 +238,6 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">False</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="active">True</property>
|
||||
<property name="draw_indicator">True</property>
|
||||
</object>
|
||||
|
@ -252,7 +251,6 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">False</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="active">True</property>
|
||||
<property name="draw_indicator">True</property>
|
||||
<property name="group">action-login-radio</property>
|
||||
|
|
|
@ -202,7 +202,8 @@
|
|||
<object class="GtkLabel" id="login-options-label">
|
||||
<property name="visible">True</property>
|
||||
<property name="xalign">1</property>
|
||||
<property name="ypad">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<property name="margin-bottom">5</property>
|
||||
<property name="label" translatable="yes">Login Options</property>
|
||||
<attributes>
|
||||
<attribute name="weight" value="bold"/>
|
||||
|
@ -322,19 +323,14 @@
|
|||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkAlignment" id="user-icon-nonbutton">
|
||||
<property name="xscale">0</property>
|
||||
<property name="yscale">0</property>
|
||||
<child>
|
||||
<object class="GtkImage" id="user-icon-image">
|
||||
<property name="visible">True</property>
|
||||
<property name="icon_name">avatar-default</property>
|
||||
<property name="icon-size">6</property>
|
||||
<child internal-child="accessible">
|
||||
<object class="AtkObject" id="user-icon-image-a11y">
|
||||
<property name="accessible-name" translatable="yes">User Icon</property>
|
||||
</object>
|
||||
</child>
|
||||
<object class="GtkImage" id="user-icon-image">
|
||||
<property name="visible">True</property>
|
||||
<property name="icon_name">avatar-default</property>
|
||||
<property name="icon-size">6</property>
|
||||
<property name="halign">end</property>
|
||||
<child internal-child="accessible">
|
||||
<object class="AtkObject" id="user-icon-image-a11y">
|
||||
<property name="accessible-name" translatable="yes">User Icon</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
@ -449,7 +445,6 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="xalign">1</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="left_attach">1</property>
|
||||
|
@ -489,7 +484,7 @@
|
|||
<property name="mode">both</property>
|
||||
<widgets>
|
||||
<widget name="user-icon-button"/>
|
||||
<widget name="user-icon-nonbutton"/>
|
||||
<widget name="user-icon-image"/>
|
||||
</widgets>
|
||||
</object>
|
||||
<object class="GtkSizeGroup" id="label-sizegroup">
|
||||
|
|
|
@ -1431,7 +1431,7 @@ on_permission_changed (GPermission *permission,
|
|||
|
||||
if (is_authorized || self_selected) {
|
||||
gtk_widget_show (get_widget (d, "user-icon-button"));
|
||||
gtk_widget_hide (get_widget (d, "user-icon-nonbutton"));
|
||||
gtk_widget_hide (get_widget (d, "user-icon-image"));
|
||||
|
||||
um_editable_button_set_editable (UM_EDITABLE_BUTTON (get_widget (d, "account-language-button")), TRUE);
|
||||
remove_unlock_tooltip (get_widget (d, "account-language-button"));
|
||||
|
@ -1444,7 +1444,7 @@ on_permission_changed (GPermission *permission,
|
|||
}
|
||||
else {
|
||||
gtk_widget_hide (get_widget (d, "user-icon-button"));
|
||||
gtk_widget_show (get_widget (d, "user-icon-nonbutton"));
|
||||
gtk_widget_show (get_widget (d, "user-icon-image"));
|
||||
|
||||
um_editable_button_set_editable (UM_EDITABLE_BUTTON (get_widget (d, "account-language-button")), FALSE);
|
||||
add_unlock_tooltip (get_widget (d, "account-language-button"));
|
||||
|
@ -1628,7 +1628,7 @@ setup_main_window (CcUserPanel *self)
|
|||
button = get_widget (d, "remove-user-toolbutton");
|
||||
g_signal_connect (button, "clicked", G_CALLBACK (delete_user), self);
|
||||
|
||||
button = get_widget (d, "user-icon-nonbutton");
|
||||
button = get_widget (d, "user-icon-image");
|
||||
add_unlock_tooltip (button);
|
||||
|
||||
button = get_widget (d, "full-name-entry");
|
||||
|
|
Loading…
Add table
Reference in a new issue