Commit Graph

6037 Commits

Author SHA1 Message Date
Matthias Clasen
9ca871be3f Clip when drawing the cursor. This prevents bits of a selectable label
2004-11-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtklabel.c (draw_insertion_cursor, gtk_label_expose):
	Clip when drawing the cursor. This prevents bits of a
	selectable label leaking out from underneath the resize
	grip in a statusbar.  (#73359)
2004-11-09 14:28:34 +00:00
Matthias Clasen
8440793550 Apply a patch by Owen Taylor to get reasonable allocations for the
2004-11-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkstatusbar.c: Apply a patch by Owen Taylor to
	get reasonable allocations for the statusbar and its
	children.  (#73359)
2004-11-09 07:27:40 +00:00
Matthias Clasen
dd3948538b Apply a patch by Soeren Sandmann to test long statusbar texts.
2004-11-09  Matthias Clasen  <mclasen@redhat.com>

	* tests/testgtk.c: Apply a patch by Soeren Sandmann to
	test long statusbar texts.
2004-11-09 06:14:11 +00:00
Matthias Clasen
876fba5940 Add new symbols.
2004-11-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtk.symbols: Add new symbols.
2004-11-09 05:07:41 +00:00
Matthias Clasen
b87307b918 Avoid resizing GtkStatusbar if the text of the label changes (#90955, He
2004-11-09  Matthias Clasen  <mclasen@redhat.com>

	Avoid resizing GtkStatusbar if the text of the label
	changes  (#90955, He Qiangqiang, fix proposed by
	Owen Taylor, patch by Christian Persch)

	* gtk/gtklabel.[hc]: Add a boolean single-line-mode property
	which causes the label height not to depend on the actual
	text, but only on the font.

	* gtk/gtkstatusbar.c (gtk_statusbar_init): Turn on
	single-line-mode for the label.
2004-11-09 05:04:41 +00:00
Matthias Clasen
c4183ed568 Use xdg_mime_mime_type_subclass() to match mime types. This also gives use
2004-11-08  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilefilter.c (gtk_file_filter_filter): Use
	xdg_mime_mime_type_subclass() to match mime types. This
	also gives use wildcard matching. (#143760, #141224,
	Tommi Komulainen, David A Knight)
2004-11-08 21:25:27 +00:00
Matthias Clasen
f5fff322db 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:43:59 +00:00
Matthias Clasen
47ee9667e1 Disable the SAVE and CREATE_FOLDER modes. (#157675, Christian Persch)
2004-11-08  Matthias Clasen  <mclasen@redhat.com>

	* tests/testfilechooserbutton.c (main): Disable the SAVE
	and CREATE_FOLDER modes.  (#157675, Christian Persch)
2004-11-08 20:15:45 +00:00
Matthias Clasen
9b86c72c96 Hide the website button if the url is unset. (#157630, John Finlay)
2004-11-08  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkaboutdialog.c (gtk_about_dialog_set_website): Hide the
	website button if the url is unset.  (#157630, John Finlay)
2004-11-08 19:14:23 +00:00
Matthias Clasen
a7f30bb333 Change the return types of the gchar ** getters to be more const correct.
2004-11-08  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkaboutdialog.[hc]: Change the return types of the
	gchar ** getters to be more const correct.  (#157566, Mariano
	Suárez-Alvarez)
2004-11-08 18:37:29 +00:00
Matthias Clasen
48afbb90e0 Add uri targets before text targets, to make file dnd work better.
2004-11-08  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_init): Add
	uri targets before text targets, to make file dnd work
	better.  (#157651, Christian Persch)
2004-11-08 17:43:52 +00:00
Matthias Clasen
2d016f2156 Support columns whose declared type is an interface better, by treating
2004-11-08  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreedatalist.c: Support columns whose declared type is
	an interface better, by treating them like G_TYPE_OBJECT if
	the interface types requires G_TYPE_OBJECT.
2004-11-08 16:56:03 +00:00
Bastien Nocera
250e4a881b add the icons again with the binary flag (Closes: #157665)
2004-11-08  Bastien Nocera  <hadess@hadess.net>

	* gtk/stock-icons/stock_media_play_rtl_16.png:
	* gtk/stock-icons/stock_media_play_rtl_24.png: add the icons again
	with the binary flag (Closes: #157665)
2004-11-08 16:24:52 +00:00
Matthias Clasen
7a08ab25a6 New convenience function to add a filter for image files which can be
2004-11-07  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilefilter.h:
	* gtk/gtkfilefilter.c (gtk_file_filter_add_pixbuf_formats):
	New convenience function to add a filter for image files
	which can be loaded by GdkPixbuf. (#145388, Anders Carlsson)

	* tests/testfilechooser.c: Test the image filter.
2004-11-07 05:42:01 +00:00
Matthias Clasen
1be34ede80 Remove some warnings.
2004-11-07  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkmenu.c (menu_change_screen): Remove some warnings.
2004-11-07 05:23:31 +00:00
Matthias Clasen
297a55d018 Show files in folder modes. (#157013, Nickolay V. Shmyrev)
2004-11-07  Matthias Clasen  <mclasen@redhat.com>

	Show files in folder modes. (#157013, Nickolay V. Shmyrev)

	* gtk/gtkfilechooserdefault.c (create_file_list): Use a selection
	function to determine which rows can be selected.
	(update_appearance): Always show files. Also queue a redraw.
	(set_list_model): Always show files.
	(list_select_func): The selection function used for the file list.
	Don't allow to select files when in select/create folder mode.
	(list_row_activated): Don't activate files in folder modes.
	(list_icon_data_func, list_mtime_data_func, list_size_data_func):
	Render files insensitive in folder modes.
2004-11-07 05:15:25 +00:00
Matthias Clasen
52a7d49bcb Don't support CREATE_FOLDER and SAVE for now. UI authorities object to it.
2004-11-06  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_set_property):
	Don't support CREATE_FOLDER and SAVE for now. UI authorities
	object to it.  (#157384, Seth Nickell)
2004-11-07 04:57:04 +00:00
Matthias Clasen
14ed2beff5 Jump through a few hoops to make the tooltip on the filter combo box work
2004-11-06  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilechooserdefault.c (file_pane_create): Jump through
	a few hoops to make the tooltip on the filter combo box work
	a bit better. This fixes #157273 and #157074.
2004-11-07 04:10:01 +00:00
Matthias Clasen
55a372042f 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:16:40 +00:00
Matthias Clasen
08ef258df5 Remove this unneeded function, as it breaks state propagation.
2004-11-05  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcombobox.c (gtk_combo_box_menu_button_state_changed):
	Remove this unneeded function, as it breaks state propagation.
2004-11-05 21:20:09 +00:00
Matthias Clasen
410e0bd2c3 Queue the resize before setting the tearoff state, to make sure the
2004-11-05  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_activate):
	Queue the resize before setting the tearoff state, to
	make sure the torn-off menu picks up the size increase due
	to the arrow in the torn off menu item.  (#157286, Adam
	Hooper, fix proposed by Owen Taylor)
2004-11-05 20:11:48 +00:00
Matthias Clasen
f7cc8cbb77 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 15:58:36 +00:00
Matthias Clasen
a6b96e8153 Document new functions.
2004-11-05  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkmain.c: Document new functions.
2004-11-05 07:18:28 +00:00
Matthias Clasen
9b039be2d4 Typo fix.
2004-11-04  Matthias Clasen  <mclasen@redhat.com>

	* gtk/stock-icons/Makefile.am: Typo fix.

	* gtk/tmpl/gtkstock.sgml: Fix markup.

	* gtk/gtk-docs.sgml:
	* gtk/migrating-GtkAboutDialog.sgml: Add a first version
	of a GnomeAbout --> GtkAboutDialog migration chapter.
2004-11-04 15:23:33 +00:00
Matthias Clasen
559a287517 Documentation updates.
2004-11-04  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkaboutdialog.c: Documentation updates.
2004-11-04 15:13:00 +00:00
Bastien Nocera
29008566b6 Make sure the RTL variants are used for media icons update following the
2004-11-04  Bastien Nocera  <hadess@hadess.net>

	* gtk/gtkiconfactory.c: (get_default_icons): Make sure the RTL
	variants are used for media icons
	* gtk/stock-icons/Makefile.am: update following the addition of
	the 2 Play icon RTL variants
	* gtk/stock-icons/stock_media_play_rtl_16.png: added
	* gtk/stock-icons/stock_media_play_rtl_24.png: added

2004-11-04  Bastien Nocera  <hadess@hadess.net>

	* gtk/tmpl/gtkstock.sgml: add RTL variants for all the media icons
	needing it
2004-11-04 14:49:44 +00:00
Matthias Clasen
ff56295f76 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:28:23 +00:00
Matthias Clasen
669d068594 Handle the case that the protocol version in the context is not set yet.
2004-11-03  Matthias Clasen  <mclasen@redhat.com>

	* gdk/x11/gdkdnd-x11.c (gdk_drag_motion): Handle the
	case that the protocol version in the context is not
	set yet.  (#157123, James Henstridge)
2004-11-03 17:06:38 +00:00
Matthias Clasen
a3ff3fe048 Don't try to activate a node if the cursor is not valid.
2004-11-03  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_search_activate): Don't
	try to activate a node if the cursor is not valid.
2004-11-03 15:08:05 +00:00
James M. Cape
3eb76c0940 Don't mysteriously go to the parent dir when hitting "Cancel" in folder
2004-11-03  James M. Cape  <jcape@ignore-your.tv>

        * gtk/gtkfilechooserbutton.c (update_dialog), (dialog_response_cb):
        Don't mysteriously go to the parent dir when hitting "Cancel" in
        folder mode (fixes #156971).
2004-11-03 10:26:18 +00:00
Matthias Clasen
f493d74d0a Don't access label->layout directly. (#157080, Adam Hooper)
2004-11-03  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkaccellabel.c (gtk_accel_label_expose_event): Don't
	access label->layout directly.  (#157080, Adam Hooper)
2004-11-03 06:36:32 +00:00
Matthias Clasen
9f3382613a Allow unsetting a pattern by passing NULL. (#156720, Tristan Van Berkom)
2004-11-03  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtklabel.c (gtk_label_set_pattern_internal): Allow
	unsetting a pattern by passing NULL.  (#156720, Tristan Van Berkom)
2004-11-03 06:20:33 +00:00
Matthias Clasen
f41c59cce3 Don't crash if the active_row reference has become invalid. (#157156,
2004-11-03  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcombobox.c (gtk_combo_box_get_active): Don't crash
	if the active_row reference has become invalid.  (#157156,
	Christophe Fergeau)
2004-11-03 06:16:43 +00:00
Matthias Clasen
a781654839 As a last stage in GtkWindow key press handing, try adding
2004-11-02  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkwindow.c (gtk_window_activate_key_after): As
	a last stage in GtkWindow key press handing, try adding
	window->mnemonic_modifier to event->state and see if it
	matches a mnemonic. (#53709, based on a patch by
	Pasupathi Duraisamy, patch by Owen Taylor)
2004-11-02 13:25:37 +00:00
Matthias Clasen
be5ee811e6 Doc additions.
2004-11-02  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init):
	Doc additions.


2004-11-02  Matthias Clasen  <mclasen@redhat.com>

	* gtk/tmpl/gtkcellrenderercombo.sgml:
	* gtk/tmpl/gtkcellrenderertoggle.sgml:
	* gtk/tmpl/gtkcellrenderertext.sgml: Add introductions.

	* gtk/tmpl/gtkcellrenderer.sgml: Additions.
2004-11-02 07:06:02 +00:00
Matthias Clasen
a7acad22db Fix trigraphs in private markers.
2004-11-02  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilechooserbutton.h: Fix trigraphs in private markers.
2004-11-02 05:58:38 +00:00
Matthias Clasen
1a8de55702 Fix a doc comment.
2004-11-02  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_class_init):
	Fix a doc comment.
2004-11-02 05:40:33 +00:00
Matthias Clasen
546f599ce4 Remove a debug printf(). (#157087, Christian Persch)
2004-11-01  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
	Remove a debug printf().  (#157087, Christian Persch)
2004-11-02 04:12:07 +00:00
Matthias Clasen
547b85d8b8 Actually commit the "stat less" patch which appeared in the ChangeLog a
2004-11-01  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkicontheme.c: Actually commit the "stat less" patch
	which appeared in the ChangeLog a few days ago.
2004-11-02 02:07:30 +00:00
Matthias Clasen
63360de5e1 Move some docs inline.
2004-11-01  Matthias Clasen  <mclasen@redhat.com>

	* gtk/tmpl/gtkfilechooserbutton.sgml: Move some docs inline.
2004-11-01 20:20:25 +00:00
Matthias Clasen
e9348e53fa Doc update.
2004-11-01  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkaboutdialog.c (gtk_show_about_dialog): Doc update.
2004-11-01 20:14:15 +00:00
Matthias Clasen
f6608ba671 Revalidate the iter. (#156924, Murray Cumming)
2004-11-01  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktextbuffer.c (gtk_text_buffer_backspace): Revalidate the
	iter.  (#156924, Murray Cumming)
2004-11-01 19:57:13 +00:00
Matthias Clasen
531c38a3e2 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:30:52 +00:00
Matthias Clasen
12bde48ff4 Fix a typo in the docs. (#157044, Masao Mutoh)
2004-11-01  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkactiongroup.c (gtk_action_group_get_visible): Fix a typo in
	the docs.  (#157044, Masao Mutoh)
2004-11-01 16:09:23 +00:00
Matthias Clasen
5675f113c8 Update the state of the cell view when the state of the button changes (to
2004-10-31  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Update the
	state of the cell view when the state of the button changes (to
	get prelighted drawing right).  (#138650, Frances Keenan, Christian Persch)
2004-11-01 04:38:24 +00:00
Matthias Clasen
489d586f1f 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:10:29 +00:00
Matthias Clasen
d9f91432c9 Don't try to remove stuff from an empty model. (#156575, Christian Persch)
2004-10-31  Matthias Clasen  <mclasen@redhat.com>

	* tests/testentrycompletion.c (animation_timer): Don't try to
	remove stuff from an empty model.  (#156575, Christian Persch)
2004-10-31 18:26:49 +00:00
Matthias Clasen
463c26358c Update doc comments.
2004-10-31  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
	Update doc comments.
2004-10-31 18:01:07 +00:00
Matthias Clasen
82129275f2 Update doc comments.
2004-10-31  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init):
	Update doc comments.
2004-10-31 17:56:51 +00:00
Tor Lillqvist
a841d12888 gdk/win32/gdkprivate-win32.h gdk/win32/gdkglobals-win32.c Remove
2004-10-31  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkprivate-win32.h
	* gdk/win32/gdkglobals-win32.c
	* gdk/win32/gdkmain-win32.c: Remove _windows_version and the
	IS_WIN_NT() macro.

	* gdk/win32/*.c: Use G_WIN32_IS_NT_BASED() from GLib instead.
2004-10-31 14:47:15 +00:00