Commit Graph

10080 Commits

Author SHA1 Message Date
Matthias Clasen
27ee5709f8 Updates 2004-12-15 16:38:40 +00:00
Matthias Clasen
8b927c6f58 Use _gtk_menu_item_popup_submenu() to make keynav into submenus work
2004-12-15  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first)
	(gtk_real_menu_shell_activate_current): Use
	_gtk_menu_item_popup_submenu() to make keynav into submenus work
	instantaneously, independent of the popup delay.  (#161140)

	* gtk/gtkmenuitem.[hc]: _-prefix gtk_menu_item_popup_submenu() and
	make it non-static.

	* gtk/gtkmenuitem.c (gtk_menu_item_paint): Remove unused variables.
2004-12-15 16:27:30 +00:00
James M. Cape
b418bf3aa4 Use a GtkComboBox in SELECT_FOLDER mode (#157726).
2004-12-15  James M. Cape  <jcape@ignore-your.tv>

        * gtk/gtkfilechooserbutton.c (struct _GtkFileChooserButtonPrivate)
        (gtk_file_chooser_button_init)
        (gtk_file_chooser_button_file_chooser_iface_init)
        (gtk_file_chooser_button_add_shortcut_folder)
        (gtk_file_chooser_button_remove_shortcut_folder)
        (gtk_file_chooser_button_constructor)
        (gtk_file_chooser_button_set_property)
        (gtk_file_chooser_button_destroy)
        (gtk_file_chooser_button_finalize)
        (get_icon_theme) (get_display_name_for_path) (model_get_type_position)
        (model_free_row_data) (model_add_special) (model_add_other)
        (model_add_volumes) (model_add_bookmarks)
        (model_update_current_folder) (model_remove_rows)
        (filter_model_visible_func) (combo_box_row_separator_func)
        (name_cell_data_func) (update_combo_box) (fs_volumes_changed_cb)
        (fs_bookmarks_changed_cb) (combo_box_changed_cb)
        (change_icon_size): Use a GtkComboBox in SELECT_FOLDER mode (#157726).

        * gtk/gtkfilechooserbutton.c:
        * gtk/gtkfilechooserbutton.h (gtk_file_chooser_button_new)
        (gtk_file_chooser_button_new_with_backend): Add @action to constructors
        to match other GtkFileChooser impls. API CHANGE.

        * docs/tools/widgets.c (create_file_button):
        * tests/testfilechooserbutton.c (main): Update callers.

        * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Reflect API
        change.

        * tests/testfilechooserbutton.c: Add LGPL license.
        (main): Added GOption parser for --backend and --right-to-left cmd line
        args.
        (add_pwds_parent_as_shortcut_clicked_cb)
        (del_pwds_parent_as_shortcut_clicked_cb) (tests_button_clicked_cb):
        Add shortcut_folders test.
        (chooser_current_folder_changed_cb) (chooser_selection_changed_cb)
        (chooser_file_activated_cb) (chooser_update_preview_cb): Print URIS,
        not filenames.
2004-12-15 14:58:39 +00:00
Matthias Clasen
43f8526198 Don't try to filter if impl->current_filter is NULL. (#161329, R.
2004-12-15  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilechooserdefault.c (get_is_file_filtered): Don't
	try to filter if impl->current_filter is NULL.  (#161329,
	R. McFarland)
2004-12-15 14:30:53 +00:00
Federico Mena Quintero
9f558a1540 Merged from gtk-2-4:
2004-12-14  Federico Mena Quintero  <federico@ximian.com>

	Merged from gtk-2-4:

	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:37:41 +00:00
Adam Weinberger
faa58ba49c Updated Canadian English translation.
* en_CA.po: Updated Canadian English translation.
2004-12-15 00:00:18 +00:00
Matthias Clasen
efea775d4d Fix a typo
2004-12-14  Matthias Clasen  <mclasen@redhat.com>

	* README.win32: Fix a typo

	* README.in: Updates
2004-12-14 18:56:34 +00:00
Matthias Clasen
ed45e54cb4 Don't use gtk_cell_renderer_set_values().
2004-12-14  Matthias Clasen  <mclasen@redhat.com>

	* tests/testcombo.c (main): Don't use gtk_cell_renderer_set_values().
2004-12-14 15:09:32 +00:00
Matthias Clasen
58d69919f3 Bump version to 2.6.0
2004-12-14  Matthias Clasen  <mclasen@redhat.com>

	* configure.in: Bump version to 2.6.0

	* NEWS: Updates
2004-12-14 14:42:10 +00:00
Matthias Clasen
7e7c5358a1 Test oversized items.
2004-12-14  Matthias Clasen  <mclasen@redhat.com>

	* tests/testiconview.c: Test oversized items.
2004-12-14 14:08:30 +00:00
Matthias Clasen
5c19d9e4e6 Add new symbols.
2004-12-14  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtk.symbols: Add new symbols.

	* gtk/gtkiconview.[hc]: Make the icon view lay out its
	items in a grid, allocating multiple grid cells to oversized
	items. Also convert hardwired spacing constants into
	properties.  (#152483)
2004-12-14 06:39:45 +00:00
Miloslav Trmac
ed2f5aadb5 Updated Czech translation.
2004-12-13  Miloslav Trmac  <mitr@volny.cz>

	* cs.po: Updated Czech translation.
2004-12-13 22:04:14 +00:00
Matthias Clasen
dcfcfe73b2 s/maximal/maximum/g (#161195, David Lodge)
2004-12-13  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtklabel.c: s/maximal/maximum/g  (#161195, David Lodge)
2004-12-13 20:41:19 +00:00
David Lodge
6facd3109d Updated British translation.
2004-12-13  David Lodge <dave@cirt.net>

        * en_GB.po: Updated British translation.
2004-12-13 20:24:04 +00:00
Matthias Clasen
fade865f80 Reintroduce the reverted change, since it is necessary to prevent lost
2004-12-13  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkmenuitem.c (gtk_real_menu_item_select): Reintroduce
	the reverted change, since it is necessary to prevent lost
	submenus. But make it work for torn-off menus as well.
2004-12-13 20:04:40 +00:00
Matthias Clasen
7d9dfbd20e Fix the signature to avoid overwriting a pspec.
2004-12-13  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktearoffmenuitem.c (tearoff_state_changed): Fix the signature
	to avoid overwriting a pspec.
2004-12-13 19:53:19 +00:00
Matthias Clasen
ae66ef4fdb Revert a change which prevented torn-off menus from being shown normally.
2004-12-13  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkmenuitem.c (gtk_real_menu_item_select): Revert a change
	which prevented torn-off menus from being shown normally.
2004-12-13 19:23:58 +00:00
Marco Pesenti Gritti
85559a244f Resync with upstream again
2004-12-13  Marco Pesenti Gritti  <marco@gnome.org>

        * xdgmimeglob.c: (_xdg_glob_hash_lookup_file_name):

        Resync with upstream again
2004-12-13 19:13:58 +00:00
Matthias Clasen
7ffcc59b5a Implement scroll wheel scrolling for menus. (#88532)
2004-12-13  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkmenu.c (gtk_menu_scroll): Implement scroll wheel scrolling
	for menus. (#88532)
2004-12-13 18:40:12 +00:00
Matthias Clasen
b2890f5394 Implement scroll wheel scrolling for menus. (#88532)
2004-12-13  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkmenu.c (gtk_menu_scroll): Implement scroll wheel scrolling
	for menus. (#88532)
2004-12-13 18:22:02 +00:00
Matthias Clasen
d2cb503ec5 Compare only the HAS_DEFAULT flags. (#160711, Tommi Komulainen)
2004-12-13  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkwindow.c (gtk_window_real_set_focus): Compare only
	the HAS_DEFAULT flags.  (#160711, Tommi Komulainen)
2004-12-13 17:27:32 +00:00
Matthias Clasen
7a448075bc Add a missing break statement. (#161172, Damon Chaplin)
2004-12-13  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkimage.c (gtk_image_set_property): Add a missing break
	statement.  (#161172, Damon Chaplin)
2004-12-13 17:10:52 +00:00
Matthias Clasen
bb7ae25d73 Updates 2004-12-13 17:09:13 +00:00
Adam Weinberger
5291209378 Updated Canadian English translation.
* en_CA.po: Updated Canadian English translation.
2004-12-13 16:45:19 +00:00
Matthias Clasen
024c31e2fe Add a width-chars property like GtkLabel has. (#160496, James M. Cape)
2004-12-13  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcellrenderertext.c: Add a width-chars property like
	GtkLabel has.  (#160496, James M. Cape)
2004-12-13 16:12:39 +00:00
Matthias Clasen
f55733be00 Updates 2004-12-13 15:31:43 +00:00
Matthias Clasen
f94628ad42 Add some docs for GtkWidget::delete-event and GtkWidget::destroy-event.
2004-12-13  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkwidget.c (gtk_widget_class_init): Add some docs for
	GtkWidget::delete-event and GtkWidget::destroy-event.  (#161142,
	Paolo Borelli)
2004-12-13 13:50:34 +00:00
Matthias Clasen
50cbd51d26 Add a max-width-chars property, which can be used to specify the width of
2004-12-13  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtklabel.[hc]: Add a max-width-chars property, which can
	be used to specify the width of the label in characters, while
	still allowing it to fall short of this length if the text
	is shorter.  (#155944, Christian Persch)

	* gtk/gtk.symbols: Add new symbols.
2004-12-13 06:34:54 +00:00
Matthias Clasen
5191e341b4 Don't let the empty menu filler affect visibility of separators. (#160500,
2004-12-13  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkuimanager.c (update_smart_separators): Don't let the
	empty menu filler affect visibility of separators.  (#160500,
	Christian Persch)
2004-12-13 05:35:17 +00:00
Matthias Clasen
57d366882d Pass a last item to gtk_combo_box_relayout_item. (#161050, John Finlay)
2004-12-12  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcombobox.c (gtk_combo_box_menu_row_changed): Pass a
	last item to gtk_combo_box_relayout_item.  (#161050, John Finlay)
2004-12-13 04:22:07 +00:00
Matthias Clasen
24295f3a5f Rename a local variable to avoid a conflict. (#161109, Robert Ögren) 1
2004-12-12  Matthias Clasen  <mclasen@redhat.com>

	* tests/testfilechooserbutton.c (tests_button_clicked_cb): Rename
	a local variable to avoid a conflict.  (#161109, Robert Ögren)
1
2004-12-13 03:59:39 +00:00
Tor Lillqvist
f2cddc00a3 Fix a braino. 2004-12-12 22:22:36 +00:00
Tor Lillqvist
f68df9e0ae Fix date of last entry. 2004-12-12 21:25:41 +00:00
Tor Lillqvist
f3da170539 gtk/gtkaccelmap.[ch] gtk/gtkfilechooser.[ch] gtk/gtkfilesel.c
2004-12-12  Tor Lillqvist  <tml@iki.fi>

	* gtk/gtkaccelmap.[ch]
	* gtk/gtkfilechooser.[ch]
	* gtk/gtkfilesel.c
	* gtk/gtkfilesystemwin32.c
	* gtk/gtkiconfactory.[ch]
	* gtk/gtkicontheme.[ch]
	* gtk/gtkimage.[ch]
	* gtk/gtkimmodule.c
	* gtk/gtkmodules.c
	* gtk/gtkrc.[ch]
	* gtk/gtkuimanager.[ch]
	* gtk/gtkwindow.[ch]
	* gtk/updateiconcache.c
	* gtk/gtk.symbols: Use gstdio wrappers. On Windows, convert
	environment variables referring to pathnames from locale encoding
	to UTF-8. As in GLib, in order to preserve Windows DLL ABI
	stability, add binary compatibility versions of functions that
	take file names as arguments, or return file names. Add a _utf8
	suffix to the "real" such functions on Windows. The ABI
	compatibility versions keep the old name.

	* gtk/Makefile.am: Strip PRIVATE symbols from the GNU import
	library.

	* gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Implement
	file mapping on Win32.

	* gtk/updateiconcache.c: Don't crash if invoked without
	argument. Use binary mode when opening file.

	* modules/engines/ms-windows/Theme/gtk-2.0/Makefile.am: Install
	gtkrc in correct place, in <datadir>/themes/MS-Windows/gtk-2.0.
2004-12-12 21:09:13 +00:00
Alexander Shopov
f821217218 Updated Bulgarian translation
2004-12-12  Alexander Shopov  <ash@contact.bg>

	* bg.po: Updated Bulgarian translation
2004-12-12 18:34:04 +00:00
Matthias Clasen
ea3e4f7255 Fix a copy-and-paste error, noticed by Robert Ögren.
2004-12-12  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtklabel.c (gtk_label_setup_mnemonic): Fix a
	copy-and-paste error, noticed by Robert Ögren.
2004-12-12 18:11:47 +00:00
Matthias Clasen
731f230c24 Only wrap if we are in the topmost menu. (#160936, John Finlay)
2004-12-11  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcombobox.c (gtk_combo_box_menu_fill_level)
	(gtk_combo_box_menu_row_changed): Only wrap if we are in the
	topmost menu.  (#160936, John Finlay)
2004-12-11 05:25:02 +00:00
Matthias Clasen
f3a74ace5f Support no-Alt mnemnonics in menu bars (#101309, Owen Taylor)
2004-12-10  Matthias Clasen  <mclasen@redhat.com>

	Support no-Alt mnemnonics in menu bars  (#101309, Owen Taylor)

	* gtk/gtkwindow.c: Factor out mnemonic hash code into
	a separate file.

	* gtk/gtkmnemonichash.[hc]: Factored out mnemonic hash
	code from gtkwindow.c.

	* gtk/Makefile.am (gtk_c_sources): Add gtkmnemonichash.[hc].

	* gtk/gtkmenushell.c (struct _GtkMenuShellPrivate): Give
	menu shells their own mnemonic hash.

	* gtk/gtkmenushell.h: Add private api to support mnemonics.

	* gtk/gtklabel.c (gtk_label_setup_mnemonic): Add mnemonic to
	the menushell mnemonic hash when inside a menu.
2004-12-10 22:09:22 +00:00
Manish Singh
5c98a5ebee add recent new functions.
Fri Dec 10 13:59:32 2004  Manish Singh  <yosh@gimp.org>

        * gtk/gtk.symbols: add recent new functions.
2004-12-10 22:00:26 +00:00
Manish Singh
d0dce64278 wrap new API in XDG_ENTRY().
Fri Dec 10 13:58:38 2004  Manish Singh  <yosh@gimp.org>

        * xdgmime.h: wrap new API in XDG_ENTRY().
2004-12-10 21:59:19 +00:00
Manish Singh
19a02e673e filter out PRIVATE.
Fri Dec 10 13:57:44 2004  Manish Singh  <yosh@gimp.org>

        * abicheck.sh: filter out PRIVATE.
2004-12-10 21:58:05 +00:00
Matthias Clasen
f5c7b5d236 Revert the patch which added no-alt mnemonics, since it interfers badly
2004-12-10  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkwindow.c: Revert the patch which added no-alt
	mnemonics, since it interfers badly with menus.  (#160911,
	Jonathan Blandford)
2004-12-10 21:38:48 +00:00
Matthias Clasen
50d8e17fc3 Fix a property nick typo.
2004-12-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtklabel.c (gtk_label_class_init): Fix a property
	nick typo.
2004-12-10 03:41:04 +00:00
Matthias Clasen
e83213d06d Apply a patch to reset the filter if an otherwise invisible file is
2004-12-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilechooserdefault.c: Apply a patch to reset the
	filter if an otherwise invisible file is selected via the
	location popup.  (#159896, Carlos Garnacho Parro)
2004-12-09 22:06:55 +00:00
Matthias Clasen
788bec8384 Fix #145463, reported by Michael Natterer.
2004-12-09  Matthias Clasen  <mclasen@redhat.com>

	Fix #145463, reported by Michael Natterer.

	* gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add an
	editing flag to keep track of when editing is done.

	* gtk/gtkcellrenderer.h:
	* gtk/gtkcellrenderer.c (gtk_cell_renderer_stop_editing): New
	function to replace gtk_cell_renderer_editing_canceled().
	Deprecate gtk_cell_renderer_editing_canceled().

	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done):
	* gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_editing_done):
	* gtk/gtktreeview.c (gtk_tree_view_stop_editing):
	Use gtk_cell_renderer_stop_editing().
2004-12-09 17:55:58 +00:00
Marco Pesenti Gritti
08b5b675e1 Resync with upstream
2004-12-09  Marco Pesenti Gritti  <marco@gnome.org>

        * xdgmime.c: (xdg_mime_unalias_mime_type),
        (xdg_mime_mime_type_equal), (xdg_mime_mime_type_subclass),
        (xdg_mime_get_mime_parents):
        * xdgmime.h:
        * xdgmimealias.c: (_xdg_mime_alias_list_lookup):
        * xdgmimeglob.c: (_xdg_glob_hash_node_lookup_file_name):
        * xdgmimeint.c: (_xdg_ucs4_to_lower):
        * xdgmimeint.h:
        * xdgmimemagic.c: (_xdg_mime_magic_read_from_file):
        * xdgmimeparent.c: (_xdg_mime_parent_list_lookup):

        Resync with upstream
2004-12-09 17:26:52 +00:00
Matthias Clasen
94ab8fe8c0 Make repeated calls accumulate the results, don't call qsort() on empty
2004-12-09  Matthias Clasen  <mclasen@redhat.com>

	* xdgmimealias.c (_xdg_mime_alias_read_from_file):
	* xdgmimeparent.c (_xdg_mime_parent_read_from_file): Make
	repeated calls accumulate the results, don't call qsort()
	on empty arrays.  (#160838, Mariano Suárez-Alvarez)
2004-12-09 14:15:00 +00:00
Matthias Clasen
fa136147ff Add functions which allow faster insertion of rows in sorted list stores.
2004-12-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkliststore.h:
	* gtk/gtkliststore.c (gtk_list_store_insert_with_values):
	(gtk_list_store_insert_with_valuesv): Add functions which allow
	faster insertion of rows in sorted list stores.  (#160063)
2004-12-09 06:21:39 +00:00
Matthias Clasen
4e957a8cd0 Fix a typo in the docs. (#160826, Jay Camp)
2004-12-08  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Fix a typo
	in the docs.  (#160826, Jay Camp)
2004-12-09 03:58:24 +00:00
Federico Mena Quintero
787ee3e77d Merged from gtk-2-4:
2004-12-08  Federico Mena Quintero  <federico@ximian.com>

	Merged from gtk-2-4:

	* gtk/gtkfilechooserdefault.c (pending_op_process): Center the
	selected row so that it's easily visible.
2004-12-09 02:12:47 +00:00