Commit Graph

992 Commits

Author SHA1 Message Date
Matthias Clasen
ce16af5a93 More abbreviation conversion 2005-05-16 19:34:39 +00:00
Matthias Clasen
7b0e05fcca Use gtk-doc abbrevs instead of spelled out links.
2005-05-16  Matthias Clasen  <mclasen@redhat.com>

	* gtk/tree_widget.sgml: Use gtk-doc abbrevs instead of
	spelled out links.

	* gtk/gtk-docs.sgml: Included the processed file xml/tree_widget.sgml.

	* gtk/Makefile.am (expand_content_files): Add tree_widget.sgml.
2005-05-16 18:16:42 +00:00
Owen Taylor
dda40ca71a Use a GtkAlignment rather than a GtkDrawingArea to draw the swatch in to
2005-05-11  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
	to draw the swatch in to avoid having an extraneous window.

	* gtk/gtkcolorsel.c (color_sample_draw_sample): Actually se tthe
	color when !has_opacity.

2005-05-10  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkcairo.[ch] gdk/gdkcolor.[ch] gdk/Makefile.am: Add source
	files for Cairo convenience functionality.

	* gdk/gdkcairo.h (gdk_cairo_rectangle, gdk_cairo_region): Add a
	convenience functions to add GdkRectangle, GdkRegion to a cairo path.

	* gdk/gdkwindow.c gdk/gdkgc.c gtk/gtkcolorsel.c gtk/gtkiconview.c
	gtk/gtkstyle.c: Use gdk_cairo_rectangle/region().

	* gdk/gdkcairo.[ch] gdk/gdkdrawable.h gdk/gdkdraw.c: Rename
	gdk_drawable_create_cairo_context() to gdk_cairo_create().

	* gdk/gdkcairo.c gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c:
	Rename gdk_pixbuf_set_as_cairo_source() to
	gdk_cairo_set_source_pixbuf().

	* gdk/gdkdraw.c gdk/gdkpango.c gtk/gtkcolorsel.c gtk/gtkhruler.c
	gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkstyle.c gtk/gtkvruler.c:
	Adjust for renames.

	* gdk/gdk.symbols: Update.

	* gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): Fix
	coordinate system problem that was causing the wrong portions
	to be invalidated.

	* gtk/gtkcellrenderer.c (gtk_cell_renderer_render)
	gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render)
	gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render)
	gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render)
	gtk/gtkcellview.c (gtk_cell_view_expose)
	gtk/gtkdnd.c (gtk_drag_highlight_expose)
	gtk/gtkentry.c (gtk_entry_draw_text)
	gtk/gtktextview.c (text_window_invalidate_rect): Some cairoization.

	* gtk/gtkcalendar.[ch]: Beat into something roughly resembling
	GTK+ style ... use instance-private data and standard names for
	private structure, etc. Move function docs inline.

	* gtk/gtkcalendar.[ch]: Switch to drawing everything in
	expose. Switch drawing to Cairo.

	* gtk/gtkcalendar.c (gtk_calendar_freeze): Deprecate
	gtk_calendar_freeze/thaw
2005-05-11 19:16:19 +00:00
Owen Taylor
485fd85179 Fill in unused bits so they can be used for the depth-32 target case.
2005-05-09  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkrgb.c (gdk_rgb_convert_0888_br, gdk_rgb_convert_8880_br):
        Fill in unused bits so they can be used for the depth-32 target case.
        Rewrite so that that gives a marginal speedup rather than a
        marginal slowdown. (on x86)

        * gdk/gdkscreen.h gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkvisual-x11.c:
        Add gdk_screen_get_rgba_colormap/visual to get a visual for
        windows with an alpha channel, if one exists.

        * gdk/win32/gdkscreen-win32.c gdk/linux-fb/gdkscreen-fb.c:
        Stub out gdk_screen_get_rgba_colormap/visual.

        * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): computation of
        "unused" wasn't right for depth == 32, since it depended on
        shifting by 32.

        * gdk/gdkrgb.c: Fill in alpha bits with 1s. (Based on patch from
        Keith Packard,
        http://mail.gnome.org/archives/gtk-devel-list/2004-June/msg00080.html)

        * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
        Implement again, without using Xft.

        * tests/testgtk.c: Add a test for windows with an alpha channel.
2005-05-09 22:54:10 +00:00
Matthias Clasen
379c61429c Fix a typo (#303473, Masao Mutoh)
2005-05-08  Matthias Clasen  <mclasen@redhat.com>

	* gdk/tmpl/visuals.sgml: Fix a typo (#303473, Masao Mutoh)
2005-05-09 03:53:32 +00:00
Matthias Clasen
7f37c65a7f Additions 2005-05-08 06:25:46 +00:00
Matthias Clasen
28b82792f5 Add keyname-table.h
2005-05-08  Matthias Clasen  <mclasen@redhat.com>

	* gdk/Makefile.am (IGNORE_HFILES): Add keyname-table.h

	* gdk/gdk-sections.txt: Add gdk_cairo_set_source_color,
	gdk_drawable_create_cairo_context and
	gdk_pixbuf_set_as_cairo_source, remove
	gdk_draw_rectangle_alpha_libgtk_only

	* gdk/tmpl/pixbufs.sgml:
	* gdk/tmpl/cursors.sgml: Add long descriptions.

	* gdk/tmpl/events.sgml:
	* gdk/tmpl/dnd.sgml:
	* gdk/tmpl/windows.sgml:
	* gdk/tmpl/pixmaps.sgml:
	* gdk/tmpl/x_interaction.sgml: Small additions.
2005-05-08 05:48:45 +00:00
Matthias Clasen
adf0a7ee89 Fix a reference. (#303403, Masao Mutoh)
2005-05-07  Matthias Clasen  <mclasen@redhat.com>

	* gdk/tmpl/pango_interaction.sgml: Fix a reference.
	(#303403, Masao Mutoh)
2005-05-08 03:25:46 +00:00
Matthias Clasen
3e77a18b4a Test DND.
2005-05-06  Matthias Clasen  <mclasen@redhat.com>

	* tests/testiconview.c: Test DND.

	* gtk/gtk.symbols:
	* gtk/gtkiconview.[hc]: Add DND support similar to the DND
	support in the tree view.  (#150270)
2005-05-06 04:14:32 +00:00
Matthias Clasen
4000f118fd Fix a typo 2005-05-05 19:49:30 +00:00
Matthias Clasen
fefbd24704 Add gtk_dialog_get_response_for_widget. Add new scrolled window getters.
2005-05-03  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtk-sections.txt: Add gtk_dialog_get_response_for_widget.
	Add new scrolled window getters.
2005-05-03 05:02:04 +00:00
Matthias Clasen
c93ab959d3 Add gtk_dialog_get_response_for_widget.
2005-05-03  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtk-sections.txt: Add gtk_dialog_get_response_for_widget.
2005-05-03 04:46:29 +00:00
Matthias Clasen
b1cebb4c50 Add new icon view functions.
2005-05-02  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtk-sections.txt: Add new icon view functions.
2005-05-02 20:29:38 +00:00
Matthias Clasen
c5eedc0420 Doc fixups 2005-05-02 16:17:12 +00:00
Matthias Clasen
fe59413cd8 Remove nonexisting functions.
2005-05-02  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtk-sections.txt: Remove nonexisting functions.
2005-05-02 16:11:15 +00:00
Matthias Clasen
6824418b27 Refer to the correct property. (#301115, Richard Hult)
2005-04-29  Matthias Clasen  <mclasen@redhat.com>

	* gtk/tmpl/gtkuimanager.sgml: Refer to the correct
	property. (#301115, Richard Hult)
2005-04-29 17:19:41 +00:00
Matthias Clasen
cb49f6e2d0 Document that GtkButtonBox ignores the homogeneous property. (#171412,
2005-04-07  Matthias Clasen  <mclasen@redhat.com>

	* gtk/tmpl/gtkbbox.sgml: Document that GtkButtonBox ignores
	the homogeneous property.  (#171412, Morten Welinder)
2005-04-07 19:39:10 +00:00
Matthias Clasen
58019209ed Add a paragraph about shortcut terminology. (#166906, Sebastien Bacher)
2005-04-07  Matthias Clasen  <mclasen@redhat.com>

	* gtk/tmpl/gtkfilechooser.sgml: Add a paragraph about
	shortcut terminology.  (#166906, Sebastien Bacher)
2005-04-07 16:55:00 +00:00
Matthias Clasen
7e69556fa7 Make the docs of GKT_SELECTION_MULTIPLE more accurate by making them more
2005-04-07  Matthias Clasen  <mclasen@redhat.com>

	* gtk/tmpl/gtkenums.sgml: Make the docs of GKT_SELECTION_MULTIPLE
	more accurate by making them more vague.  (#167088,
	Ken Siersma)
2005-04-07 14:39:28 +00:00
Matthias Clasen
a9cdbf0fb5 Add a hint about hiding expanders.
2005-04-07  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_set_expander_column): Add
	a hint about hiding expanders.
2005-04-07 13:36:48 +00:00
Matthias Clasen
29f9dbfc35 Add a sentence about toggling. (#159382, Worik Stanton)
2005-04-07  Matthias Clasen  <mclasen@redhat.com>

	* gtk/tmpl/gtkradiobutton.sgml: Add a sentence about
	toggling.  (#159382, Worik Stanton)
2005-04-07 13:04:27 +00:00
Matthias Clasen
7e0efdc102 Mention enter and leave events. (#167546, Billy Biggs)
2005-04-05  Matthias Clasen  <mclasen@redhat.com>

	* gtk/tmpl/gtktooltips.sgml: Mention enter and leave
	events.  (#167546, Billy Biggs)
2005-04-05 12:25:18 +00:00
Matthias Clasen
c4e31ace4d Allow completion popups to be wider than the entry. (#131916, Ross Burton)
2005-04-04  Matthias Clasen  <mclasen@redhat.com>

	Allow completion popups to be wider than the entry. (#131916,
	Ross Burton)

	* gtk/gtkentrycompletion.[hc]: Add a boolean popup-set-width property.

	* gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
	Don't force the popup to have the same width as the entry if
	popup-set-width is FALSE.

	* gtk/gtk.symbols: Add new functions.
2005-04-04 05:15:32 +00:00
Matthias Clasen
7dbafd4398 Move documentation inline, document if add_target functions append or
2005-04-01  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkselection.c: Move documentation inline, document
	if add_target functions append or prepend.  (#172350,
	Jon-Kare Hellan)
2005-04-01 21:20:58 +00:00
Michael Natterer
2e24a08061 added gtk_menu_set/get_take_focus().
2005-03-31  Michael Natterer  <mitch@gimp.org>

	* gtk/gtk-sections.txt: added gtk_menu_set/get_take_focus().

	* gtk/tmpl/gtkmenushell.sgml: regenerated.
2005-03-31 17:04:27 +00:00
Matthias Clasen
7049dbf12f Typo fix in the docs.
2005-03-16  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkprogressbar.c (gtk_progress_bar_get_ellipsize):
	Typo fix in the docs.

	* gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_set_arrow_tooltip):
	Typo fix in the docs.

	* gtk/gtkiconview.c (gtk_icon_view_get_columns)
	(gtk_icon_view_set_columns, gtk_icon_view_set_item_width)
	(gtk_icon_view_get_item_width, gtk_icon_view_set_spacing)
	(gtk_icon_view_get_spacing, gtk_icon_view_set_row_spacing)
	(gtk_icon_view_set_column_spacing, gtk_icon_view_get_row_spacing)
	(gtk_icon_view_get_column_spacing, gtk_icon_view_set_margin)
	(gtk_icon_view_get_margin): Add docs.

	* gtk/gtkcellview.c (gtk_cell_view_get_displayed_row):
	Add docs.
2005-03-17 03:23:23 +00:00
Matthias Clasen
8d279c6d77 Typo fixes. (#169728, Morten Welinder, Owen Taylor)
2005-03-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/tmpl/gtkwidget.sgml: Typo fixes. 	(#169728,
	Morten Welinder, Owen Taylor)
2005-03-09 17:47:32 +00:00
Matthias Clasen
6294736800 Fix stack vs heap confusion. (#168690, Torsten Schoenfeld)
2005-02-27  Matthias Clasen  <mclasen@redhat.com>

	* gtk/tmpl/gtktreemodel.sgml: Fix stack vs heap
	confusion.  (#168690, Torsten Schoenfeld)
2005-02-28 04:51:56 +00:00
Matthias Clasen
bacee14097 Fix links to freedesktop.org specs in the documentation.
2005-02-20  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkwindow.c:
	* gtk/gtkclipboard.c: Fix links to freedesktop.org specs
	in the documentation.
2005-02-21 04:24:48 +00:00
Matthias Clasen
0531a161f7 Add some more info. (#167356, Hubert Sokolowski)
2005-02-15  Matthias Clasen  <mclasen@redhat.com>

	* gtk/tmpl/gtkcalendar.sgml: Add some more
	info.  (#167356, Hubert Sokolowski)
2005-02-16 03:50:06 +00:00
Matthias Clasen
812e0cfdb7 Support vertical menubars (#166632):
2005-02-11  Matthias Clasen  <mclasen@redhat.com>

	Support vertical menubars  (#166632):

	* gtk/gtkenums.h (GtkPackDirection): New enumeration for pack
	directions, with values for left-to-right, right-to-left,
	top-to-bottom and bottom-to-top.

	* gtk/gtk.symbols:
	* gtk/gtkmenubar.h:
	* gtk/gtkmenubar.c: Add two properties, pack-direction and
	child-pack-direction, which specify how children and
	grandchildren of a menubar are packed, with getters and setters.

	* gtk/gtkmenubar.c (gtk_menu_bar_set_property):
	(gtk_menu_bar_get_property): Implement set_property and get_property.

	* gtk/gtkmenubar.c (gtk_menu_bar_size_request):
	(gtk_menu_bar_size_allocate): Take pack direction into account.

	* gtk/gtkmenubar.c (gtk_menu_bar_move_current): Implement
	move_current here move all the menubar-specific direction
	tweaking from the generic menushell implementation here.

	* gtk/gtkmenu.c (gtk_menu_move_current): Move  menu-specific
	direction tweaking from the generic menushell implementation here.

	* gtk/gtkmenuitem.c (gtk_menu_item_size_request):
	(gtk_menu_bar_size_allocate): Take pack direction into account.

	* gtk/gtkimagemenuitem.c (gtk_image_menu_item_size_request)
	(gtk_image_menu_item_size_allocate):
	(gtk_image_menu_item_toggle_size_request): Take child pack
	direction into account and pack the image vertically if
	necessary.

	* gtk/gtkmenushell.c (gtk_menu_shell_real_select_item):
	Set the submenu direction to left-right for menuitems in
	vertical menubars.
	(gtk_real_menu_shell_move_current): Simplify by moving
	direction tweaking to menu- and menubar-specific
	implementations. Take pack direction into account when
	doing fallbacks.

	* tests/testmenubars.c: Test menubars in various packing
	direction combinations.

	* tests/Makefile.am (noinst_PROGRAMS): Add testmenubars.
2005-02-11 07:15:11 +00:00
Matthias Clasen
da920e08f8 Accept the "expand" attribute and set a flag in the node if it is set to
2005-02-08  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkuimanager.c (start_element_handler): Accept
	the "expand" attribute and set a flag in the node if it
	is set to "true".
	(update_node): If the expand flag is set, make separator
	toolitems non-drawn and expanding.  (#166489, Christian Persch)
2005-02-08 15:54:09 +00:00
Owen Taylor
93344f6dfe Add gdk_drawable_set_cairo_target().
2005-02-03  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkdrawable.[ch] gdkpixmap.c gdkwindow.c: Add
        gdk_drawable_set_cairo_target().

        * tests/testtreeflow.c (enum): Use grand not rand as a variable
        name because one of the cairo headers is pulling in stdlib.h.

        * tests/testcairo.c tests/Makefile.am: Add a simple cairo based
        example.

        * configure.in: Bump release to 2.7.0, gtk_binary_version to 2.7.0.

        * Require libpangocairo for all backends.
2005-02-03 23:29:02 +00:00
Matthias Clasen
45c38b4422 New function which allows to change the function used for translation
2005-02-03  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtk.symbols:
	* gtk/gtkstock.h:
	* gtk/gtkstock.c (gtk_stock_set_translate_func):
	New function which allows to change the function used for
	translation stock labels, on a per-domain basis. Use this
	functionality to switch the GTK+ stock items to use Q_()
	prefixed msgids.  (#166179, Funda Wang)
2005-02-03 17:46:40 +00:00
Matthias Clasen
762daeb3cf Mark GdkEventOwnerChange and GdkOwnerChange as 2.6 additions. (#165823,
2005-02-02  Matthias Clasen  <mclasen@redhat.com>

	* gdk/tmpl/event_structs.sgml:
	* gdk/tmpl/events.sgml: Mark GdkEventOwnerChange and
	GdkOwnerChange as 2.6 additions.  (#165823, Masao Mutoh)
2005-02-02 06:24:17 +00:00
Matthias Clasen
673f0a86b9 Add a --quiet option.
2005-02-01  Matthias Clasen  <mclasen@redhat.com>

	* gtk/updateiconcache.c (main): Add a --quiet option.
2005-02-01 13:55:08 +00:00
Matthias Clasen
3657b05ccc Add note on limited availability. (#164347, Roger Light)
2005-01-25  Matthias Clasen  <mclasen@redhat.com>

	* gtk/tmpl/gtksocket.sgml:
	* gtk/tmpl/gtkplug.sgml: Add note on limited
	availability.  (#164347, Roger Light)
2005-01-25 18:46:27 +00:00
Matthias Clasen
a57035d9d1 Replace "effect" by "affect" where appropriate. (#165108, Dan Winship)
2005-01-24  Matthias Clasen  <mclasen@redhat.com>

	* docs/tutorial/gtk-tut.sgml:
	* docs/tutorial/gtk_tut.sgml:
	* docs/reference/gtk/tmpl/gtkliststore.sgml:
	* gtk/gtkactiongroup.c:
	* gtk/gtksizegroup.c:
	* gtk/gtksizegroup.h:
	* gtk/gtktogglebutton.c: Replace "effect" by "affect" where
	appropriate.  (#165108, Dan Winship)
2005-01-24 17:42:58 +00:00
Matthias Clasen
56e0ee04fc Add a function to obtain the last user interaction time. (#163119, Elijah
2005-01-19  Matthias Clasen  <mclasen@redhat.com>

	* gdk/gdk.symbols:
	* gdk/x11/gdkx.h:
	* gdk/x11/gdkdisplay-x11.c (gdk_x11_display_get_user_time):
	Add a function to obtain the last user interaction
	time.  (#163119, Elijah Newren)
2005-01-19 14:37:56 +00:00
Matthias Clasen
b6828c4312 Add an index for 2.8 symbols.
2005-01-18  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtk-docs.sgml: Add an index for 2.8 symbols.
2005-01-18 21:05:36 +00:00
Matthias Clasen
7647ecb4dd Add an index for 2.8 symbols.
2005-01-18  Matthias Clasen  <mclasen@redhat.com>

	* gdk/gdk-docs.sgml: Add an index for 2.8 symbols.

	* gdk/gdk-sections.txt: Add gdk_display_warp_pointer.
2005-01-18 21:02:00 +00:00
Matthias Clasen
c223c876c2 Some updates 2005-01-16 04:12:43 +00:00
Matthias Clasen
65d7ef8ff4 2.6.1 2005-01-08 07:50:46 +00:00
James M. Cape
977a557a67 Use default title if NULL is passed.
2005-01-06  James M. Cape  <jcape@ignore-your.tv>

	* gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
	(gtk_file_chooser_button_new_with_backend): Use default title if
	NULL is passed.

	* docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
	match API.
2005-01-06 06:25:30 +00:00
Jonathan Blandford
c8bad34daf only reorder on button 1, part of #141937
Tue Jan  4 16:52:14 2005  Jonathan Blandford  <jrb@redhat.com>

        * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
        only reorder on button 1, part of #141937
2005-01-04 22:10:56 +00:00
Matthias Clasen
9ae083638f Improve the threads examples. (#161618, Stefan Kost)
2005-01-03  Matthias Clasen  <mclasen@redhat.com>

	* gdk/tmpl/threads.sgml: Improve the threads
	examples.  (#161618, Stefan Kost)
2005-01-03 19:35:20 +00:00
Matthias Clasen
1fc0fc6991 Typo fix. (#162219, Masao Mutoh)
2004-12-26  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilechooser.c (gtk_file_chooser_set_action):
	Typo fix.  (#162219, Masao Mutoh)
2004-12-26 06:28:00 +00:00
Matthias Clasen
8454afe8e6 Don't translate NULL messages. (#161789, Morten Welinder)
2004-12-20  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't
	translate NULL messages.  (#161789, Morten Welinder)
2004-12-20 16:05:25 +00:00
Matthias Clasen
ca8b2eb993 Remove a no longer needed note. (#161544, Tommi Komulainen)
2004-12-17  Matthias Clasen  <mclasen@redhat.com>

	* gdk/tmpl/x_interaction.sgml: Remove a no longer needed
	note.  (#161544, Tommi Komulainen)
2004-12-18 03:55:53 +00:00
Jonathan Blandford
55e724b087 spell missing stock icons correctly.
Fri Dec 17 13:51:17 2004  Jonathan Blandford  <jrb@redhat.com>

        * gtk/Makefile.am (HTML_IMAGES): spell missing stock icons
        correctly.
2004-12-17 18:52:09 +00:00