Commit Graph

250 Commits

Author SHA1 Message Date
Matthias Clasen
7e6f1345a9 New function to allow wrapping a native pixmap without a server roundtrip.
2006-03-29  Matthias Clasen <mclasen@redhat.com>

        * gdk/gdk.symbols:
        * gdk/gdkpixmap.h:
        * gdk/win32/gdkpixmap-win32.c:
        * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new_for_screen):
        New function to allow wrapping a native pixmap without
        a server roundtrip.  (#334954, David Baron)
2006-03-30 04:08:51 +00:00
Michael Natterer
6b661b53e1 added gdk_screen_get_active_window() and gdk_screen_get_window_stack()
2006-03-08  Michael Natterer  <mitch@imendio.com>

	* gdk/gdk-sections.txt: added gdk_screen_get_active_window()
	and gdk_screen_get_window_stack()
2006-03-08 17:09:53 +00:00
Matthias Clasen
023435bde3 Additions.
2006-02-19  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtk-sections.txt: Additions.

	* gdk/gdk-sections.txt: Additions.
2006-02-20 01:41:16 +00:00
Matthias Clasen
b19cda7c37 Add gdk_cairo_set_source_pixmap. (#318805, Alexander Larsson)
2005-12-30  Matthias Clasen  <mclasen@redhat.com>

	* gdk/gdk.symbols:
	* gdk/gdkcairo.h:
	* gdk/gdkcairo.c: Add gdk_cairo_set_source_pixmap.  (#318805,
	Alexander Larsson)
2005-12-30 07:16:35 +00:00
Matthias Clasen
8083b8ef6a Inline docs, use g_assert(), avoid extra allocation for rectangular
2005-12-24  Matthias Clasen  <mclasen@redhat.com>

	* gdk/gdkregion-generic.c:
	* gdk/gdkpolyreg-generic.c:
	* gdk/gdkregion.h:
	* gdk/gdkrectangle.c: Inline docs, use g_assert(), avoid
	extra allocation for rectangular regions.
2005-12-24 07:29:00 +00:00
Matthias Clasen
f2685563ac Updates 2005-12-20 05:47:43 +00:00
Matthias Clasen
2ae9783809 Fix typo 2005-12-20 04:55:16 +00:00
Matthias Clasen
b9c479ba56 Small additions/fixes
2005-12-19  Matthias Clasen  <mclasen@redhat.com>

	* gdk/tmpl/input.sgml:
	* gdk/tmpl/rgb.sgml:
	* gdk/tmpl/x_interaction.sgml:
	* gdk/tmpl/windows.sgml: Small additions/fixes

	* gdk/Makefile.am (IGNORE_HFILES): Add quartz

	* gdk/gdk-sections.txt: Add gdk_window_get_type_hint
2005-12-19 21:02:08 +00:00
Matthias Clasen
3392bdadba Fix a comment.
2005-09-26  Matthias Clasen  <mclasen@redhat.com>

	* gdk/tmpl/gcs.sgml: Fix a comment.
2005-09-26 20:10:40 +00:00
Tim Janik
fbd3568e4c fixed wording and typos in some places. added a new section "Optimizing RC
Tue Sep 13 14:16:27 2005  Tim Janik  <timj@imendio.com>

        * gtk/tmpl/gtkrc.sgml: fixed wording and typos in some places.
        added a new section "Optimizing RC Style Matches".
2005-09-13 12:19:07 +00:00
Matthias Clasen
797c2e6a45 New function to avoid pointless strdups when creating atoms from static
2005-09-11  Matthias Clasen  <mclasen@redhat.com>

	* gdk/gdk.symbols:
	* gdk/gdkproperty.h:
	* gdk/x11/gdkproperty-x11.c (gdk_atom_intern_static_string):
	New function to avoid pointless strdups when creating atoms
	from static strings.

	* gdk/x11/gdkdisplay-x11.c:
	* gdk/x11/gdkdnd-x11.c:
	* gdk/x11/gdkevents-x11.c:
	* gdk/x11/gdkmain-x11.c:
	* gdk/x11/gdkproperty-x11.c:
	* gdk/x11/gdkselection-x11.c:
	* gdk/x11/gdkwindow-x11.c: Use gdk_atom_intern_static_string()
	where appropriate.
2005-09-11 05:39:45 +00:00
Matthias Clasen
03aea1a3da Make it possible to determine if a key event is for a modifier key:
2005-09-09  Matthias Clasen  <mclasen@redhat.com>

	Make it possible to determine if a key event is for a
	modifier key:

 	* gdk/x11/gdkprivate-x11.h:
	* gdk/x11/gdkkeys-x11.c (_gdk_keymap_key_is_modifier):
	New function to determine if a keycode is mapped to a modifier.
	(get_xkb): Get the modmap.

	* gdk/x11/gdkevents-x11.c (translate_key_event): Set the
	is_modifier bit by calling _gdk_keymap_key_is_modifier().

	* gdk/gdkevents.h (struct _GdkEventKey): Add an is_modifier
	bit.
2005-09-09 22:50:15 +00:00
Matthias Clasen
eb7abab27b Document new modifier bits. 2005-09-06 18:45:50 +00:00
Matthias Clasen
67d685f2e8 Bump version to 2.9.0
2005-08-26  Matthias Clasen  <mclasen@redhat.com>

	* configure.in: Bump version to 2.9.0

	* gdk-pixbuf/gdk-pixbuf.sgml:
	* gdk/gdk-docs.sgml:
	* gtk/gtk-docs.sgml: Add indices for new
	symbols in 2.10
2005-08-26 18:52:48 +00:00
Matthias Clasen
b3a757762c Make the GdkScreen font options api public, and add properties
2005-08-26  Matthias Clasen  <mclasen@redhat.com>

	* gdk/gdk.symbols:
	* gdk/gdkscreen.h:
	* gdk/gdkscreen.c: Make the GdkScreen font options api
	public, and add properties GdkScreen::font-options and
	GdkScreen::resolution.  (#314004)

	* gdk/gdkpango.c:
	* gtk/gtksettings.c:
	* gtk/gtkwidget.c: Adjust all callers.

	* gdk/gdkintl.h: Simplify and use glib/gi18n-lib.h.
	* gdk/gdkpango.c: Include gdkintl.h, not gtkintl.h.
	* gdk/gdkscreen.c: Include gdkintl.h.
2005-08-26 18:49:52 +00:00
Matthias Clasen
b0b1c78af8 Small fixes
2005-08-06  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtk-sections.txt:
	* gtk/Makefile.am:
	* gdk-pixbuf/gdk-pixbuf-sections.txt:
	* gdk/tmpl/images.sgml: Small fixes
2005-08-06 05:12:11 +00:00
Federico Mena Quintero
d747251b2e Add a "save" example to the typical usage.
2005-07-15  Federico Mena Quintero  <federico@ximian.com>

	* gtk/tmpl/gtkfilechooserdialog.sgml: Add a "save" example to the
	typical usage.

	* gtk/gtk-sections.txt: Add GtkFileChooserConfirmation,
	gtk_file_chooser_set_do_overwrite_confirmation,
	gtk_file_chooser_get_do_overwrite_confirmation.

	* gtk/tmpl/gtkfilechooser.sgml: Document the confirmation signal
	and enumeration; provide an example.
2005-07-15 05:50:48 +00:00
Matthias Clasen
38732dc573 Add new api.
2005-07-11  Matthias Clasen  <mclasen@redhat.com>

	* gdk/gdk-sections.txt: Add new api.
2005-07-11 18:29:21 +00:00
Matthias Clasen
98f768521b Update links to the EWMH. (#309910, Park Ji-In)
2005-07-10  Matthias Clasen  <mclasen@redhat.com>

	* gdk/tmpl/windows.sgml: Update links to the EWMH.  (#309910,
	Park Ji-In)
2005-07-10 05:05:24 +00:00
Matthias Clasen
03b9bae824 Fix the "new in 2.8" index.
2005-07-08  Matthias Clasen  <mclasen@redhat.com>

	* gdk/gdk-docs.sgml: Fix the "new in 2.8" index.

	* gdk-pixbuf/gdk-pixbuf.sgml: Add the "new in 2.8" index.
2005-07-08 15:03:20 +00:00
Matthias Clasen
a018ff12f3 Point to GdkEventGrabBroken from the gdk_pointer_grab and
2005-07-06  Matthias Clasen  <mclasen@redhat.com>

	* gdk/tmpl/general.sgml: Point to GdkEventGrabBroken
	from the gdk_pointer_grab and gdk_keyboard_grab docs.
2005-07-06 19:56:24 +00:00
Matthias Clasen
2bd25d8f45 2.7.1 2005-07-01 19:24:05 +00:00
Matthias Clasen
546e045ccf Updates 2005-06-30 03:21:25 +00:00
Matthias Clasen
b2343762b1 Ignore GrabBroken events which are caused by overgrabbing inside the
2005-06-27  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Ignore
	GrabBroken events which are caused by overgrabbing inside
	the application; menus rely on these for their operation.

	* gdk/gdkevents.h (struct _GdkEventGrabBroken): Add a
	grab_window field.

	* gdk/win32/gdkevents-win32.c (gdk_event_translate): Set
	grab_window to NULL when generating GrabBroken events for
	WM_KILLFOCUS messages.

	* gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_unmap)
	(_gdk_xgrab_check_destroy): Set grab_window to NULL when
	generating GrabBroken events when the grab window becomes
	unviewable or is destroyed.

	* gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab):
	Generate GrabBroken events when overriding a grab inside
	the application. In this case, set grab_window to the new
	grab_window.
2005-06-27 21:06:33 +00:00
Matthias Clasen
9b356ea0d8 Add a GrabBroken event to GDK, and a grab-broken-event signal to
2005-06-25  Matthias Clasen  <mclasen@redhat.com>

	Add a GrabBroken event to GDK, and a grab-broken-event
	signal to GtkWidget.  (#107320, Simon Cooke, initial patch
	by John Ehresman)

	* gdk/gdkevents.h: Add a GDK_GRAB_BROKEN event type,
	define a GdkEventGrabBroken event struct.

	* gdk/win32/gdkevents-win32.c (gdk_event_translate):
	Generate GrabBroken events in response to WM_KILLFOCUS.

	* gdk/x11/gdkmain-x11.c: Generate GrabBroken events
	when a grab is broken by the window becoming unviewable,
	or by another grab from the same client.

	* gtk/gtkwidget.h (GtkWidgetClass): Add grab_broken_event.

	* gtk/gtkwidget.c (gtk_widget_event_internal): Translate
	GrabBroken events into grab_broken_event signals.

	* gtk/gtkmain.c (gtk_main_do_event): Propagate GrabBroken
	events.

	* gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Deactivate
	the menu when the grab is broken.

	* gtk/gtkcolorsel.c (gtk_color_selection_grab_broken): Stop
	the color picker if the grab is broken.

	* gtk/gtkpaned.c (gtk_paned_grab_broken): Stop the drag if
	the grab is broken.
2005-06-25 07:10:40 +00:00
Matthias Clasen
0f133f4f4b New function which can be used to implement scrolling in non-window
2005-06-21  Matthias Clasen  <mclasen@redhat.com>

	* gdk/gdk.symbols:
	* gdk/gdkwindow.h:
	* gdk/x11/gdkgeometry-x11.c (gdk_window_move_region): New
	function which can be used to implement scrolling in
	non-window widgets.  (#135165, Søren Sandmann)
2005-06-21 04:09:52 +00:00
Matthias Clasen
58a1af804c 2.7.0 2005-06-20 22:06:27 +00:00
Matthias Clasen
23fabedc9d Support the ICCCM urgency hint. (#61858, Havoc Pennington)
2005-06-17  Matthias Clasen  <mclasen@redhat.com>

	Support the ICCCM urgency hint.  (#61858, Havoc Pennington)

	* gtk/gtk.symbols:
	* gtk/gtkwindow.[hc]: Add a GtkWindow::urgency-hint property
	with getter and setter.

	* gdk/gdk.symbols:
	* gdk/gdkwindow.h:
	* gdk/x11/gdkwindow-x11.c (gdk_window_set_urgency_hint):
	Add a setter for the urgency hint.

	* gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Store
	urgency hint here.

	* gdk/x11/gdkwindow-x11.c (update_wm_hints): Set the urgency
	hint in the WM_HINTS property when appropriate.
2005-06-17 20:19:32 +00:00
Matthias Clasen
3c96358fd1 Keep a reference to the GdkCursor and add a private getter for it, so that
2005-06-15  Matthias Clasen  <mclasen@redhat.com>

	* gdk/x11/gdkwindow-x11.[hc]: Keep a reference to the
	GdkCursor and add a private getter for it, so that we can
	update the cursor when the cursor theme changes.

	* gdk/gdk.symbols:
	* gdk/x11/gdkx.h:
	* gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme):
	New function to change the cursor theme.
2005-06-15 18:37:18 +00:00
Matthias Clasen
933ae28567 Updates 2005-06-14 20:57:16 +00:00
Matthias Clasen
8292c4d374 Add a section for the Cairo functions.
2005-06-09  Matthias Clasen  <mclasen@redhat.com>

	* gdk/gdk-sections.txt:
	* gdk/tmpl/cairo_interaction.sgml:
	* gdk/gdk-docs.sgml: Add a section for the Cairo functions.
2005-06-10 03:53:45 +00:00
Matthias Clasen
f6906b8272 Warn if length overflows. (#161520, Ian Wienand)
2005-05-18  Matthias Clasen  <mclasen@redhat.com>

	* gdk/x11/gdkproperty-x11.c (gdk_property_get): Warn if
	length overflows.  (#161520, Ian Wienand)
2005-05-18 14:46:14 +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
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
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
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
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
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
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
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
Matthias Clasen
203e5edc6f 2.6.0 2004-12-16 18:21:44 +00:00
Matthias Clasen
ab84f262c8 Document GdkTrapezoid.
2004-12-15  Matthias Clasen  <mclasen@redhat.com>

	* gdk/tmpl/drawing.sgml: Document GdkTrapezoid.
2004-12-15 17:34:54 +00:00
Matthias Clasen
6139841dad Document all window types. (#160149, Billy Biggs)
2004-12-01  Matthias Clasen  <mclasen@redhat.com>

	* gdk/tmpl/windows.sgml: Document all window types.  (#160149,
	Billy Biggs)
2004-12-02 03:22:18 +00:00
Owen Taylor
438e3e1ca1 Update for GdkPangoRenderer
Sat Nov 20 16:01:51 2004  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdk-sections.txt gdk/gdk.types : Update for GdkPangoRenderer
        * gdk/Makefile.am gdk/images/rotated-text.png:

        * gdk/tmpl/pango_interaction.sgml: Add a long
        description and an extensive example (more or less the same as
        demos/gtk-demo/rotated_text.c)
2004-11-21 16:24:58 +00:00
Anders Carlsson
64facb3c4b Add new clipboard persistence api.
2004-10-25  Anders Carlsson  <andersca@gnome.org>

	* gdk/gdk-sections.txt:
	* gtk/gtk-sections.txt:
	Add new clipboard persistence api.
2004-10-25 19:23:22 +00:00
Owen Taylor
6e2f9d6bfb Fix SGML errors.
Tue Oct 12 11:04:47 2004  Owen Taylor  <otaylor@redhat.com>

        * gtk/glossary.xml: Fix SGML errors.
2004-10-12 15:11:19 +00:00
Matthias Clasen
0eb44bad4a GDK documentation fixes. 2004-10-09 03:31:50 +00:00
Jonathan Blandford
fa3293eb5e load images at normal size.
Thu Sep 16 02:07:56 2004  Jonathan Blandford  <jrb@gnome.org>

        * docs/tools/widgets.c (create_icon_view): load images at normal
        size.

        * docs/reference/gtk/images/*png: Update shots.
2004-09-16 06:16:38 +00:00