[gnome-commander/gcmd-1-6] Moves disk free space label to another widget if devlist isn't shown on startup
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-6] Moves disk free space label to another widget if devlist isn't shown on startup
- Date: Mon, 31 Oct 2016 21:10:53 +0000 (UTC)
commit f29fe50ec3d43dc23c40cd7ca7df5d0b7eb413c4
Author: Uwe Scholz <uwescholz src gnome org>
Date: Mon Oct 31 22:01:26 2016 +0100
Moves disk free space label to another widget if devlist isn't shown on startup
src/gnome-cmd-file-selector.cc | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index ea3a6e3..a780da1 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -837,7 +837,11 @@ static void init (GnomeCmdFileSelector *fs)
gtk_box_pack_start (GTK_BOX (vbox), padding, FALSE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (padding), fs->info_label, FALSE, TRUE, 6);
gtk_box_pack_start (GTK_BOX (fs->con_hbox), *fs->con_combo, FALSE, FALSE, 0);
- gtk_box_pack_start (GTK_BOX (fs->con_hbox), fs->vol_label, TRUE, TRUE, 6);
+ // changing this value has only an effect when restarting gcmd
+ if (gnome_cmd_data.show_devlist)
+ gtk_box_pack_start (GTK_BOX (fs->con_hbox), fs->vol_label, TRUE, TRUE, 6);
+ else
+ gtk_box_pack_start (GTK_BOX (padding), fs->vol_label, TRUE, TRUE, 6);
// connect signals
g_signal_connect (fs, "realize", G_CALLBACK (on_realize), fs);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]