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.
This commit is contained in:
committed by
Federico Mena Quintero
parent
84fecde88b
commit
77c7092489
16
ChangeLog
16
ChangeLog
@ -1,3 +1,19 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
Mon Mar 15 11:40:43 2004 Owen Taylor <otaylor@redhat.com>
|
Mon Mar 15 11:40:43 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkfilechooserentry.c: Store the position of the
|
* gtk/gtkfilechooserentry.c: Store the position of the
|
||||||
|
|||||||
@ -1,3 +1,19 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
Mon Mar 15 11:40:43 2004 Owen Taylor <otaylor@redhat.com>
|
Mon Mar 15 11:40:43 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkfilechooserentry.c: Store the position of the
|
* gtk/gtkfilechooserentry.c: Store the position of the
|
||||||
|
|||||||
@ -1,3 +1,19 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
Mon Mar 15 11:40:43 2004 Owen Taylor <otaylor@redhat.com>
|
Mon Mar 15 11:40:43 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkfilechooserentry.c: Store the position of the
|
* gtk/gtkfilechooserentry.c: Store the position of the
|
||||||
|
|||||||
@ -1,3 +1,19 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
Mon Mar 15 11:40:43 2004 Owen Taylor <otaylor@redhat.com>
|
Mon Mar 15 11:40:43 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkfilechooserentry.c: Store the position of the
|
* gtk/gtkfilechooserentry.c: Store the position of the
|
||||||
|
|||||||
@ -1,3 +1,19 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
Mon Mar 15 11:40:43 2004 Owen Taylor <otaylor@redhat.com>
|
Mon Mar 15 11:40:43 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkfilechooserentry.c: Store the position of the
|
* gtk/gtkfilechooserentry.c: Store the position of the
|
||||||
|
|||||||
@ -4998,6 +4998,7 @@ location_popup_handler (GtkFileChooserDefault *impl)
|
|||||||
GtkWidget *label;
|
GtkWidget *label;
|
||||||
GtkWidget *entry;
|
GtkWidget *entry;
|
||||||
gboolean refocus;
|
gboolean refocus;
|
||||||
|
char *title;
|
||||||
|
|
||||||
/* Create dialog */
|
/* Create dialog */
|
||||||
|
|
||||||
@ -5005,7 +5006,19 @@ location_popup_handler (GtkFileChooserDefault *impl)
|
|||||||
if (!GTK_WIDGET_TOPLEVEL (toplevel))
|
if (!GTK_WIDGET_TOPLEVEL (toplevel))
|
||||||
toplevel = NULL;
|
toplevel = NULL;
|
||||||
|
|
||||||
dialog = gtk_dialog_new_with_buttons (_("Open Location"),
|
if (impl->action == GTK_FILE_CHOOSER_ACTION_OPEN
|
||||||
|
|| impl->action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER)
|
||||||
|
{
|
||||||
|
title = _("Open Location");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
g_assert (impl->action == GTK_FILE_CHOOSER_ACTION_SAVE
|
||||||
|
|| impl->action == GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER);
|
||||||
|
title = ""; /* FIXME: #137272, fix for 2.4.1 */
|
||||||
|
}
|
||||||
|
|
||||||
|
dialog = gtk_dialog_new_with_buttons (title,
|
||||||
GTK_WINDOW (toplevel),
|
GTK_WINDOW (toplevel),
|
||||||
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_NO_SEPARATOR,
|
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_NO_SEPARATOR,
|
||||||
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
|
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
|
||||||
@ -5044,8 +5057,8 @@ location_popup_handler (GtkFileChooserDefault *impl)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
g_assert (impl->action == GTK_FILE_CHOOSER_ACTION_OPEN
|
g_assert (impl->action == GTK_FILE_CHOOSER_ACTION_SAVE
|
||||||
|| impl->action == GTK_FILE_CHOOSER_ACTION_SAVE);
|
|| impl->action == GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER);
|
||||||
gtk_widget_grab_focus (impl->save_file_name_entry);
|
gtk_widget_grab_focus (impl->save_file_name_entry);
|
||||||
}
|
}
|
||||||
refocus = FALSE;
|
refocus = FALSE;
|
||||||
|
|||||||
@ -565,6 +565,8 @@ gtk_path_bar_scroll_down (GtkWidget *button, GtkPathBar *path_bar)
|
|||||||
gint border_width;
|
gint border_width;
|
||||||
GtkTextDirection direction;
|
GtkTextDirection direction;
|
||||||
|
|
||||||
|
gtk_widget_queue_resize (GTK_WIDGET (path_bar));
|
||||||
|
|
||||||
border_width = GTK_CONTAINER (path_bar)->border_width;
|
border_width = GTK_CONTAINER (path_bar)->border_width;
|
||||||
direction = gtk_widget_get_direction (GTK_WIDGET (path_bar));
|
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;
|
space_needed = BUTTON_DATA (down_button->data)->button->allocation.width + path_bar->spacing;
|
||||||
if (direction == GTK_TEXT_DIR_RTL)
|
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
|
else
|
||||||
space_available = (GTK_WIDGET (path_bar)->allocation.x + GTK_WIDGET (path_bar)->allocation.width - border_width) -
|
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);
|
(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;
|
GList *list;
|
||||||
|
|
||||||
|
gtk_widget_queue_resize (GTK_WIDGET (path_bar));
|
||||||
|
|
||||||
for (list = g_list_last (path_bar->button_list); list; list = list->prev)
|
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))
|
if (list->prev && gtk_widget_get_child_visible (BUTTON_DATA (list->prev->data)->button))
|
||||||
|
|||||||
Reference in New Issue
Block a user