[easytag/wip/application-window: 14/15] Set a rough initial window size and pane positions
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/application-window: 14/15] Set a rough initial window size and pane positions
- Date: Thu, 17 Apr 2014 22:18:35 +0000 (UTC)
commit 8e9e2a92fa95e68e1615840b2e4bd2f1ee1c7ca0
Author: David King <amigadave amigadave com>
Date: Mon Jan 20 21:08:13 2014 +0000
Set a rough initial window size and pane positions
src/application_window.c | 4 ++++
src/browser.c | 2 ++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/application_window.c b/src/application_window.c
index f6adc3f..43af14d 100644
--- a/src/application_window.c
+++ b/src/application_window.c
@@ -1686,6 +1686,7 @@ et_application_window_init (EtApplicationWindow *self)
window = GTK_WINDOW (self);
+ gtk_window_set_default_size (window, 1024, 768);
gtk_window_set_icon_name (window, PACKAGE_TARNAME);
gtk_window_set_title (window, PACKAGE_NAME);
@@ -1717,6 +1718,9 @@ et_application_window_init (EtApplicationWindow *self)
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_paned_pack2 (GTK_PANED (priv->hpaned), vbox, FALSE, FALSE);
+ /* TODO: Set a sensible default size for both widgets in the paned. */
+ gtk_paned_set_position (GTK_PANED (priv->hpaned), 600);
+
/* File */
priv->file_area = create_file_area ();
gtk_box_pack_start (GTK_BOX (vbox), priv->file_area, FALSE, FALSE, 0);
diff --git a/src/browser.c b/src/browser.c
index 41455e8..ae66670 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -3480,6 +3480,8 @@ GtkWidget *Create_Browser_Items (GtkWidget *parent)
gtk_paned_pack1(GTK_PANED(BrowserHPaned),BrowserNoteBook,TRUE,TRUE); // Left side
gtk_paned_pack2(GTK_PANED(BrowserHPaned),ScrollWindowFileList,TRUE,TRUE); // Right side
+ /* TODO: Give the browser area a sensible default size. */
+ gtk_paned_set_position (GTK_PANED (BrowserHPaned), 250);
gtk_widget_show_all(VerticalBox);
/* Set home variable as current path */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]