[gnome-disk-utility] Don't show label example when creating logical partition
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] Don't show label example when creating logical partition
- Date: Fri, 27 Mar 2015 03:11:45 +0000 (UTC)
commit ba0b961081c5e082d14b6cfba6d258bc0f871122
Author: Thomas Perl <m thp io>
Date: Sun Oct 12 15:19:13 2014 +0200
Don't show label example when creating logical partition
The "For example, ..." label must not be shown when no name entry
is displayed.
https://bugzilla.gnome.org/show_bug.cgi?id=738397
src/disks/gducreatefilesystemwidget.c | 4 ++++
src/disks/ui/filesystem-create.ui | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/disks/gducreatefilesystemwidget.c b/src/disks/gducreatefilesystemwidget.c
index 48a982e..107268a 100644
--- a/src/disks/gducreatefilesystemwidget.c
+++ b/src/disks/gducreatefilesystemwidget.c
@@ -35,6 +35,7 @@ struct _GduCreateFilesystemWidget
GtkWidget *type_combobox;
GtkWidget *name_label;
GtkWidget *name_entry;
+ GtkWidget *name_example;
GtkWidget *filesystem_label;
GtkWidget *filesystem_entry;
GtkWidget *passphrase_label;
@@ -239,11 +240,13 @@ update (GduCreateFilesystemWidget *widget)
{
gtk_widget_show (widget->name_label);
gtk_widget_show (widget->name_entry);
+ gtk_widget_show (widget->name_example);
}
else
{
gtk_widget_hide (widget->name_label);
gtk_widget_hide (widget->name_entry);
+ gtk_widget_hide (widget->name_example);
}
if (show_filesystem_widgets)
@@ -520,6 +523,7 @@ gdu_create_filesystem_widget_constructed (GObject *object)
widget->name_label = GTK_WIDGET (gtk_builder_get_object (widget->builder, "name-label"));
widget->name_entry = GTK_WIDGET (gtk_builder_get_object (widget->builder, "name-entry"));
g_signal_connect (widget->name_entry, "notify::text", G_CALLBACK (on_property_changed), widget);
+ widget->name_example = GTK_WIDGET (gtk_builder_get_object (widget->builder, "name-example"));
widget->filesystem_label = GTK_WIDGET (gtk_builder_get_object (widget->builder, "filesystem-label"));
widget->filesystem_entry = GTK_WIDGET (gtk_builder_get_object (widget->builder, "filesystem-entry"));
g_signal_connect (widget->filesystem_entry, "notify::text", G_CALLBACK (on_property_changed), widget);
diff --git a/src/disks/ui/filesystem-create.ui b/src/disks/ui/filesystem-create.ui
index b95d314..bbbc21e 100644
--- a/src/disks/ui/filesystem-create.ui
+++ b/src/disks/ui/filesystem-create.ui
@@ -278,7 +278,7 @@
</packing>
</child>
<child>
- <object class="GtkLabel" id="label2">
+ <object class="GtkLabel" id="name-example">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]