[gnome-latex: 197/205] vertical paned: pack widgets differently
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-latex: 197/205] vertical paned: pack widgets differently
- Date: Fri, 14 Dec 2018 11:03:27 +0000 (UTC)
commit ba83244810ac7d340962523c79bebf1b47d0d890
Author: Sébastien Wilmet <sebastien wilmet gmail com>
Date: Fri Mar 19 19:03:53 2010 +0100
vertical paned: pack widgets differently
src/main.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 172acdf..21ab7e5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -449,7 +449,7 @@ main (int argc, char *argv[])
// vbox_source_view contains the source view, go to line, search and replace
GtkWidget *vbox_source_view = gtk_vbox_new (FALSE, 2);
- gtk_paned_add1 (GTK_PANED (vpaned), vbox_source_view);
+ gtk_paned_pack1 (GTK_PANED (vpaned), vbox_source_view, TRUE, TRUE);
init_source_view (vbox_source_view);
init_go_to_line (vbox_source_view);
@@ -463,7 +463,9 @@ main (int argc, char *argv[])
GtkWidget *hpaned = gtk_hpaned_new ();
latexila.log_hpaned = GTK_PANED (hpaned);
gtk_paned_set_position (GTK_PANED (hpaned), latexila.prefs.log_hpaned_pos);
- gtk_paned_add2 (GTK_PANED (vpaned), hpaned);
+
+ // when we resize the window, the log zone keeps the same height
+ gtk_paned_pack2 (GTK_PANED (vpaned), hpaned, FALSE, TRUE);
init_log_zone (latexila.log_hpaned, log_toolbar);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]