summaryrefslogtreecommitdiff
path: root/gdk
Commit message (Collapse)AuthorAgeFilesLines
* Free state.children in all cases. (#313862, Kjartan Maraas)Matthias Clasen2005-08-291-1/+8
| | | | | | | 2005-08-29 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkasync.c (_gdk_x11_get_window_child_info): Free state.children in all cases. (#313862, Kjartan Maraas)
* Don't warn when G_MAXLONG is passed as length.Matthias Clasen2005-08-271-5/+2
| | | | | | | 2005-08-27 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkproperty-x11.c (gdk_property_get): Don't warn when G_MAXLONG is passed as length.
* Make the GdkScreen font options api public, and add propertiesMatthias Clasen2005-08-265-59/+136
| | | | | | | | | | | | | | | | | | 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.
* Handle theme == NULL.Owen Taylor2005-08-251-3/+5
| | | | | | | 2005-08-25 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme): Handle theme == NULL.
* Use gdk_screen_init as instance_init, not base_init! (Fix from FredericOwen Taylor2005-08-251-5/+5
| | | | | | | | | 2005-08-25 Owen Taylor <otaylor@redhat.com> * gdk/gdkscreen.c (gdk_screen_get_type): Use gdk_screen_init as instance_init, not base_init! (Fix from Frederic Crozat, reported by Joe Marcus Clarke). Trivial cleanup: use -1. rather than -1 for a negative flag value.
* Add a note about cut-and-paste between here and Pango.Owen Taylor2005-08-241-0/+1
| | | | | | | 2005-08-24 Owen Taylor <otaylor@redhat.com> * gdk/gdkpango.c (draw_error_underline): Add a note about cut-and-paste between here and Pango.
* Fix for #314004, reported by Michael Reinsch:Owen Taylor2005-08-244-2/+152
| | | | | | | | | | | | | | | | | | | | 2005-08-23 Owen Taylor <otaylor@redhat.com> Fix for #314004, reported by Michael Reinsch: * gdk/gdk.symbols: * gdk/gdkscreen.[ch]: Add gdk_screen_get/set_font_options_libgtk_only() Add gdk_screen_get/set_resolution_libgtk_only() * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Set the options for the screen on the newly created context. * gtk/gtksettings.c (settings_update_font_options/dpi) gtkwidget.c: Move font options and dpi code from gtkwidget.c to gtksettings.c, set the font options on the screen. * gtk/gtkwidget.c (gtk_widget_update_pango_context): Just get the font options from the screen and set them on the context.
* After checking XLib sources, XGetWindowProperty does set data to NULL.Matthias Clasen2005-08-191-1/+0
|
* Free data returned from XGetWindowProperty.Matthias Clasen2005-08-192-5/+20
| | | | | | | | | | | | | | | 2005-08-19 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display) (xdnd_read_actions, get_client_window_at_coords_recurse): Free data returned from XGetWindowProperty. * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window) Free data returned from XGetWindowProperty. (313867, Kjartan Maraas) * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free children in all cases. (#313862, Kjartan Maraas)
* Free children in all cases. (#313862, Kjartan Maraas)Matthias Clasen2005-08-191-1/+5
| | | | | | | 2005-08-19 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free children in all cases. (#313862, Kjartan Maraas)
* Fix have_base_pc / have_base_x_pc typo.Owen Taylor2005-08-151-2/+0
| | | | | | | | | | | | 2005-08-15 Owen Taylor <otaylor@redhat.com> * configure.in: Fix have_base_pc / have_base_x_pc typo. * gdk/x11/gdkdrawable-x11.c gtk/gtksettings.c: Remove panoxft.h includes. (#313417, James Andrewartha) * configure.in: Add fontconfig to X_PACKAGES, since we use it for FcNameConstant(). (More of #313417)
* Handle pixmap == NULL when checking for a colormap. (Allin Cottrell).Owen Taylor2005-08-153-3/+3
| | | | | | | | | | 2005-08-15 Owen Taylor <otaylor@redhat.com> * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap): * gdk/win32/gdkwindow-win32.c (gdk_window_set_back_pixmap): * gdk/x11/gdkwindow-x11.c (gdk_window_set_back_pixmap): Handle pixmap == NULL when checking for a colormap. (Allin Cottrell).
* gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap)Owen Taylor2005-08-123-0/+18
| | | | | | | | | 2005-08-12 Owen Taylor <otaylor@redhat.com> * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap) * gdk/win32/gdkwindow-win32.c (gdk_window_set_back_pixmap) * gdk/x11/gdkwindow-x11.c (gdk_window_set_back_pixmap): Warn if gdk_drawable_get_colormap (pixmap) is NULL and return.
* Make the last change compile.J. Ali Harlow2005-08-101-2/+3
| | | | | | | 2005-08-10 J. Ali Harlow <ali@juiblex.co.uk> * gdk/win32/gdkfont-win32.c (gdk_font_from_description_for_display): Make the last change compile.
* Remove superfluous call to gdk_window_get_offsets (). (#313051, BertramOwen Taylor2005-08-101-3/+0
| | | | | | | 2005-08-09 Owen Taylor <otaylor@redhat.com> * gdk/gdkwindow.c (gdk_window_ref_cairo_surface): Remove superfluous call to gdk_window_get_offsets (). (#313051, Bertram Felgenhauer)
* Strip out all Xft, FreeType, and pangoxft checking. Rewrite X checks toOwen Taylor2005-08-102-138/+30
| | | | | | | | | | | | | | | | | 2005-08-09 Owen Taylor <otaylor@redhat.com> * configure.in: Strip out all Xft, FreeType, and pangoxft checking. Rewrite X checks to use pkg-config as much as possible. * gdk/win32/gdkfont-win32.c (gdk_font_from_description_for_display): Make this return Arial always to avoid using PangoWin32FontMap. (X11 backend has always been returned "fixed" for a long time) * gdk/linux-fb/gdkdrawable-fb2.c: Remove draw_glyphs() implementations, fall through to the default implementation in terms of Cairo. * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_text): Use gdk_draw_glyphs() on the wrapper rather than gdk_fb_draw_glyphs()
* Fix the buildMatthias Clasen2005-08-081-0/+3
|
* Tighten up ABI checking a bitMatthias Clasen2005-08-072-2/+5
|
* Define the hint styles to make building against fc < 2.2.92 work.Matthias Clasen2005-08-011-0/+7
| | | | | | | 2005-08-01 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkxftdefaults.c: Define the hint styles to make building against fc < 2.2.92 work. (#311839, Damien Carbery)
* Make tracking the on_all_desktops state work better.Matthias Clasen2005-08-012-26/+29
| | | | | | | | | | | 2005-08-01 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkevents-x11.c (gdk_check_wm_desktop_changed): Make tracking the on_all_desktops state work better. * gdk/x11/gdkwindow-x11.c (gdk_x11_window_move_to_current_desktop): Don't do anything if the window is on all desktops. (#311803, Elijah Newren)
* Implement using FlashWindowEx(). (#309423)Tor Lillqvist2005-08-011-1/+15
| | | | | | | 2005-08-01 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkwindow-win32.c (gdk_window_set_urgency_hint): Implement using FlashWindowEx(). (#309423)
* Cosmetics.Tor Lillqvist2005-07-291-10/+5
|
* Remove ifdeffed out code relating to the gdk-ping message. Use the globalTor Lillqvist2005-07-291-148/+105
| | | | | | | | | | | | | | | | | | | | | | 2005-07-29 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkevents-win32.c: Remove ifdeffed out code relating to the gdk-ping message. Use the global _gdk_display instead of calling gdk_display_get_default() which would return _gdk_display anyway. (append_event, apply_filters, gdk_event_translate): Drop any GdkDisplay parameter as we only have one display anyway. Use _gdk_display where needed. (gdk_event_apply_filters): Delete, move the code into its only caller, apply_filters(). (generate_button_event): Factor out code from two places in gdk_event_translate(). (gdk_event_translate): Call generate_button_event() in place of inline code.
* New static function to generate and append the GDK_GRAB_BROKEN events.Tor Lillqvist2005-07-281-18/+40
| | | | | | | | | | | | | | | | | 2005-07-29 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkevents-win32.c (generate_grab_broken_event): New static function to generate and append the GDK_GRAB_BROKEN events. (gdk_pointer_grab, gdk_keyboard_grab): Generate grab broken events when overriding a grab inside the application, like in the X11 backend. Final bits of the fix for #107320, hopefully. (print_event): Handle also GDK_SETTING, GDK_OWNER_CHANGE and GDK_GRAB_BROKEN events. (gdk_event_translate): Call generate_grab_broken_event() in place of inline code.
* Rename from blit_inside_window(), as it now does blitting inside a bitmap,Tor Lillqvist2005-07-281-19/+16
| | | | | | | | | | | | | 2005-07-29 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkdrawable-win32.c (blit_inside_drawable): Rename from blit_inside_window(), as it now does blitting inside a bitmap, too. No code change, still just call BitBlt(). (_gdk_win32_blit): Check for source equalling destination first. (#169508, #131977) Do away with the superfluous local draw_impl variable, the parameter to this function is already a GdkDrawableImplWin32*, no need to copy and cast it.
* Avoid spurious core pointer events when the tablet pen is lifted.Robert Ögren2005-07-281-2/+45
| | | | | | | | | | | | 2005-07-28 Robert Ögren <gtk@roboros.com> Avoid spurious core pointer events when the tablet pen is lifted. (#167000) * gdk/win32/gdkinput-win32.c (set_ignore_core): New static function, handles delayed unsetting of _gdk_input_ignore_core. (_gdk_input_other_event): Call set_ignore_core instead of setting _gdk_input_ignore_core directly.
* Handle PS_ALTERNATE, too.Tor Lillqvist2005-07-271-7/+8
| | | | | | | | | | 2005-07-27 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkmain-win32.c (_gdk_win32_psstyle_to_string): Handle PS_ALTERNATE, too. * gdk/win32/gdkmain-win32.c (gdk_screen_get_height_mm): Fix for multi-monitor cases. (#311677, Tim Evans)
* Change machinery for following font rendering xsettings to set cairo fontOwen Taylor2005-07-215-5/+319
| | | | | | | | | | | | | | | | 2005-07-19 Owen Taylor <otaylor@redhat.com> * gtk/gtksettings.c gtk/gtkwidget.c: Change machinery for following font rendering xsettings to set cairo font options on PangoContext * gdk/x11/gdkxftdefaults.c gdk/x11/gdkevents-x11.c gdkscreen-x11.h gdkprivate-x11.h: Get default values for rendering options (such as antialiasing, dpi) from the Xft resources for the display, borrowing a bit of code from Xft. * gtk/gtksettings.c (gtk_settings_class_init): Fix docs for values of gtk-xft-hintstyle.
* Use wide-char API when available. (#311079, Peter Zelezny)Tor Lillqvist2005-07-211-10/+13
| | | | | | | 2005-07-21 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Use wide-char API when available. (#311079, Peter Zelezny)
* Follow change in cairo API to add Screen* toKeith Packard2005-07-211-0/+1
| | | | | | | | | 2005-07-20 Keith Packard <keithp@keithp.com> * gdk/x11/gdkdrawable-x11.c: (gdk_x11_ref_cairo_surface): Follow change in cairo API to add Screen* to cairo_xlib_create_surface_for_bitmap
* Small formatting fixes in doc comments.Matthias Clasen2005-07-181-4/+4
| | | | | | 2005-07-18 Matthias Clasen <mclasen@redhat.com> * gdk/gdkpixbuf-render.c: Small formatting fixes in doc comments.
* [Win32] Bypass libtool, use -Wl,-luuid. This avoids a libtool warning asTor Lillqvist2005-07-181-0/+2
| | | | | | | | | | | 2005-07-18 Tor Lillqvist <tml@novell.com> * configure.in (GDK_EXTRA_LIBS): [Win32] Bypass libtool, use -Wl,-luuid. This avoids a libtool warning as libuuid is static. * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get): Be sure to remove any possible leftover clipping region in the DC if we don't want any clipping. Thanks to Robert Ögren. (#309823)
* 2.7.3GTK_2_7_3Matthias Clasen2005-07-151-3/+3
|
* Don't assert if the xrootwin is invalid. (#309997, Barbie LeVille)Matthias Clasen2005-07-141-15/+45
| | | | | | | | 2005-07-14 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkevents-x11.c (set_screen_from_root): Don't assert if the xrootwin is invalid. (#309997, Barbie LeVille) (gdk_event_translate): Ignore events with an invalid root field.
* Fix handling of Aiptek and Aiptek-like graphical tablets such as Trust onRobert Ögren2005-07-131-130/+34
| | | | | | | | | | | | | | | | | | 2005-07-13 Robert Ögren <gtk@roboros.com> Fix handling of Aiptek and Aiptek-like graphical tablets such as Trust on Windows. (#167004, thanks to "pnohant" for testing) Code cleanup: Remove the unused and unmaintained code for using a non-system tablet context (USE_SYSCONTEXT ifdef:s), suggested by Tor Lillqvist. * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Handle tablet drivers that don't support WTI_DDCTXS/WTI_DSCTXS gracefully. Sligthly reorganize and simplify the code to support this. (_gdk_input_wintab_init_check, _gdk_input_other_event): Remove USE_SYSCONTEXT ifdef:s and the code for the case it was not defined. (gdk_input_window_find_within): Removed.
* Add Copyright/License information.Matthias Clasen2005-07-131-0/+19
| | | | | | 2005-07-13 Matthias Clasen <mclasen@redhat.com> * gdk/win32/bdfcursor.c: Add Copyright/License information.
* Fix cairo_content_t <-> cairo_format_t confusion. (#310086, CarlosMatthias Clasen2005-07-121-1/+1
| | | | | | | | 2005-07-12 Matthias Clasen <mclasen@redhat.com> * gdk/gdkgc.c (make_stipple_tile_surface): Fix cairo_content_t <-> cairo_format_t confusion. (#310086, Carlos Garnacho Parro)
* Forgot to commit this one.Tor Lillqvist2005-07-121-2/+0
|
* Add Copyright/License information.Matthias Clasen2005-07-1219-0/+491
|
* Add Copyright/License information.Matthias Clasen2005-07-125-0/+130
|
* Make gdk_window_present() move the window to the current desktop, insteadMatthias Clasen2005-07-113-9/+74
| | | | | | | | | | | | | | | | 2005-07-11 Matthias Clasen <mclasen@redhat.com> Make gdk_window_present() move the window to the current desktop, instead of letting the WM change the current desktop to where the window is. (#166379, Elijah Newren) * gdk/gdk.symbols: * gdk/x11/gdkx.h: * gdk/x11/gdkwindow-x11.c (gdk_x11_window_move_to_current_desktop): New function to move a window to the current desktop. * gtk/gtkwindow.c (gtk_window_present_with_time): Move the window to the current desktop before giving it focus.
* Look for windres on Win32.Tor Lillqvist2005-07-093-18/+8
| | | | | | | | | | | | | | | | | | | | 2005-07-09 Tor Lillqvist <tml@novell.com> * configure.in: Look for windres on Win32. * gdk-pixbuf/Makefile.am * gdk/win32/rc/Makefile.am * gdk/Makefile.am * gtk/Makefile.am: Don't use the scripts in build/win32 to compile the rc files into resource object files. (This means we lose the build number increment magic, but I doubt it was that useful anyway.) Instead use windres directly. To pass a normal .o file produced by windres through libtool, which would want a .lo file, pass it directly to the linker using a -Wl option. * gdk-pixbuf/gdk_pixbuf.rc.in * gdk/win32/rc/gdk.rc.in * gtk/gtk-win32.rc.in: Replace BUILDNUMBER with 0.
* Don't generate events on destroyed windows.Matthias Clasen2005-07-071-9/+12
| | | | | | | 2005-07-07 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkmain-x11.c (generate_grab_broken_event): Don't generate events on destroyed windows.
* Don't create the GdkPixbuf until we know that we have something to put inTor Lillqvist2005-07-061-3/+5
| | | | | | | | 2005-07-06 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkcursor-win32.c (gdk_win32_icon_to_pixbuf_libgtk_only): Don't create the GdkPixbuf until we know that we have something to put in it.
* Add comment about the current named cursor implementation, and what itTor Lillqvist2005-07-053-3/+124
| | | | | | | | | | | | | | | | | 2005-07-06 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkcursor-win32.c: Add comment about the current named cursor implementation, and what it maybe really should do. (gdk_win32_icon_to_pixbuf_libgtk_only): New function, code moved here from gtk/gtkfilesystemwin32.c:extract_icon(). (gdk_cursor_get_image): Use gdk_win32_icon_to_pixbuf_libgtk_only(). * gdk/gdk.symbols * gdk/win32/gdkwin32.h: Declare gdk_win32_icon_to_pixbuf_libgtk_only(). * gtk/gtkfilesystemwin32.c (extract_icon): Use gdk_win32_icon_to_pixbuf_libgtk_only().
* Add some missing files to EXTRA_DISTMatthias Clasen2005-07-051-0/+3
|
* updated <io.h> for open() use G_PI instead of M_PIHans Breuer2005-07-034-0/+142
| | | | | | | | | | | | | | | | | | | 2005-07-03 Hans Breuer <hans@breuer.org> * **/makefile.msc[.in] : updated * gtk/gtkiconcache.c : <io.h> for open() * gtk/gtkstyle.c : use G_PI instead of M_PI * gdk/win32/gdkcursor-win32.c : implement gdk_cursor_new_from_name() by mapping the lower case win32 api name to the respective cursor. E.g. pass "wait" to get the IDC_WAIT cursor. Also allows to load cursors from named resources in the executable. (gdk_cursor_get_image) : just return NULL for now. * gdk/win32/gdkgeometry-win32.c : implement gdk_window_move_region() by delegation to ScollWindowEx(), untested. * gdk/win32/gdkwindow-win32.c : stub for gdk_window_set_urgency_hint()
* declare _gdk_xgrab_check_button_event.Manish Singh2005-06-301-3/+5
| | | | | | | | Thu Jun 30 14:17:24 2005 Manish Singh <yosh@gimp.org> * gdk/x11/gdkprivate-x11.h: declare _gdk_xgrab_check_button_event. * gtk/gtkbutton.c: fix signature of gtk_button_grab_broken.
* Avoid infinite loop if a mask is zero. (#309222, David Saxton)Matthias Clasen2005-06-301-0/+6
| | | | | | | 2005-06-30 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkvisual-x11.c (gdk_visual_decompose_mask): Avoid infinite loop if a mask is zero. (#309222, David Saxton)
* Handle broken grabs.Matthias Clasen2005-06-305-12/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | 2005-06-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtkbutton.c (gtk_button_grab_broken): Handle broken grabs. * gtk/gtkrange.c (gtk_range_grab_broken): Handle broken grabs. * gdk/gdkevents.h: Add a boolean to specify wether the broken grab was implicit. * gdk/x11/gdkdisplay-x11.c (gdk_display_pointer_is_grabbed): As the documentation states, don't return TRUE for implicit grabs. * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a boolean field to store wether a pointer grab is implicit. * gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_button_event): Track implicit grabs. * gdk/x11/gdkevents-x11.c (gdk_event_translate): Call _gdk_xgrab_check_button_event for button events.