Commit 594cc47d authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

Give the path bar arrows some more space.

2004-09-21  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkpathbar.c (gtk_path_bar_size_request): Give the path
	bar arrows some more space.
parent 6f08d4cf
2004-09-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkpathbar.c (gtk_path_bar_size_request): Give the path
bar arrows some more space.
* configure.in: Check for mallinfo.
* tests/testtreemodel.c: Only include malloc.h if HAVE_MALLINFO
......
2004-09-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkpathbar.c (gtk_path_bar_size_request): Give the path
bar arrows some more space.
* configure.in: Check for mallinfo.
* tests/testtreemodel.c: Only include malloc.h if HAVE_MALLINFO
......
2004-09-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkpathbar.c (gtk_path_bar_size_request): Give the path
bar arrows some more space.
* configure.in: Check for mallinfo.
* tests/testtreemodel.c: Only include malloc.h if HAVE_MALLINFO
......
2004-09-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkpathbar.c (gtk_path_bar_size_request): Give the path
bar arrows some more space.
* configure.in: Check for mallinfo.
* tests/testtreemodel.c: Only include malloc.h if HAVE_MALLINFO
......
......@@ -253,7 +253,7 @@ gtk_path_bar_size_request (GtkWidget *widget,
/* Theoretically, the slider could be bigger than the other button. But we're
* not going to worry about that now.
*/
path_bar->slider_width = requisition->height / 2 + 5;
path_bar->slider_width = MIN(requisition->height * 2 / 3 + 5, requisition->height);
if (path_bar->button_list && path_bar->button_list->next != NULL)
requisition->width += (path_bar->spacing + path_bar->slider_width) * 2;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment