]> Pileus Git - ~andy/gtk/commitdiff
Some packing tweaks.
authorOwen Taylor <otaylor@redhat.com>
Fri, 8 Mar 2002 19:28:50 +0000 (19:28 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Fri, 8 Mar 2002 19:28:50 +0000 (19:28 +0000)
Fri Mar  8 14:22:43 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkfilesel.c (gtk_file_selection_init): Some packing
        tweaks.

        * configure.in: Include GLIB_LIBS when checking
        for bind_textdomain_codeset, to catch the case where
        it is in -lintl.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
configure.in
gtk/gtkfilesel.c

index dd2d481518d5da28090b7a7a2f7197b1d0e18662..f1c8ee13c633281b65e35a6e6f0ea09d07fb8591 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+Fri Mar  8 14:22:43 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkfilesel.c (gtk_file_selection_init): Some packing
+       tweaks.
+
+       * configure.in: Include GLIB_LIBS when checking
+       for bind_textdomain_codeset, to catch the case where
+       it is in -lintl.
+
 Thu Mar  7 16:46:58 2002  Jonathan Blandford  <jrb@redhat.com>
 
        * gtk/gtktreeview.c (validate_visible_area): get rid of really
index dd2d481518d5da28090b7a7a2f7197b1d0e18662..f1c8ee13c633281b65e35a6e6f0ea09d07fb8591 100644 (file)
@@ -1,3 +1,12 @@
+Fri Mar  8 14:22:43 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkfilesel.c (gtk_file_selection_init): Some packing
+       tweaks.
+
+       * configure.in: Include GLIB_LIBS when checking
+       for bind_textdomain_codeset, to catch the case where
+       it is in -lintl.
+
 Thu Mar  7 16:46:58 2002  Jonathan Blandford  <jrb@redhat.com>
 
        * gtk/gtktreeview.c (validate_visible_area): get rid of really
index dd2d481518d5da28090b7a7a2f7197b1d0e18662..f1c8ee13c633281b65e35a6e6f0ea09d07fb8591 100644 (file)
@@ -1,3 +1,12 @@
+Fri Mar  8 14:22:43 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkfilesel.c (gtk_file_selection_init): Some packing
+       tweaks.
+
+       * configure.in: Include GLIB_LIBS when checking
+       for bind_textdomain_codeset, to catch the case where
+       it is in -lintl.
+
 Thu Mar  7 16:46:58 2002  Jonathan Blandford  <jrb@redhat.com>
 
        * gtk/gtktreeview.c (validate_visible_area): get rid of really
index dd2d481518d5da28090b7a7a2f7197b1d0e18662..f1c8ee13c633281b65e35a6e6f0ea09d07fb8591 100644 (file)
@@ -1,3 +1,12 @@
+Fri Mar  8 14:22:43 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkfilesel.c (gtk_file_selection_init): Some packing
+       tweaks.
+
+       * configure.in: Include GLIB_LIBS when checking
+       for bind_textdomain_codeset, to catch the case where
+       it is in -lintl.
+
 Thu Mar  7 16:46:58 2002  Jonathan Blandford  <jrb@redhat.com>
 
        * gtk/gtktreeview.c (validate_visible_area): get rid of really
index dd2d481518d5da28090b7a7a2f7197b1d0e18662..f1c8ee13c633281b65e35a6e6f0ea09d07fb8591 100644 (file)
@@ -1,3 +1,12 @@
+Fri Mar  8 14:22:43 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkfilesel.c (gtk_file_selection_init): Some packing
+       tweaks.
+
+       * configure.in: Include GLIB_LIBS when checking
+       for bind_textdomain_codeset, to catch the case where
+       it is in -lintl.
+
 Thu Mar  7 16:46:58 2002  Jonathan Blandford  <jrb@redhat.com>
 
        * gtk/gtktreeview.c (validate_visible_area): get rid of really
index dd2d481518d5da28090b7a7a2f7197b1d0e18662..f1c8ee13c633281b65e35a6e6f0ea09d07fb8591 100644 (file)
@@ -1,3 +1,12 @@
+Fri Mar  8 14:22:43 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkfilesel.c (gtk_file_selection_init): Some packing
+       tweaks.
+
+       * configure.in: Include GLIB_LIBS when checking
+       for bind_textdomain_codeset, to catch the case where
+       it is in -lintl.
+
 Thu Mar  7 16:46:58 2002  Jonathan Blandford  <jrb@redhat.com>
 
        * gtk/gtktreeview.c (validate_visible_area): get rid of really
index dd2d481518d5da28090b7a7a2f7197b1d0e18662..f1c8ee13c633281b65e35a6e6f0ea09d07fb8591 100644 (file)
@@ -1,3 +1,12 @@
+Fri Mar  8 14:22:43 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkfilesel.c (gtk_file_selection_init): Some packing
+       tweaks.
+
+       * configure.in: Include GLIB_LIBS when checking
+       for bind_textdomain_codeset, to catch the case where
+       it is in -lintl.
+
 Thu Mar  7 16:46:58 2002  Jonathan Blandford  <jrb@redhat.com>
 
        * gtk/gtktreeview.c (validate_visible_area): get rid of really
index 51b263e699630503a1fad63aa33ec40df329bd01..ff49a9c17841487f90b4c216aad846f6f62cdbdb 100644 (file)
@@ -316,7 +316,7 @@ if test "x$enable_rebuilds" = "xyes" && \
 fi
 AC_SUBST(REBUILD)
 
-AC_CHECK_FUNCS(lstat mkstemp bind_textdomain_codeset)
+AC_CHECK_FUNCS(lstat mkstemp)
 
 # sigsetjmp is a macro on some platforms, so AC_CHECK_FUNCS is not reliable
 AC_MSG_CHECKING(for sigsetjmp)
@@ -414,6 +414,14 @@ AM_PATH_GLIB_2_0($GLIB_REQUIRED_VERSION, :,
 *** GLIB is always available from ftp://ftp.gtk.org/.]),
   gobject gmodule gthread)
 
+dnl
+dnl Check for bind_textdomain_codeset, including -lintl if GLib brings it in.
+dnl
+gtk_save_LIBS=$LIBS
+LIBS="$LIBS $GLIB_LIBS"
+AC_CHECK_FUNCS(bind_textdomain_codeset)
+LIBS=$gtk_save_LIBS
+
 AC_CHECK_HEADERS(pwd.h, AC_DEFINE(HAVE_PWD_H))
 AC_CHECK_HEADERS(sys/time.h, AC_DEFINE(HAVE_SYS_TIME_H))
 AC_CHECK_HEADERS(unistd.h, AC_DEFINE(HAVE_UNISTD_H))
index 1d4ccdaecfff21771a79a40444caf99bf616871d..b6cfc5f10504896d8a1e3539749dcfefc04bf80c 100644 (file)
@@ -82,7 +82,7 @@
 #include "gtkdnd.h"
 #include "gtkeventbox.h"
 
-#define WANT_HPANAED 1
+#define WANT_HPANED 1
 #include "gtkhpaned.h"
 
 #ifdef G_OS_WIN32
@@ -637,6 +637,7 @@ gtk_file_selection_init (GtkFileSelection *filesel)
   GtkWidget *pulldown_hbox;
   GtkWidget *scrolled_win;
   GtkWidget *eventbox;
+  GtkWidget *spacer;
   GtkDialog *dialog;
 
   GtkListStore *model;
@@ -674,18 +675,29 @@ gtk_file_selection_init (GtkFileSelection *filesel)
                      FALSE, FALSE, 0);
     
   /*  The horizontal box containing the directory and file listboxes  */
+
+  spacer = gtk_hbox_new (FALSE, 0);
+  gtk_widget_set_size_request (spacer, -1, 5);
+  gtk_box_pack_start (GTK_BOX (filesel->main_vbox), spacer, FALSE, FALSE, 0);
+  gtk_widget_show (spacer);
+  
   list_hbox = gtk_hbox_new (FALSE, 5);
   gtk_box_pack_start (GTK_BOX (filesel->main_vbox), list_hbox, TRUE, TRUE, 0);
   gtk_widget_show (list_hbox);
-  if (WANT_HPANAED)
+  if (WANT_HPANED)
     list_container = g_object_new (GTK_TYPE_HPANED,
                                   "visible", TRUE,
                                   "parent", list_hbox,
-                                  "border_width", 5,
+                                  "border_width", 0,
                                   NULL);
   else
     list_container = list_hbox;
 
+  spacer = gtk_hbox_new (FALSE, 0);
+  gtk_widget_set_size_request (spacer, -1, 5);
+  gtk_box_pack_start (GTK_BOX (filesel->main_vbox), spacer, FALSE, FALSE, 0);  
+  gtk_widget_show (spacer);
+  
   /* The directories list */
 
   model = gtk_list_store_new (1, G_TYPE_STRING);