Commit Graph

9184 Commits

Author SHA1 Message Date
Federico Mena Quintero
0d9a3a61a9 Merged from HEAD:
2005-01-05  Federico Mena Quintero  <federico@ximian.com>

	Merged from HEAD:

	Fix #161409:

	* gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Queue
	a pending operation to select the first row.
2005-01-06 01:58:26 +00:00
Federico Mena Quintero
527f0d661e Fix #145470:
2004-12-14  Federico Mena Quintero  <federico@ximian.com>

	Fix #145470:

	* gtk/gtkfilechooserdefault.c
	(gtk_file_chooser_default_initial_focus): Queue a pending
	operation to select the first row if we are not finished loading
	yet.
	(gtk_file_chooser_default_class_init): Override GtkWidget::map().
	(gtk_file_chooser_default_map): New ::map() handler; refresh the
	file and bookmark lists.

	* gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_class_init):
	Override GtkWidget::map() and GtkWidget::unmap().
	(gtk_file_chooser_dialog_constructor): Don't call initial_focus()
	here.
	(gtk_file_chooser_dialog_map): Map the file chooser widget if
	needed.  Call initial_focus() here.
	(gtk_file_chooser_dialog_unmap): Unmap the file chooser widget.
	When we are re-mapped, the widget will get mapped as well and it
	will have a chance to refresh.
2004-12-15 01:21:32 +00:00
Federico Mena Quintero
1bb8460d44 Merge the changes from HEAD to add scrolling to the path bar and make
2004-12-14  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkpathbar.[ch]: Merge the changes from HEAD to add
	scrolling to the path bar and make clicking the right arrow
	easier.  Fixes #158771.

	* gtk/gtkbutton.c: Merge Matthias's changes from HEAD to revert
	the button state to !button_down, if we're missing the release
	event due to grab shadowing or insensitivation.  I think this is
	what bug #82128 talks about.
2004-12-14 23:52:10 +00:00
Federico Mena Quintero
2c53782a25 Center the selected row so that it's easily visible.
2004-12-08  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilechooserdefault.c (pending_op_process): Center the
	selected row so that it's easily visible.
2004-12-09 02:10:50 +00:00
Matthias Clasen
e17dcbe842 Merged from HEAD:
2004-12-08  Matthias Clasen  <mclasen@redhat.com>

	Merged from HEAD:

	* gtk/gtkaccelmap.c (internal_change_entry): Remove all
	entries for the same key, not just the first one.  (#159498,
	Christian Persch)

	* gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): Use
	button->event_window for the fake leave event, otherwise
	the button ignores it.
2004-12-08 14:09:32 +00:00
Tor Lillqvist
b441142d38 Open png file in binary mode.
2004-12-05  Tor Lillqvist  <tml@iki.fi>

	* demos/gtk-demo/images.c (progressive_timeout): Open png file in
	binary mode.
2004-12-05 02:21:06 +00:00
Dwayne Bailey
801cda22cf Updated Northern Sotho translation.
2004-12-03  Dwayne Bailey  <dwayne@translate.org.za>

	* po/nso.po: Updated Northern Sotho translation.
2004-12-03 14:45:05 +00:00
Dwayne Bailey
4c907db3f5 Updated Northern Sotho translation.
2004-12-03  Dwayne Bailey  <dwayne@translate.org.za>

	* po-properties/nso.po: Updated Northern Sotho translation.
2004-12-03 14:42:49 +00:00
Matthias Clasen
178b5b71bb Bump version. 2004-12-03 06:37:17 +00:00
Matthias Clasen
7d41854e51 2.4.14 GTK_2_4_14 2004-12-03 05:38:11 +00:00
Matthias Clasen
c1f342e932 Reinstate the previous behavior for clicking Ok after activating a
2004-12-02  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
	Reinstate the previous behavior for clicking Ok after
	activating a bookmark or path bar button in folder
	modes.  (#160044, Dennis Cranston)
2004-12-03 03:21:19 +00:00
Federico Mena Quintero
b827e6ff7a Fix #159656:
2004-12-02  Federico Mena Quintero  <federico@ximian.com>

	Fix #159656:

	* gtk/gtkfilechooserdefault.c (PendingOp): New enumeration for the
	pending operation to perform when finishing loading a folder.
	(struct _GtkFileChooserDefault): New fields 'pending_op' and
	'pending_select_path'.
	(pending_op_queue): New utility function.
	(pending_op_process): New utility function.
	(gtk_file_chooser_default_select_path): Don't select the path
	immediately; delay it until the folder is finished loading.
	(browse_files_model_finished_loading_cb): Process the pending
	operation.
	(browse_files_select_first_row): New utility function.
	(gtk_file_chooser_default_initial_focus): Use
	browse_files_select_first_row().
	(gtk_file_chooser_default_should_respond): Queue an operation to
	select the first row once we load the child folder.
	(up_folder_handler): Queue an operation to select the current
	folder once we load the parent folder.
	(gtk_file_chooser_default_finalize): Free the pending_select_path.
2004-12-02 21:33:26 +00:00
Sven Neumann
d8e0541662 added parentheses around && within ||.
2004-12-02  Sven Neumann  <sven@gimp.org>

        * gtk/gtkaccelmap.c (_gtk_accel_path_is_valid): added parentheses
        around && within ||.
2004-12-02 10:52:52 +00:00
Matthias Clasen
b8364aa766 Backport from HEAD:
2004-12-01  Matthias Clasen  <mclasen@redhat.com>

	Backport from HEAD:

	* gtk/gtkmenu.c (MENU_SCROLL_TIMEOUT2): Change from 50 to 20 to
	make the menus scroll faster.
2004-12-01 05:20:02 +00:00
Dwayne Bailey
e9d1653539 Added "nso" to ALL_LINGUAS.
2004-11-30  Dwayne Bailey  <dwayne@translate.org.za>

	* configure.in: Added "nso" to ALL_LINGUAS.

	* po/nso.po, po-properties/nso.po: Added Northern Sotho translation by
	Zuza Software Foundation <info@translate.org.za>.
2004-11-30 15:11:20 +00:00
Matthias Clasen
ed6d6654c4 Updates 2004-11-30 06:13:49 +00:00
Federico Mena Quintero
7cff1a2465 Don't handle Enter if we are in SELECT_FOLDER or CREATE_FOLDER actions.
2004-11-29  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilechooserdefault.c (trap_activate_cb): Don't handle
	Enter if we are in SELECT_FOLDER or CREATE_FOLDER actions.  This
	lets us navigate thei file system more easily.
	(gtk_file_chooser_default_should_respond): If we are in
	SELECT_FOLDER or CREATE_FOLDER modes, return TRUE if something is
	selected.
2004-11-29 23:58:08 +00:00
Matthias Clasen
0e43b2afcf Don't crash if Xlib fails to return UTF-8. (#159373, Kristian Høgsberg)
2004-11-26  Matthias Clasen  <mclasen@redhat.com>

	* gdk/x11/gdkselection-x11.c (gdk_text_property_to_utf8_list_for_display):
	Don't crash if Xlib fails to return UTF-8. (#159373, Kristian Høgsberg)
2004-11-26 05:45:37 +00:00
Funda Wang
d33afa53b0 Updated Simplified Chinese translation 2004-11-22 00:44:04 +00:00
Jordi Mallach
8f9cfa5412 Updated Catalan translation. 2004-11-22 00:31:59 +00:00
Federico Mena Quintero
a8883174a7 Set an empty icon if we are on the editable row: if we don't set the cell
2004-11-20  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilechooserdefault.c (list_icon_data_func): Set an empty
	icon if we are on the editable row:  if we don't set the cell
	renderer at all, it will reuse the last thing it painted.
2004-11-20 06:14:26 +00:00
Federico Mena Quintero
107ff616dd Fix #158475:
2004-11-19  Federico Mena Quintero  <federico@ximian.com>

	Fix #158475:

	* gtk/gtkpathbar.c (make_directory_button): Make the button a drag
	source.
	(button_drag_data_get_cb): New callback to let us drag the
	button's path as a text/uri-list.
2004-11-20 04:48:30 +00:00
Federico Mena Quintero
47957c506c Fix #141077. Based on a patch by Christian Neumair <chris@gnome-de.org>:
2004-11-19  Federico Mena Quintero  <federico@ximian.com>

	Fix #141077.  Based on a patch by Christian Neumair <chris@gnome-de.org>:

	* gtk/gtkfilechooserdefault.c (new_folder_button_clicked):
	Desensitize the "new folder" button.
	(edited_idle_cb): Sensitize the button back.
2004-11-20 01:58:13 +00:00
Federico Mena Quintero
ebb3e404c2 Fix #158477:
2004-11-19  Federico Mena Quintero  <federico@ximian.com>

	Fix #158477:

	* gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
	Remove the "save_extra_align" and "browse_extra_align" fields; use
	a single "extra_align" field.
	(save_widgets_create): Don't create the save_extra_align.
	(browse_widgets_create): Don't create the browse_extra_align.
	(gtk_file_chooser_default_constructor): Create the extra_align
	here.
	(set_extra_widget): Add the extra widget to the alignment here,
	and remove the old one if necessary.
	(update_appearance): No need to frob the extra widget's alignments
	anymore.
	(gtk_file_chooser_default_set_property): No need to call
	update_appearance() anymore when we set the extra widget.

2004-11-19  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilechooserdefault.c
	(gtk_file_chooser_default_initial_focus): Don't set the cursor if
	we are still loading.
2004-11-20 01:30:02 +00:00
Federico Mena Quintero
b15a60430c Fixes #155744:
2004-11-18  Federico Mena Quintero  <federico@ximian.com>

	Fixes #155744:

	Try to load the whole file system model within a specified time.

	* gtk/gtkfilechooserdefault.c (set_list_model): Don't create and
	set the sort model here.  Instead, set up a timer in which we'll
	try to load the file system model.
	(load_set_model): Create and set the sort model here.
	(load_setup_timer): New function to set up a timer and switch to
	the LOAD_LOADING state.
	(load_remove_timer): New function to unset the timer and switch to
	the LOAD_FINISHED state.
	(browse_files_model_finished_loading_cb): Remove the timer if
	needed and set the file system and sort model; switch to the
	LOAD_FINISHED state.
	(gtk_file_chooser_default_finalize): Remove the load timer.
	(gtk_file_chooser_default_init): Start in the LOAD_FINISHED state.
2004-11-20 00:12:34 +00:00
Sven Neumann
b6b069ded6 include <string.h> for memset().
2004-11-17  Sven Neumann  <sven@gimp.org>

	* gtk/gtktreeselection.c: include <string.h> for memset().

	* gtk/gtkmenu.c (menu_change_screen): added missing casts.

	Merged from HEAD branch:

	* gtk/gtkcellrenderertext.c (get_layout): Don't use the foreground
	color for selected cells, Don't use the background color
	in unfocused selected cells. Also avoid creating two PangoLayouts
	per render call.  (#154615, #154611, Billy Biggs)
2004-11-17 20:53:02 +00:00
Matthias Clasen
25fa4a2929 Don't use one signal handler per instance to track changes to the
* gtk/gtkbutton.c:
	* gtk/gtkimagemenuitem.c: Don't use one signal handler per
	instance to track changes to the gtk-menu-images and
	gtk-button-images settings. Instead use a single handler which
	iterates over the widget hierarchy. (#143668)
2004-11-16 05:30:37 +00:00
Jonathan Blandford
f2d34da673 Patch from Gavin Romig-Koch <gavin@redhat.com> to no longer reset the
Mon Nov 15 14:25:21 2004  Jonathan Blandford  <jrb@redhat.com>

        * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_cell_set_dirty):
        Patch from Gavin Romig-Koch <gavin@redhat.com> to no longer reset
        the resized_width when marking a column dirty.
2004-11-15 19:36:13 +00:00
Kjartan Maraas
e5984372f7 Fix conflicting mnemonics. Update.
2004-11-15  Kjartan Maraas  <kmaraas@gnome.org>

	* nb.po: Fix conflicting mnemonics.
	* no.po: Update.
2004-11-15 16:23:25 +00:00
Matthias Clasen
b97d614a8f *** empty log message *** 2004-11-15 16:16:46 +00:00
Manish Singh
e1a5b83bf7 gtkalias.h doesn't exist on this branch. Remove reference.
Thu Nov 11 17:22:45 2004  Manish Singh  <yosh@gimp.org>

        * gtk/gtkuimanager.c: gtkalias.h doesn't exist on this branch. Remove
        reference.
2004-11-12 01:23:27 +00:00
Tor Lillqvist
e954b6bff7 Fix for #137551, by Robert Ögren:
2004-11-11  Tor Lillqvist  <tml@iki.fi>

	Fix for #137551, by Robert Ögren:

	* gdk/win32/gdkevents-win32.c (generate_focus_event): New function.

	(gdk_keyboard_grab, gdk_keyboard_ungrab): Generate focus change
	events.

	(gdk_event_translate): Check for keyboard grabs and not pointer
	grabs when handling WM_{SET,KILL}FOCUS. Use generate_focus_event().
2004-11-11 21:53:11 +00:00
Matthias Clasen
6c3b94d150 Fix some C99isms 2004-11-11 21:19:12 +00:00
Matthias Clasen
8e61946d8c Remove two more places where we were unconditionally setting "visible",
2004-11-11  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkuimanager.c (update_node): Remove two more places
	where we were unconditionally setting "visible", causing
	unnecessary notifications.
2004-11-11 19:58:50 +00:00
Matthias Clasen
6832e19ee8 Considerably speed up GtkUIManager, by changing the semantics of the dirty
2004-11-11  Matthias Clasen  <mclasen@redhat.com>

	Considerably speed up GtkUIManager, by changing the semantics
	of the dirty flag. It is now propagated up the tree, and
	update_node() doesn't descend into clean subtrees.  (#143668,
	Dave Neary, Michael Natterer, Sven Neumann, fix proposed
	by Soeren Sandmann)

	* gtk/gtkuimanager.c (node_prepend_ui_reference): Only prepend
	a new node reference if the merge_id is different. Take a GNode,
	so we can walk up the tree, adjust all callers.
	(node_remove_ui_reference): Only mark a node dirty if the first
	ui reference is removed. Take a GNode here as well for
	consistency.
	(update_node): Don't descend into clean subtrees.
	(mark_node_dirty): New function to mark a node and its
	predecessors dirty.
2004-11-11 18:38:02 +00:00
Tor Lillqvist
1a7ead495f Event timestamps don't have to be unique. As long as they are
2004-11-10  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkevents-win32.c (_gdk_win32_get_next_tick):
	Event timestamps don't have to be unique. As long as they are
	nondecreasing we should be fine. Solves problems with for instance
	long menus not staying up on first click. (#152035, Robert Ögren)
2004-11-10 22:01:03 +00:00
Matthias Clasen
1b20880913 Use gtk_widget_{hide,show} instead of g_object_set (..."visible"...).
2004-11-08  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkaction.c (_gtk_action_sync_menu_visible): Use
	gtk_widget_{hide,show} instead of g_object_set (..."visible"...).
2004-11-08 20:48:42 +00:00
Matthias Clasen
79d310eec2 Add the ComboCellInfo to the list. (#157528, Carlos Garnacho Parro)
2004-11-06  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcombobox.c (gtk_combo_box_cell_layout_pack_end):
	Add the ComboCellInfo to the list.  (#157528, Carlos Garnacho
	Parro)
2004-11-06 20:18:02 +00:00
Matthias Clasen
ab3fb67021 Don't unnecessarily call gtk_menu_position(), since that function has
2004-11-05  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkmenu.c (menu_change_screen): Don't unnecessarily
	call gtk_menu_position(), since that function has issues
	when called on a menu whose parent is unrealized.  (#157354,
	Adam Hooper)
2004-11-05 20:13:54 +00:00
Matthias Clasen
03d1832a0f Don't leak the path. (#157301, Carlos Garnacho Parro)
2004-11-03  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilechooserdefault.c (new_folder_button_clicked):
	Don't leak the path.  (#157301, Carlos Garnacho Parro)
2004-11-04 03:29:47 +00:00
Matthias Clasen
65952109a8 Take into account that a can be NULL even if position is not. This fixes
2004-11-03  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkliststore.c (gtk_list_store_move): Take into account
	that a can be NULL even if position is not. This fixes the
	inability of gtk_list_store_move() to move rows to the very
	beginning.  (#155545, John Finlay)
2004-11-03 05:54:14 +00:00
Matthias Clasen
55310be446 Don't crash on broken ClientMessage events. (#157056, Owen Taylor)
2004-11-01  Matthias Clasen  <mclasen@redhat.com>

	* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't crash on
	broken ClientMessage events.  (#157056, Owen Taylor)
2004-11-01 18:39:35 +00:00
Matthias Clasen
8238ec0e30 Don't force the height of the action area, we don't scroll it anyway, and
2004-10-31  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
	Don't force the height of the action area, we don't scroll
	it anyway, and the current way of calculating the height can lead
	to broken display.  (#156573, Christian Persch)
2004-10-31 19:12:45 +00:00
Robert Ögren
eb0bce386d Implement these on win32, currently only for button 1. Fixes the resize
2004-10-29  Robert Ögren  <gtk@roboros.com>

	* gdk/win32/gdkwindow-win32.c (gdk_window_begin_resize_drag),
	(gdk_window_begin_move_drag): Implement these on win32, currently
	only for button 1. Fixes the resize grip of GtkStatusbar on
	win32. (#143285)
2004-10-31 19:01:47 +00:00
Matthias Clasen
660d582303 Drop the reference to the pixbuf, regardless whether it is a stock pixbuf.
2004-10-29  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize):
	Drop the reference to the pixbuf, regardless whether it is
	a stock pixbuf.  (#156863, Philip Langdale)
2004-10-30 02:59:59 +00:00
Ankitkumar Rameshchandra Patel
31afa7cb21 ankit@redhat.com * Changed some wrong rendered characters 2004-10-26 14:39:31 +00:00
Mohammad DAMT
aec747b934 Updated Indonesian translation
2004-10-25  Mohammad DAMT  <mdamt@bisnisweb.com>

	* id.po: Updated Indonesian translation
2004-10-25 05:37:05 +00:00
Matthias Clasen
97ff1cad6c Invalidate the window if the tree is empty, to avoid resizing artifacts
2004-10-23  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_size_allocate): Invalidate
	the window if the tree is empty, to avoid resizing artifacts
	from the focus rectangle.  (#155881, Vincent Noel, patch by
	Billy Biggs)
2004-10-24 00:51:57 +00:00
Anders Carlsson
c8ca3843e3 GdkBitmap is a GObject, not a boxed type.
2004-10-22  Anders Carlsson  <andersca@gnome.org>

	* gtk/gtktexttag.c: (gtk_text_tag_get_property):
	GdkBitmap is a GObject, not a boxed type.
2004-10-22 08:02:50 +00:00
Amanpreet Singh Alam
d369dac004 update default:LTR 2004-10-21 11:50:35 +00:00