[Gpa-commits] r809 - trunk/src
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Feb 6 16:05:01 CET 2008
Author: marcus
Date: 2008-02-06 16:05:01 +0100 (Wed, 06 Feb 2008)
New Revision: 809
Modified:
trunk/src/ChangeLog
trunk/src/fileman.c
Log:
2008-02-06 Marcus Brinkmann <marcus at g10code.de>
* fileman.c (gpa_file_manager_constructor): Add alignment.
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2008-02-06 14:58:25 UTC (rev 808)
+++ trunk/src/ChangeLog 2008-02-06 15:05:01 UTC (rev 809)
@@ -1,5 +1,7 @@
2008-02-06 Marcus Brinkmann <marcus at g10code.de>
+ * fileman.c (gpa_file_manager_constructor): Add alignment.
+
* clipboard.c (clipboard_toolbar_new): Adjust spelling in tooltips.
* keyring.c (keyring_toolbar_new): Likewise.
* fileman.c (fileman_toolbar_new): Likewise.
Modified: trunk/src/fileman.c
===================================================================
--- trunk/src/fileman.c 2008-02-06 14:58:25 UTC (rev 808)
+++ trunk/src/fileman.c 2008-02-06 15:05:01 UTC (rev 809)
@@ -836,6 +836,8 @@
GtkWidget *file_box;
GtkWidget *file_frame;
GtkWidget *toolbar;
+ GtkWidget *align;
+ guint pt, pb, pl, pr;
/* Invoke parent's constructor. */
object = parent_class->constructor (type,
@@ -879,11 +881,20 @@
/* Third a hbox with the file list. */
+ align = gtk_alignment_new (0.5, 0.5, 1, 1);
+ gtk_alignment_get_padding (GTK_ALIGNMENT (align),
+ &pt, &pb, &pl, &pr);
+ gtk_alignment_set_padding (GTK_ALIGNMENT (align), pt, pb + 5,
+ pl + 5, pr + 5);
+ gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+
+
file_box = gtk_hbox_new (TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (file_box), 5);
file_frame = file_list_new (fileman);
gtk_box_pack_start (GTK_BOX (file_box), file_frame, TRUE, TRUE, 0);
- gtk_box_pack_end (GTK_BOX (vbox), file_box, TRUE, TRUE, 0);
+ gtk_container_add (GTK_CONTAINER (align), file_box);
+ gtk_box_pack_end (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+
gtk_container_add (GTK_CONTAINER (fileman), vbox);
g_signal_connect (object, "destroy",
More information about the Gpa-commits
mailing list