[gnome-control-center/wip/user-identities: 1/7] user-accounts: port from GtkTable to GtkGrid
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/user-identities: 1/7] user-accounts: port from GtkTable to GtkGrid
- Date: Wed, 29 Feb 2012 23:39:52 +0000 (UTC)
commit 8f18258984c285fa3d0eaa08fbe805dfb1d12016
Author: Ray Strode <rstrode redhat com>
Date: Wed Feb 29 01:38:42 2012 -0500
user-accounts: port from GtkTable to GtkGrid
GtkTable is deprecated and no longer encouraged.
This commit changes the user panel over to gtkgrid
instead.
panels/user-accounts/data/user-accounts-dialog.ui | 122 +++++++++++----------
1 files changed, 66 insertions(+), 56 deletions(-)
---
diff --git a/panels/user-accounts/data/user-accounts-dialog.ui b/panels/user-accounts/data/user-accounts-dialog.ui
index b4a5cc8..2744952 100644
--- a/panels/user-accounts/data/user-accounts-dialog.ui
+++ b/panels/user-accounts/data/user-accounts-dialog.ui
@@ -129,11 +129,10 @@
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
- <object class="GtkTable" id="table1">
+ <object class="GtkGrid" id="user-grid">
<property name="visible">True</property>
- <property name="n_rows">7</property>
- <property name="n_columns">2</property>
<property name="column_spacing">10</property>
+ <property name="column_homogeneous">TRUE</property>
<child>
<object class="GtkNotebook" id="account-fingerprint-notebook">
<property name="visible">True</property>
@@ -165,10 +164,9 @@
</object>
<packing>
<property name="left_attach">1</property>
- <property name="right_attach">2</property>
+ <property name="width">1</property>
<property name="top_attach">6</property>
- <property name="bottom_attach">7</property>
- <property name="y_options">0</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
@@ -178,17 +176,18 @@
<property name="text-column">0</property>
</object>
<packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="y_options">0</property>
+ <property name="left_attach">2</property>
+ <property name="width">1</property>
+ <property name="top_attach">2</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="account-type-label">
<property name="visible">True</property>
<property name="xalign">1</property>
+ <property name="halign">GTK_ALIGN_END</property>
+ <property name="hexpand">TRUE</property>
<property name="label" translatable="yes">Account _type</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">account-type-combo</property>
@@ -197,10 +196,10 @@
</style>
</object>
<packing>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="x_options">GTK_FILL</property>
- <property name="y_options">0</property>
+ <property name="left_attach">1</property>
+ <property name="width">1</property>
+ <property name="top_attach">2</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
@@ -221,15 +220,18 @@
</child>
</object>
<packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="y_options">0</property>
+ <property name="left_attach">2</property>
+ <property name="width">1</property>
+ <property name="top_attach">0</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="login-options-label">
<property name="visible">True</property>
<property name="xalign">1</property>
+ <property name="halign">GTK_ALIGN_END</property>
+ <property name="hexpand">TRUE</property>
<property name="ypad">5</property>
<property name="label" translatable="yes">Login Options</property>
<attributes>
@@ -237,16 +239,18 @@
</attributes>
</object>
<packing>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
- <property name="x_options">GTK_FILL</property>
- <property name="y_options">0</property>
+ <property name="left_attach">1</property>
+ <property name="width">1</property>
+ <property name="top_attach">4</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="password-label">
<property name="visible">True</property>
<property name="xalign">1</property>
+ <property name="halign">GTK_ALIGN_END</property>
+ <property name="hexpand">TRUE</property>
<property name="label" translatable="yes">_Password</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">account-password-button</property>
@@ -255,10 +259,10 @@
</style>
</object>
<packing>
- <property name="top_attach">4</property>
- <property name="bottom_attach">5</property>
- <property name="x_options">GTK_FILL</property>
- <property name="y_options">0</property>
+ <property name="left_attach">1</property>
+ <property name="width">1</property>
+ <property name="top_attach">5</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
@@ -266,17 +270,18 @@
<property name="visible">True</property>
</object>
<packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">4</property>
- <property name="bottom_attach">5</property>
- <property name="y_options">0</property>
+ <property name="left_attach">2</property>
+ <property name="width">1</property>
+ <property name="top_attach">5</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="autologin-label">
<property name="visible">True</property>
<property name="xalign">1</property>
+ <property name="halign">GTK_ALIGN_END</property>
+ <property name="hexpand">TRUE</property>
<property name="label" translatable="yes">A_utomatic Login</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">autologin-switch</property>
@@ -285,10 +290,10 @@
</style>
</object>
<packing>
- <property name="top_attach">5</property>
- <property name="bottom_attach">6</property>
- <property name="x_options">GTK_FILL</property>
- <property name="y_options">0</property>
+ <property name="left_attach">1</property>
+ <property name="width">1</property>
+ <property name="top_attach">6</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
@@ -309,17 +314,18 @@
</child>
</object>
<packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">5</property>
- <property name="bottom_attach">6</property>
- <property name="y_options">0</property>
+ <property name="left_attach">2</property>
+ <property name="width">1</property>
+ <property name="top_attach">6</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="account-fingerprint-label">
<property name="visible">True</property>
<property name="xalign">1</property>
+ <property name="halign">GTK_ALIGN_END</property>
+ <property name="hexpand">TRUE</property>
<property name="label" translatable="yes">_Fingerprint Login</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">account-fingerprint-button</property>
@@ -328,15 +334,17 @@
</style>
</object>
<packing>
- <property name="top_attach">6</property>
- <property name="bottom_attach">7</property>
- <property name="x_options">GTK_FILL</property>
- <property name="y_options">0</property>
+ <property name="left_attach">1</property>
+ <property name="width">1</property>
+ <property name="top_attach">7</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkHBox" id="hbox5">
<property name="visible">True</property>
+ <property name="halign">GTK_ALIGN_END</property>
+ <property name="hexpand">TRUE</property>
<child>
<object class="GtkLabel" id="label4">
<property name="visible">True</property>
@@ -397,14 +405,18 @@
</child>
</object>
<packing>
- <property name="x_options">GTK_FILL</property>
- <property name="y_options">0</property>
+ <property name="left_attach">1</property>
+ <property name="width">1</property>
+ <property name="top_attach">0</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="language-label">
<property name="visible">True</property>
<property name="xalign">1</property>
+ <property name="halign">GTK_ALIGN_END</property>
+ <property name="hexpand">TRUE</property>
<property name="label" translatable="yes">_Language</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">account-language-combo</property>
@@ -413,10 +425,10 @@
</style>
</object>
<packing>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- <property name="x_options">GTK_FILL</property>
- <property name="y_options">0</property>
+ <property name="left_attach">1</property>
+ <property name="width">1</property>
+ <property name="top_attach">3</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
@@ -426,12 +438,10 @@
<property name="text-column">1</property>
</object>
<packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- <property name="x_options">GTK_FILL</property>
- <property name="y_options">0</property>
+ <property name="left_attach">2</property>
+ <property name="width">1</property>
+ <property name="top_attach">3</property>
+ <property name="height">1</property>
</packing>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]