Author: benny
Date: 2006-12-21 22:35:50 +0000 (Thu, 21 Dec 2006)
New Revision: 24160

Modified:
   thunar/trunk/ChangeLog
   thunar/trunk/thunar/thunar-location-entry.c
Log:
2006-12-21      Benedikt Meurer <[EMAIL PROTECTED]>

        * thunar/thunar-location-entry.c(thunar_location_entry_init):
          Make sure the down button in the location bar doesn't get too
          large. Bug #2582.




Modified: thunar/trunk/ChangeLog
===================================================================
--- thunar/trunk/ChangeLog      2006-12-21 22:10:31 UTC (rev 24159)
+++ thunar/trunk/ChangeLog      2006-12-21 22:35:50 UTC (rev 24160)
@@ -1,5 +1,11 @@
 2006-12-21     Benedikt Meurer <[EMAIL PROTECTED]>
 
+       * thunar/thunar-location-entry.c(thunar_location_entry_init):
+         Make sure the down button in the location bar doesn't get too
+         large. Bug #2582.
+
+2006-12-21     Benedikt Meurer <[EMAIL PROTECTED]>
+
        * thunar/thunar-list-model.c(thunar_list_model_get_statusbar_text):
          Don't try to open non-regular files to gather detailed statistics
          to avoid hanging Thunar forever while trying to read from a named

Modified: thunar/trunk/thunar/thunar-location-entry.c
===================================================================
--- thunar/trunk/thunar/thunar-location-entry.c 2006-12-21 22:10:31 UTC (rev 
24159)
+++ thunar/trunk/thunar/thunar-location-entry.c 2006-12-21 22:35:50 UTC (rev 
24160)
@@ -235,8 +235,9 @@
 static void
 thunar_location_entry_init (ThunarLocationEntry *location_entry)
 {
-  GtkWidget *button;
-  GtkWidget *arrow;
+  GtkSizeGroup *size_group;
+  GtkWidget    *button;
+  GtkWidget    *arrow;
 
   gtk_box_set_spacing (GTK_BOX (location_entry), 0);
   gtk_container_set_border_width (GTK_CONTAINER (location_entry), 4);
@@ -256,6 +257,12 @@
   arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE);
   gtk_container_add (GTK_CONTAINER (button), arrow);
   gtk_widget_show (arrow);
+
+  /* make sure the entry and the button request the same height */
+  size_group = gtk_size_group_new (GTK_SIZE_GROUP_VERTICAL);
+  gtk_size_group_add_widget (size_group, location_entry->path_entry);
+  gtk_size_group_add_widget (size_group, button);
+  g_object_unref (G_OBJECT (size_group));
 }
 
 

_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to