[chronojump] Improvements on session load import window
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Improvements on session load import window
- Date: Mon, 7 Oct 2019 14:24:51 +0000 (UTC)
commit 654d3d1b0fa7aeafe0a999208fcdb2d04b05e8c2
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Oct 7 16:23:08 2019 +0200
Improvements on session load import window
glade/session_load.glade | 38 ++++++++++++++++++++------------------
src/gui/session.cs | 3 ++-
2 files changed, 22 insertions(+), 19 deletions(-)
---
diff --git a/glade/session_load.glade b/glade/session_load.glade
index 91eecde7..42d1ac9a 100644
--- a/glade/session_load.glade
+++ b/glade/session_load.glade
@@ -4,7 +4,7 @@
<!-- interface-naming-policy toplevel-contextual -->
<widget class="GtkWindow" id="session_load">
<property name="width_request">650</property>
- <property name="height_request">400</property>
+ <property name="height_request">450</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">10</property>
@@ -21,6 +21,7 @@
<widget class="GtkVBox" id="session_import_box">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="spacing">12</property>
<child>
<widget class="GtkHBox" id="filename_box">
<property name="visible">True</property>
@@ -37,17 +38,6 @@
<property name="position">0</property>
</packing>
</child>
- <child>
- <widget class="GtkLabel" id="file_path_import">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
<child>
<widget class="GtkButton" id="select_file_import">
<property name="visible">True</property>
@@ -58,7 +48,7 @@
<widget class="GtkHBox" id="hbox2">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="spacing">4</property>
+ <property name="spacing">8</property>
<child>
<widget class="GtkImage" id="image_open_database">
<property name="visible">True</property>
@@ -87,9 +77,9 @@
</child>
</widget>
<packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">2</property>
+ <property name="expand">True</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
</packing>
</child>
</widget>
@@ -99,16 +89,28 @@
<property name="position">0</property>
</packing>
</child>
+ <child>
+ <widget class="GtkLabel" id="file_path_import">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
<child>
<widget class="GtkAlignment" id="alignment1">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="bottom_padding">10</property>
<property name="left_padding">20</property>
<child>
<widget class="GtkHBox" id="import_options_box">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="spacing">12</property>
+ <property name="spacing">20</property>
<child>
<widget class="GtkRadioButton" id="radio_import_new_session">
<property name="label" translatable="yes">Import into a new session</property>
@@ -146,7 +148,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
- <property name="position">1</property>
+ <property name="position">2</property>
</packing>
</child>
</widget>
diff --git a/src/gui/session.cs b/src/gui/session.cs
index 211afcce..f8e15931 100644
--- a/src/gui/session.cs
+++ b/src/gui/session.cs
@@ -890,7 +890,8 @@ public class SessionLoadWindow {
if (filechooser.Run () == (int)ResponseType.Accept) {
import_file_path = filechooser.Filename;
- file_path_import.Text = System.IO.Path.GetFileName (import_file_path);
+ //file_path_import.Text = System.IO.Path.GetFileName (import_file_path);
+ file_path_import.Text = import_file_path;
file_path_import.TooltipText = import_file_path;
}
filechooser.Destroy ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]