[gnome-disk-utility/udisks2-port] Use GtkGrid in crypttab dialog
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility/udisks2-port] Use GtkGrid in crypttab dialog
- Date: Fri, 23 Sep 2011 14:44:53 +0000 (UTC)
commit b4d2acbe79093596b5429ac7e6d6e246064cd665
Author: David Zeuthen <davidz redhat com>
Date: Fri Sep 23 10:44:48 2011 -0400
Use GtkGrid in crypttab dialog
Signed-off-by: David Zeuthen <davidz redhat com>
data/ui/edit-crypttab-dialog.ui | 52 ++++++++++++++++++++---------------
src/palimpsest/gducrypttabdialog.c | 6 ++--
2 files changed, 33 insertions(+), 25 deletions(-)
---
diff --git a/data/ui/edit-crypttab-dialog.ui b/data/ui/edit-crypttab-dialog.ui
index bbf12a7..c9f5c15 100644
--- a/data/ui/edit-crypttab-dialog.ui
+++ b/data/ui/edit-crypttab-dialog.ui
@@ -86,13 +86,11 @@
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<child>
- <object class="GtkTable" id="crypttab-table">
+ <object class="GtkGrid" id="crypttab-grid">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="n_rows">5</property>
- <property name="n_columns">2</property>
- <property name="column_spacing">10</property>
<property name="row_spacing">6</property>
+ <property name="column_spacing">10</property>
<child>
<object class="GtkLabel" id="crypttab-name-label">
<property name="visible">True</property>
@@ -106,7 +104,10 @@
</attributes>
</object>
<packing>
- <property name="x_options">GTK_FILL</property>
+ <property name="left_attach">0</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
@@ -122,9 +123,10 @@
</attributes>
</object>
<packing>
+ <property name="left_attach">0</property>
<property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="x_options">GTK_FILL</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
@@ -133,12 +135,15 @@
<property name="can_focus">True</property>
<property name="has_tooltip">True</property>
<property name="tooltip_markup" translatable="yes">The name to use for the unlocked device - the device is set up as the name prefixed with <b>/dev/mapper/</b></property>
+ <property name="tooltip_text" translatable="yes">The name to use for the unlocked device - the device is set up as the name prefixed with /dev/mapper/</property>
<property name="invisible_char">â</property>
<property name="invisible_char_set">True</property>
</object>
<packing>
<property name="left_attach">1</property>
- <property name="right_attach">2</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
@@ -147,14 +152,15 @@
<property name="can_focus">True</property>
<property name="has_tooltip">True</property>
<property name="tooltip_markup" translatable="yes">Options to use when unlocking the device</property>
+ <property name="tooltip_text" translatable="yes">Options to use when unlocking the device</property>
<property name="invisible_char">â</property>
<property name="invisible_char_set">True</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="width">1</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
@@ -170,9 +176,10 @@
</attributes>
</object>
<packing>
+ <property name="left_attach">0</property>
<property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- <property name="x_options">GTK_FILL</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
@@ -181,14 +188,15 @@
<property name="can_focus">True</property>
<property name="has_tooltip">True</property>
<property name="tooltip_markup" translatable="yes">Passphrase of the device or empty to request from user when setting up the device</property>
+ <property name="tooltip_text" translatable="yes">Passphrase of the device or empty to request from user when setting up the device</property>
<property name="invisible_char">â</property>
<property name="invisible_char_set">True</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="width">1</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
@@ -204,9 +212,9 @@
</object>
<packing>
<property name="left_attach">1</property>
- <property name="right_attach">2</property>
<property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
@@ -216,15 +224,15 @@
<property name="xalign">1</property>
<property name="label" translatable="yes">Passphrase File</property>
<property name="use_underline">True</property>
- <property name="mnemonic_widget">crypttab-passphrase-entry</property>
<attributes>
<attribute name="foreground" value="#555555555555"/>
</attributes>
</object>
<packing>
+ <property name="left_attach">0</property>
<property name="top_attach">4</property>
- <property name="bottom_attach">5</property>
- <property name="x_options">GTK_FILL</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
@@ -237,9 +245,9 @@
</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="width">1</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
@@ -248,7 +256,7 @@
</object>
<packing>
<property name="expand">False</property>
- <property name="fill">False</property>
+ <property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
diff --git a/src/palimpsest/gducrypttabdialog.c b/src/palimpsest/gducrypttabdialog.c
index 54da42a..f06a192 100644
--- a/src/palimpsest/gducrypttabdialog.c
+++ b/src/palimpsest/gducrypttabdialog.c
@@ -42,7 +42,7 @@ typedef struct
GtkBuilder *builder;
GtkWidget *dialog;
GtkWidget *configure_checkbutton;
- GtkWidget *table;
+ GtkWidget *grid;
GtkWidget *name_entry;
GtkWidget *options_entry;
@@ -217,7 +217,7 @@ crypttab_dialog_present (CrypttabDialogData *data)
g_object_bind_property (data->configure_checkbutton,
"active",
- data->table,
+ data->grid,
"sensitive",
G_BINDING_SYNC_CREATE);
@@ -459,7 +459,7 @@ gdu_crypttab_dialog_show (GduWindow *window,
data->dialog = dialog;
data->configure_checkbutton = GTK_WIDGET (gtk_builder_get_object (data->builder, "crypttab-configure-checkbutton"));
- data->table = GTK_WIDGET (gtk_builder_get_object (data->builder, "crypttab-table"));
+ data->grid = GTK_WIDGET (gtk_builder_get_object (data->builder, "crypttab-grid"));
data->name_entry = GTK_WIDGET (gtk_builder_get_object (data->builder, "crypttab-name-entry"));
data->options_entry = GTK_WIDGET (gtk_builder_get_object (data->builder, "crypttab-options-entry"));
data->passphrase_label = GTK_WIDGET (gtk_builder_get_object (data->builder, "crypttab-passphrase-label"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]