Commit Graph

14074 Commits

Author SHA1 Message Date
Matthias Clasen
885ba04648 Add support for composited child windows. (#412882, Ryan Lortie)
2007-06-01  Matthias Clasen  <mclasen@redhat.com>

        Add support for composited child windows.  (#412882, Ryan Lortie)

        * gdk/gdk.symbols:
        * gdk/gdkdisplay.h:
        * gdk/gdkinternals.h:
        * gdk/gdkwindow.[hc]: Add gdk_display_supports_composite() and
        gdk_window_set_composited().

        * gdk/x11/gdkevents-x11.c:
        * gdk/x11/gdkdisplay-x11.[hc]:
        * gdk/x11/gdkwindow-x11.[hc]: X11 implementation.

        * gdk/win32/gdkdisplay-win32.c:
        * gdk/win32/gdkwindow-win32.c: Dummy win32 implementration.

        * gdk/quartz/gdkdisplay-quartz.c:
        * gdk/quartz/gdkwindow-quartz.c: Dummy Quartz implementation.

        * gdk/directfb/gdkdisplay-directfb.c:
        * gdk/directfb/gdkwindow-directfb.c: Dummy DirectFB implementation.

        * tests/testgtk.c: Add a "composited window" test.


svn path=/trunk/; revision=18004
2007-06-01 12:16:12 +00:00
Michael Natterer
62c13f0463 don't switch submenu opening direction for overlapping reasons if there is
2007-06-01  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): don't switch
	submenu opening direction for overlapping reasons if there is even
	less space on the other side (bug #441863, Tommi Komulainen).


svn path=/trunk/; revision=18002
2007-06-01 11:02:11 +00:00
Michael Natterer
f667ed1996 change fix for #347883 to not obfuscate the code.
2007-06-01  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkfilechooserdialog.c (response_cb): change fix for #347883
	to not obfuscate the code.


svn path=/trunk/; revision=18001
2007-06-01 08:19:12 +00:00
Yevgen Muntyan
8f4aa8c6d7 Avoid recreating pangolayouts in GtkTextView on cursor movement (#435405,
2007-06-01  Yevgen Muntyan  <muntyan@tamu.edu>

	Avoid recreating pangolayouts in GtkTextView on cursor movement
	(#435405, Behdad Esfahbod).

	* gtk/gtktextlayout.c:
	* gtk/gtktextlayout.h: new GtkTextLayout method invalidate_cursors(),
	and functions gtk_text_layout_invalidate_cursors() and
	gtk_text_layout_cursors_changed(), to use when invalidation is due
	to moved marks or changed selection.

	* gtk/gtktextbtree.c:
	* gtk/gtktextbtree.h: use what's appropriate when invalidating layout.

	* gtk/gtk.symbols: add new functions.

	* README.in: added a note about changed GtkTextLayout API.


svn path=/trunk/; revision=18000
2007-06-01 06:25:43 +00:00
Alp Toker
5ffdc33df0 Fix doc typos.
2007-06-01  Alp Toker  <alp.toker@collabora.co.uk>

	* gdk/gdkcairo.c (gdk_cairo_set_source_pixmap): Fix doc typos.


svn path=/trunk/; revision=17999
2007-06-01 05:10:50 +00:00
Yevgen Muntyan
405df7f7db use text colors from widget style to draw cursor instead of hardcoded
2007-05-31  Yevgen Muntyan  <muntyan@tamu.edu>

	* gtk/gtkstyle.c (get_insertion_cursor_gc): use text colors from
	widget style to draw cursor instead of hardcoded black and grey
	(#79585, comment #30).


svn path=/trunk/; revision=17998
2007-06-01 05:02:05 +00:00
Kristian Rietveld
5fc26ddab7 transform the ink_rect using pango_extents_to_pixels to avoid rounding
2007-06-01  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkcellrenderertext.c (get_size): transform the ink_rect using
	pango_extents_to_pixels to avoid rounding errors.  (Fixes #430218,
	Shlomi Israel).


svn path=/trunk/; revision=17996
2007-05-31 22:21:55 +00:00
Mathias Hasselmann
e53cc5ddfc Reactivate the other file-chooser tests. Forgot that before commiting revision 17994.
svn path=/trunk/; revision=17995
2007-05-31 21:52:05 +00:00
Mathias Hasselmann
3ea5cea9a1 Reset the internal response_requested flag, once the response triggered by file_chooser_widget_response_requested has been processed (#347883)
svn path=/trunk/; revision=17994
2007-05-31 21:45:20 +00:00
Theppitak Karoonboonyanan
dae6d72337 Updated Thai translation.
* th.po: Updated Thai translation.


svn path=/trunk/; revision=17992
2007-05-31 09:08:25 +00:00
Richard Hult
71cf54aef3 Add this function, bug #438440.
2007-05-30  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkselection-quartz.c (gdk_free_text_list): Add this
	function, bug #438440.

svn path=/trunk/; revision=17991
2007-05-30 17:20:26 +00:00
Chris Wilson
de42416ac2 Supply the current GError for fatal_error_handler(). (#441443)
2007-05-30  Chris Wilson  <chris@chris-wilson.co.uk>

    * io-jpeg.c (gdk_pixbuf__jpeg_image_stop_load):
    Supply the current GError for fatal_error_handler(). (#441443)


svn path=/trunk/; revision=17989
2007-05-30 16:11:48 +00:00
Tor Lillqvist
d022f4c32d Subtract the multi-monitor offset from x and y before setting up the
2007-05-30  Tor Lillqvist  <tml@novell.com>

	* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Subtract the
	multi-monitor offset from x and y before setting up the rectangle
	for ClipCursor(). Fixes #442326.


svn path=/trunk/; revision=17988
2007-05-30 15:44:28 +00:00
Matthias Clasen
8bcf5c23c3 Queue a resize if the size changed. (#418047, Alex Graveley)
2007-05-30  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkiconview.c (gtk_icon_view_layout): Queue a resize
        if the size changed.  (#418047, Alex Graveley)



svn path=/trunk/; revision=17985
2007-05-30 13:28:24 +00:00
Simos Xenitellis
f2f53a6955 Closed #442183 – Updated gdk/gdkkeysyms-update.pl
svn path=/trunk/; revision=17984
2007-05-30 13:23:40 +00:00
Emmanuele Bassi
7ec6f9375c Fix to update the file chooser entry
Return after setting the file chooser entry instead of falling through. Also
remove the handling for the search and recent files operation modes, since
they don't have a location entry to update.

svn path=/trunk/; revision=17983
2007-05-30 12:27:47 +00:00
Matthias Clasen
8bd39297a6 Correct the handling of display names.
svn path=/trunk/; revision=17982
2007-05-30 05:56:32 +00:00
Xan Lopez
07749fa1a3 Forgot the bug number.
svn path=/trunk/; revision=17981
2007-05-29 22:33:29 +00:00
Xan Lopez
8bd26a443b Update
svn path=/trunk/; revision=17980
2007-05-29 22:13:57 +00:00
Xan Lopez
88c71fd5f6 Small cleanup in gtk_notebook_set_current_page and fix doc typo.
svn path=/trunk/; revision=17979
2007-05-29 22:13:42 +00:00
Jorge Gonzalez Gonzalez
7054d345ab Updated Spanish translation
svn path=/trunk/; revision=17978
2007-05-29 15:53:28 +00:00
Jorge Gonzalez Gonzalez
2a6bd92f27 Updated Spanish translation
svn path=/trunk/; revision=17977
2007-05-29 15:53:01 +00:00
Cody Russell
b5fe5d5bea Fix initialization of last cursor
svn path=/trunk/; revision=17973
2007-05-29 01:04:59 +00:00
Richard Hult
f2f1be4e4f Break out code that was repeated into separate functions and call them
2007-05-28  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkevents-quartz.c (get_child_coordinates_from_ancestor)
	(get_ancestor_coordinates_from_child): Break out code that was
	repeated into separate functions and call them instead.
	(find_window_for_mouse_nsevent): Break out this from
	find_window_for_nsevent to make the code clearer.
	(find_window_for_nsevent): Use the above and fix the returned
	coordinates in the process so that they are always relative the
	found window, both for the normal case and during grabs. Still
	needs fixing for the case where we get nsevents for a window other
	than than grab window during grabs.

svn path=/trunk/; revision=17971
2007-05-28 21:11:55 +00:00
Richard Hult
d36c24a8b9 Fix typo, we need both press and release in the mask to trigger implicit
2007-05-28  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkevents-quartz.c (gdk_event_translate): Fix typo,
 	we need both press and release in the mask to trigger implicit
	grabs.

svn path=/trunk/; revision=17970
2007-05-28 20:55:26 +00:00
Richard Hult
93948cdb4a Reset all the grab state, to help debugging. (gdk_event_translate): Use
2007-05-28  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkevents-quartz.c (pointer_ungrab_internal): Reset
	all the grab state, to help debugging.
	(gdk_event_translate): Use pointer_ungrab_internal instead of
	duplicating the code here.

svn path=/trunk/; revision=17969
2007-05-28 20:51:11 +00:00
Richard Hult
6ecae9e5eb Refactored version of _gdk_quartz_window_find_child_by_point, that doesn't
2007-05-28  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkprivate-quartz.h:
	* gdk/quartz/gdkwindow-quartz.c (find_child_window_helper)
	(_gdk_quartz_window_find_child): Refactored version of
	_gdk_quartz_window_find_child_by_point, that doesn't return any
	coordinates as the users of this function already have the
	coordinates and need to translate them differently.
	(_gdk_windowing_window_get_pointer): Fixup coordinate translation.
	(_gdk_windowing_window_at_pointer): Likewise.

svn path=/trunk/; revision=17968
2007-05-28 20:42:51 +00:00
Richard Hult
52709dff9a Don't traverse beyond the toplevel of the passed in window.
2007-05-28  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkevents-quartz.c
	(find_window_interested_in_event_mask): Don't traverse beyond the
	toplevel of the passed in window.

svn path=/trunk/; revision=17967
2007-05-28 20:24:59 +00:00
Richard Hult
63228c672f Set a size for the root window.
2007-05-28  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkwindow-quartz.c: (_gdk_windowing_window_init): Set
	a size for the root window.

svn path=/trunk/; revision=17966
2007-05-28 20:22:26 +00:00
Richard Hult
0057d19453 Add comments about what various coordinates are relative to.
2007-05-28  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkwindow-quartz.c: Add comments about what various
	coordinates are relative to.

svn path=/trunk/; revision=17965
2007-05-28 20:20:46 +00:00
Carlos Garnacho
500e7c9375 Add back variable declaration removed in r17958.
2007-05-28  Carlos Garnacho  <carlos@imendio.com>

        * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed_recurse):
        Add back variable declaration removed in r17958.


svn path=/trunk/; revision=17964
2007-05-28 13:34:39 +00:00
Carlos Garcia Campos
eb7f97bb9b Add new capability GTK_PRINT_CAPABILITY_NUMBER_UP.
2007-05-28  Carlos Garcia Campos  <carlosgc@gnome.org>
	* gtk/gtkprinter.[ch]: Add new capability
	GTK_PRINT_CAPABILITY_NUMBER_UP.
	* docs/reference/gtk/tmpl/gtkprintunixdialog.sgml: 
	* gtk/gtkprintunixdialog.c: (update_dialog_from_capabilities):
	* modules/printbackends/file/gtkprintbackendfile.c:
	(file_printer_get_options), (file_printer_get_settings_from_options):
	* modules/printbackends/cups/gtkprintbackendcups.c:
	(cups_printer_get_capabilities): Add a new print capability to specify
	whether print dialog will offer printing multiple pages per sheet. (#398414)

svn path=/trunk/; revision=17963
2007-05-28 10:41:09 +00:00
Matthias Clasen
e95f511143 Document some more signals
svn path=/trunk/; revision=17958
2007-05-28 06:46:33 +00:00
Matthias Clasen
5622e4becd Improve docs
svn path=/trunk/; revision=17957
2007-05-28 05:18:51 +00:00
Matthias Clasen
08623bcef2 forgotten file
svn path=/trunk/; revision=17956
2007-05-28 05:01:56 +00:00
Tor Lillqvist
72593ca436 Drop bogus -user32 switch. Was supposed to be -luser32, but he "l" was
2007-05-27  Tor Lillqvist  <tml@novell.com>

	* configure.in (GDK_EXTRA_LISB): Drop bogus -user32 switch. Was
	supposed to be -luser32, but he "l" was missing. But nobody has
	noticed, so presumably unnecessary.


svn path=/trunk/; revision=17955
2007-05-27 18:45:09 +00:00
Matthias Clasen
81a44a10ff more signal linkification
svn path=/trunk/; revision=17949
2007-05-27 03:02:29 +00:00
Matthias Clasen
324b853954 Some cleanups
2007-05-26   Matthias Clasen  <mclasen@redhat.com>

        * gtk/migrating*.sgml: Some cleanups



svn path=/trunk/; revision=17948
2007-05-27 02:59:45 +00:00
Matthias Clasen
2572a17fd8 Move docs inline
2007-05-26   Matthias Clasen  <mclasen@redhat.com>

        * gtk/tmpl/gtkentry.sgml: Move docs inline

        * gtk/tmpl/gtklinkbutton.sgml:
        * gtk/tmpl/gtkfilechooser.sgml:
        * gtk/tmpl/gtkcellrenderer.sgml:
        * gtk/tmpl/gtkenums.sgml:
        * gtk/tmpl/gtkcontainer.sgml: Additions



svn path=/trunk/; revision=17947
2007-05-27 02:32:21 +00:00
Matthias Clasen
fefa9309f0 More doc fixups
svn path=/trunk/; revision=17946
2007-05-27 01:53:59 +00:00
Matthias Clasen
be4196dac7 Remove GdkBitmap
2007-05-26   Matthias Clasen  <mclasen@redhat.com>

        * gdk/gdk-overrides.txt: Remove GdkBitmap
        * gtk/gtk-sections.txt:
        * gtk/tmpl/gtkenums.sgml:
        * gdk/tmpl/rgb.sgml:
        * gdk/tmpl/gcs.sgml:
        * gdk/tmpl/pango_interaction.sgml:
        * gdk/tmpl/windows.sgml: Additions



svn path=/trunk/; revision=17945
2007-05-27 01:39:28 +00:00
Matthias Clasen
cf3783f8a1 Remove duplicate doc comments that cause problems when building the docs.
2007-05-26  Matthias Clasen  <mclasen@redhat.com>

        * gdk/directfb/gdkkeys-directfb.c: Remove duplicate doc comments
        that cause problems when building the docs.



svn path=/trunk/; revision=17944
2007-05-27 01:36:52 +00:00
Matthias Clasen
ecd08a8f41 Add new api
svn path=/trunk/; revision=17943
2007-05-26 20:56:19 +00:00
Matthias Clasen
73456d9412 Update docs
svn path=/trunk/; revision=17942
2007-05-26 20:50:34 +00:00
Matthias Clasen
8f955adce7 Update docs
svn path=/trunk/; revision=17941
2007-05-26 20:49:08 +00:00
Matthias Clasen
c7920bea2c Add new api
svn path=/trunk/; revision=17940
2007-05-26 20:45:41 +00:00
Matthias Clasen
b6d58ad642 Fix docs
svn path=/trunk/; revision=17939
2007-05-26 20:43:23 +00:00
Matthias Clasen
73e7af1f18 More doc fixage
svn path=/trunk/; revision=17938
2007-05-26 20:39:14 +00:00
Matthias Clasen
4f3e3a617b More doc fixage
svn path=/trunk/; revision=17937
2007-05-26 20:29:26 +00:00
Matthias Clasen
cdac32d374 More doc fixes
svn path=/trunk/; revision=17936
2007-05-26 20:24:25 +00:00