summaryrefslogtreecommitdiff
path: root/gtk/gtkpathbar.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2004-03-15 18:12:51 +0000
committerFederico Mena Quintero <federico@src.gnome.org>2004-03-15 18:12:51 +0000
commit77c70924894bea1b3cc27884050fa4fbb9b483bf (patch)
treeb356f7efa1c85552a6b71cbff18854635b547543 /gtk/gtkpathbar.c
parent84fecde88bd9a26a002a7e9838ecdd0d1d278e0c (diff)
downloadgtk+-77c70924894bea1b3cc27884050fa4fbb9b483bf.tar.gz
Only show the title string in OPEN/SELECT_FOLDER mode as it's
Mon Mar 15 12:51:17 2004 Jonathan Blandford <jrb@gnome.org> * gtk/gtkfilechooserdefault.c (location_popup_handler): Only show the title string in OPEN/SELECT_FOLDER mode as it's open-specific. Put a blank title for SAVE/CREATE_FOLDER; we are in string freeze, so we'll fix it for 2.4.1 as #137272. * gtk/gtkpathbar.c (gtk_path_bar_scroll_down): calculate space_available correctly for RTL mode. w/o this, you can't scroll down again. Fixes #137021. 2004-03-15 Federico Mena Quintero <federico@ximian.com> * gtk/gtkpathbar.c (gtk_path_bar_scroll_up): Queue a resize. (gtk_path_bar_scroll_down): Likewise.
Diffstat (limited to 'gtk/gtkpathbar.c')
-rw-r--r--gtk/gtkpathbar.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index 9bf2f7a19e..0f1aab9eac 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -565,6 +565,8 @@ gtk_path_bar_scroll_down (GtkWidget *button, GtkPathBar *path_bar)
gint border_width;
GtkTextDirection direction;
+ gtk_widget_queue_resize (GTK_WIDGET (path_bar));
+
border_width = GTK_CONTAINER (path_bar)->border_width;
direction = gtk_widget_get_direction (GTK_WIDGET (path_bar));
@@ -592,7 +594,7 @@ gtk_path_bar_scroll_down (GtkWidget *button, GtkPathBar *path_bar)
space_needed = BUTTON_DATA (down_button->data)->button->allocation.width + path_bar->spacing;
if (direction == GTK_TEXT_DIR_RTL)
- space_available = GTK_WIDGET (path_bar)->allocation.x + GTK_WIDGET (path_bar)->allocation.width;
+ space_available = path_bar->down_slider_button->allocation.x - GTK_WIDGET (path_bar)->allocation.x;
else
space_available = (GTK_WIDGET (path_bar)->allocation.x + GTK_WIDGET (path_bar)->allocation.width - border_width) -
(path_bar->down_slider_button->allocation.x + path_bar->down_slider_button->allocation.width);
@@ -614,6 +616,8 @@ gtk_path_bar_scroll_up (GtkWidget *button, GtkPathBar *path_bar)
{
GList *list;
+ gtk_widget_queue_resize (GTK_WIDGET (path_bar));
+
for (list = g_list_last (path_bar->button_list); list; list = list->prev)
{
if (list->prev && gtk_widget_get_child_visible (BUTTON_DATA (list->prev->data)->button))