summaryrefslogtreecommitdiff
path: root/gdk
Commit message (Collapse)AuthorAgeFilesLines
* Add "Since" information.Matthias Clasen2002-12-062-2/+7
| | | | | | | | | | | | | | | | * gdk/tmpl/x_interaction.sgml: * gdk/tmpl/gdkscreen.sgml: * gdk/tmpl/gdkdisplaymanager.sgml: * gdk/tmpl/gdkdisplay.sgml: * gtk/tmpl/gtkstock.sgml: * gtk/tmpl/gtkwidget.sgml: * gtk/tmpl/gtkmain.sgml: * gtk/tmpl/gtkcolorsel.sgml: * gtk/tmpl/gtkaccelgroup.sgml: * gdk-pixbuf/tmpl/module_interface.sgml: Add "Since" information. * gdk/gdkcolor.c: * gdk/gdkfont.c: Add some Deprecation info.
* More proper vt switch handlingEric Warmenhoven2002-12-055-6/+114
| | | | | | | | Wed Dec 4 19:41:14 2002 Eric Warmenhoven <eric@warmenhoven.org> * gdk/linux-fb/gdkglobals-fb.c gdk/linux-fb/gdkkeyboard-fb.c gdk/linux-fb/gdkmain-fb.c gdk/linux-fb/gdkprivate-fb.h gdk/linux-fb/gdkrender-fb.c: More proper vt switch handling
* Always look up and create the Motif drag window as a child of the rootOwen Taylor2002-12-042-6/+11
| | | | | | | | | | | | | | | | Wed Dec 4 14:31:46 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkdnd-x11.c: Always look up and create the Motif drag window as a child of the root window of screen 0 rather than the default screen. (#100362, Erwann Chenede) * gdk/x11/gdkdnd-x11.c (motif_read_initiator_info): Return FALSE, not GDK_FILTER_REMOVE on failure; this isn't a filter function. * gdk/x11/gdkselection-x11.c gtk/gtkselection.c: Add some g_return_if_fail() to catch selection == None more gracefully than an X error.
* Fix wrong sign for queued translation. (Found by Chris Blizzard, #100274)Owen Taylor2002-12-031-4/+4
| | | | | | | | Tue Dec 3 17:47:24 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkgeometry-x11.c (gdk_window_guffaw_scroll): Fix wrong sign for queued translation. (Found by Chris Blizzard, #100274)
* Moveresize emulation for all edges. (#52833)Matthias Clasen2002-12-031-6/+113
|
* Document 2.2 API additions.Matthias Clasen2002-11-2825-103/+304
|
* Fixes from #98358, Havoc Pennington.Owen Taylor2002-11-257-5/+40
| | | | | | | | | | | | | | | | | | | | | | | Mon Nov 25 17:44:09 2002 Owen Taylor <otaylor@redhat.com> Fixes from #98358, Havoc Pennington. * gdk/{x11,win32,linux-fb}/gdkcolor-*.c (gdk_colormap_finalize): Free the private structure. * gdk/x11,win32,linxu-fb}/gdkscreen-*.c (gdk_screen_set_default_colormap): gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init): Keep a ref to the default colormap. * gdk/x11/gdkscreen-x11.c (gdk_screen_x11_dispose): Unref the default colormap. * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap): Handle the CMAP == NULL case even when the window is destroyed. * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init): Add a missing ref for the system colormap.
* Enclose in #ifdef G_ENABLE_DEBUG, as they use functions only availableTor Lillqvist2002-11-251-0/+4
| | | | | | | | | | 2002-11-25 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkevents-win32.c (print_event_state, print_window_state, print_event): Enclose in #ifdef G_ENABLE_DEBUG, as they use functions only available with G_ENABLE_DEBUG, and are called only when G_ENABLE_DEBUG. (#99494, Arnaud Charlet)
* Use _NET_WM_WINDOW_TYPE_SPLASH, not TYPE_SPLASHSCREEN. (#99482, GregoryOwen Taylor2002-11-251-1/+1
| | | | | | | Mon Nov 25 16:58:27 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkwindow-x11.c: Use _NET_WM_WINDOW_TYPE_SPLASH, not TYPE_SPLASHSCREEN. (#99482, Gregory Merchan)
* Merge from stable:Tor Lillqvist2002-11-244-601/+515
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-24 Tor Lillqvist <tml@iki.fi> Merge from stable: Implement tiles and stipples for all drawing methids (except the deprecated draw_text() and draw_text_wc()). * gdk/win32/gdkdrawable-win32.c: Remove the already ifdeffed-out code that didn't use generic_draw(). (generic_draw): When drawing into the mask (for tiled/stippled fill styles), copy the line attributes from the actual GC. Also ask for text drawing setup if needed. Use differently set up HDCs in the normal and tiled/stippled cases. (draw_lines, gdk_win32_draw_lines, draw_polygon, gdk_win32_draw_polygon, draw_segments, gdk_win32_draw_segments, draw_arc, gdk_win32_draw_arc): Use generic_draw(), thus implementing tiled and stippled fill styles for lines, polygons, segments, and args. (gdk_win32_draw_points): Use Rectangle() instead of SetPixel(). Rectangle() uses the function (raster op) set for the HDC, SetPixel() doesn't. (widen_bounds): New function, refactoring. * gdk/win32/gdkgc-win32.c: Remove ifdeffed-out code. (predraw_set_foreground, gdk_win32_hdc_get): Some code moved around. Call SetROP2() only if necessary. Call SetTextColor() only if GDK_GC_FOREGROUND flag present. Don't handle GDK_OPAQUE_STIPPLED here, has been superseded by the code in generic_draw(). Always create a solid brush. Remove background color handling from here. The background color of a GdkGC is supposed to affect only GDK_OPAQUE_STIPPLED fill style, which it is already handled in generic_draw(), and GDK_LINE_DOUBLE_DASH lines, which aren't implemented properly anyway. Calling SetBkColor() is unnecessary as we always use TRANSPARENT text output. (gdk_win32_hdc_get, gdk_win32_hdc_release): Add doc comments, as these are public functions. * gdk/win32/gdkevents-win32.c (synthesize_expose_events): Don't synthesize expose events for GDK_INPUT_ONLY windows. (gdk_event_translate): On WM_SIZE, call gdk_synthesize_window_state() if window was iconified, restored or maximized. (#98983, Arnaud Charlet) * gtk+/gdk/win32/gdkwindow-win32.c (gdk_window_get_frame_extents): Fix typo in setting y. (#98983, Arnaud Charlet)
* Remove period from title of example in docs.Matthias Clasen2002-11-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Remove period from title of example in docs. * gdk/tmpl/x_interaction.sgml: * gdk/tmpl/pango_interaction.sgml: * gdk/tmpl/input_devices.sgml: * gdk/tmpl/input.sgml: * gdk/tmpl/threads.sgml: * gdk/tmpl/properties.sgml: * gdk/tmpl/dnd.sgml: * gdk/tmpl/selections.sgml: * gdk/tmpl/keys.sgml: * gdk/tmpl/event_structs.sgml: * gdk/tmpl/events.sgml: * gdk/tmpl/windows.sgml: * gdk/tmpl/cursors.sgml: * gdk/tmpl/fonts.sgml: * gdk/tmpl/colors.sgml: * gdk/tmpl/pixbufs.sgml: * gdk/tmpl/images.sgml: * gdk/tmpl/pixmaps.sgml: * gdk/tmpl/drawing.sgml: * gdk/tmpl/regions.sgml: * gdk/tmpl/gdkdisplaymanager.sgml: * gdk/tmpl/gdkscreen.sgml: * gdk/tmpl/gdkdisplay.sgml: * gdk/tmpl/general.sgml: Add missing short descriptions, standardize them to start with a capital and end without a period. Also remove periods from titles of examples.
* add -DGDK_DISABLE_DEPRECATEDManish Singh2002-11-1714-82/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sun Nov 17 13:45:08 2002 Manish Singh <yosh@gimp.org> * gdk/Makefile.am: add -DGDK_DISABLE_DEPRECATED * gdk/gdk.c (gdk_exit): remove obsolete comment * gdk/gdk.h: declare gdk_input_add_full if GTK_COMPILATION for gtk_input_add_full * gdk/gdkcolor.c (gdk_color_white, gdk_color_black): use gdk_colormap_alloc_color instead of gdk_color_alloc * gdk/gdkcolor.h: declare gdk_colormap_change if GDK_COMPILATION for gdk_colors_store. Also, gdk_colors_{alloc,free} for gdk_rgb_try_colormap * gdk/gdkdrawable.h: declare gdk_draw_string if GTK_COMPILATION for gtk_default_draw_string. Also, gdk_draw_text and gdk_draw_text_wc if GDK_COMPILATION for the respective gdk_window_ and gdk_pixmap_ functions. * gdk/gdkfont.c: #undef GDK_DISABLE_DEPRECATED, completely compat code here * gdk/gdkfont.h: allow the GdkFont structure and a few gdk_font_ functions for compat code in GDK_COMPILATION and GTK_COMPILATION. * gdk/gdkrgb.c (gdk_rgb_cmap_fail, gdk_rgb_try_colormap): use gdk_colormap_free_colors instead of gdk_colors_free. * gdk/gdkrgb.c (gdk_draw_rgb_image_core): no need to set fg/bg for own_gc, unused. * gdk/gdkwindow.h: declare gdk_window_get_deskrelative_origin if GTK_COMPILATION for gtk_handle_box_button_changed. * gdk/x11/Makefile.am: add -DGDK_DISABLE_DEPRECATED, renmae -DINSIDE_GDK_X11 to -DGDK_COMPILATION * gdk/x11/gdkcolor-x11.c: remove duplicate doc string for gdk_colormap_alloc_colors. * gdk/x11/gdkfont-x11.c: #undef GDK_DISABLE_DEPRECATED, completely compat code here * gdk/x11/gdkx.h: use GDK_COMPILATION instead of INSIDE_GDK_X11, allow a few gdk_x11_font_ functions if GDK_COMPILATION for compat code * gtk/Makefile.am: add -DGDK_DISABLE_DEPRECATED * gtk/gtkclist.c * gtk/gtkctree.c * gtk/gtkpixmap.c * gtk/gtkpreview.c * gtk/gtktext.c: #undef GDK_DISABLE_DEPRECATED, deprecated widget * gtk/gtkhandlebox.c (gtk_handle_box_motion): use gdk_window_set_geometry_hints instead of gdk_window_set_hints. * gtk/gtkmain.c (gtk_exit): call exit directly * gtktipsquery.c (gtk_tips_query_real_start_query) * gtk/gtktreeitem.c (gtk_tree_item_add_pixmaps): remove some deprecated GDK usage.
* Add missing entries, needed by gtk.Tor Lillqvist2002-11-1610-34/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-16 Tor Lillqvist <tml@iki.fi> * gdk/gdk.def: Add missing entries, needed by gtk. * gdk/win32/gdkcolor-win32.c (gdk_screen_get_system_colormap): Remove g_return_val_if_fail call. This function is called from gdk_display_open() with the _gdk_screen it just created, but when gdk_screen_get_default() still returns NULL. * gdk/win32/gdkdisplay-win32.c * gdk/win32/gdkscreen-win32.c: Make more like the linux-fb versions. For instance, don't call gdk_display_manager_set_default_display() from gdk_display_open(). * gdk/win32/gdkglobals-win32.c: Move _gdk_display, _gdk_screen and _gdk_parent_root here. * gdk/win32/gdkinput.c (gdk_display_list_devices): New function. * gdk/win32/gdkmain-win32.c (gdk_get_display): New function. * gdk/win32/gdkvisual-win32.c (gdk_screen_get_system_visual): Don't require that the screen parameter is non-NULL. It can be, and the linux-fb version doesn't check either. * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint, gdk_window_set_skip_pager_hint, gdk_window_fullscreen, gdk_window_unfullscreen): Implement as no-ops.
* Reflect recent renamings and removals of functions.Tor Lillqvist2002-11-168-300/+704
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-15 Tor Lillqvist <tml@iki.fi> * gdk/gdk.def: Reflect recent renamings and removals of functions. Merge from stable: Start implementing all fill styles (i.e. tiled, stippled, and opaque stippled in addition to the plain solid style) in the Win32 backend in an elegant and generic way. For now only did the draw_rectangle() and draw_glyphs() methods. The rest will follow. Previously some of the drawing methods implemented opaque stippling, but not tiles or non-opaque stippling. Seems to work fine, now the check marks show up in check buttons, the stippled background and stippled text in gtk-demo's Text Widget look as they should, and GtkText's line wrap arrow shows correctly instead of an ugly rectangle. [This refers to the stable branch, haven't actually checked HEAD.] The implementation does do a lot of pixmap handling and blitting back and forth, especially on Win9x. But performance is hopefully not an issue. I don't think many applications do a lot of tiled or stippled drawing. * gdk/win32/gdkprivate-win32.h: Define a new macro, GDI_CALL, that calls a GDI function and prints a warning if it failed. Also API_CALL for non-GDI calls. Cleans all the the if (!BlaBla()) WIN32_GDI_FAILED ("BlaBla") snippets, these can now be written GDI_CALL (BlaBla, ()). Declare new functions. * gdk/win32/gdkdrawable-win32.c: Use GDI_CALL macro in lots of places. (generic_draw): New function that handles all the blitting necessary to implement tiles and stipples. A function that actually draws stuff is passed as a parameter to generic_draw(). If the fill style is solid, it is called directly, to draw on the destination drawable. Otherwise it is called to draw on a temporary mask bitmap, which then is used in blitting operations. The tiles and/or stipples are rendered into another temporary pixmap. If MaskBlt() is available (on NT/2k/XP), it is used, otherwise a sequence of BitBlt() is used to do the final composition onto the destination drawable. (draw_tiles_lowlevel, draw_tiles): Some renaming and code reorg. Use BitBlt() to blit each tile, not gdk_draw_drawable(). (rop2_to_rop3): New function, does binary->ternary rop mapping. (blit_from_pixmap, blit_inside_window, blit_from_window): Use rop2_to_rop3(). Previously used SRCCOPY always... (draw_rectangle, gdk_win32_draw_rectangle, draw_glyphs, gdk_win32_draw_glyphs): Split functionality into two functions, with generic_draw() doing its magic inbetween. * gdk/win32/gdkevents-win32.c: Remove the TrackMouseEvent code, it was ifdeffed out and wouldn't have done anything even if enabled. Remove the GDK_EVENT_FUNC_FROM_WINDOW_PROC code, didn't have any effect any more anyway after all the changes GTK+ has gone through in the last years. Remove some #if 0 code. * gdk/win32/gdkgc-win32.c (gdk_gc_copy): Set the copy's hdc field to NULL in case a GC is copied while it has a Windows DC active. * gdk/win32/gdkprivate-win32.h * gdk/win32/gdkglobals-win32.c: Remove gdk_event_func_from_window_proc. * gdk/win32/gdkmain-win32.c: Remove -event-func-from-window-proc option. If there is a PRETEND_WIN9X envvar, set windows_version as if on Win9x. * gdk/win32/gdkpixmap-win32.c (_gdk_win32_pixmap_new, gdk_pixmap_new): Combine these two, _gdk_win32_pixmap_new() wasn't used or exported. Make a bit more like the X11 version. Hopefully I didn't break the fragile palettized display ("pseudocolor") code. * gdk/win32/gdkgc-win32.c: Various debugging output improvements. (predraw_set_foreground): Check whether tile/stipple origins are valid when calling SetBrushOrgEx(). (gdk_win32_hdc_get): Ifdef out code that tries to handle the stipple by converting it into a region, and combining the clip region with that. A stipple shouldn't work like that, it should replicate in x and y directions. Stipples are now handled by generic_draw() in gdkdrawable-win32.c. * gdk/win32/gdkmain-win32.c: (gdk_win32_gcvalues_mask_to_string, gdk_win32_rop2_to_string): New debugging functions. (gdk_win32_print_dc): Print also DC's rop2 and text color.
* Fix display/window typo. (#98511, Soeren Sandmann)Owen Taylor2002-11-141-1/+1
| | | | | | | Thu Nov 14 14:58:21 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name): Fix display/window typo. (#98511, Soeren Sandmann)
* Try a different hack to force gdkenumtypes.h to be updated before buildingOwen Taylor2002-11-143-12/+6
| | | | | | | | | Fri Nov 8 18:04:16 2002 Owen Taylor <otaylor@redhat.com> * gdk/{linux-fb,win32,11}/Makefile.am: Try a different hack to force gdkenumtypes.h to be updated before building the subdir, last hack caused contents to be rebuilt on every make.
* add gdk_display_get_devices to fix compilationEric Warmenhoven2002-11-131-0/+6
| | | | | | | Wed Nov 13 13:50:25 2002 Eric Warmenhoven <warmenhoven@yahoo.com> * gdk/linux-fb/gdkinput.c: add gdk_display_get_devices to fix compilation
* gdk/win32/gdkprivate-win32.h Rename all global variables and functions toTor Lillqvist2002-11-1218-1380/+1375
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-12 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkprivate-win32.h * gdk/win32/*.c: Rename all global variables and functions to start with underscore. Merge from stable: More work on the Win32 backend. The cause of some scrolling problems was that SetWindowPos() and ScrollWindowEx() don't blit those parts of the window they think are invalid. As we didn't keep Windows's update region in synch with GDK's, Windows thought those areas that in fact had been updated were invalid. Calling ValidateRgn() in _gdk_windowing_window_queue_antiexpose() seems to be an elegant and efficient solution, removing from Windows's update region those areas we are about to repaint proactively. In some cases garbage leftover values were used for the clip origin in GdkGCWin32. This showed up as odd blank areas around the pixmaps included in the Text Widget in gtk-demo. Having the clip region either as a GdkRegion or a HRGN in GdkGCWin32 was unnecessary, it's better to just use a HRGN. The translation and antiexpose queue handling in gdkgeometry-win32.c seems unnecessary (and not implementable in the same way as on X11 anyway, no serial numbers) on Windows, ifdeffed out. Don't (try to) do guffaw scrolling as there is no static window gravity on Windows. Guffaw scrolling would be unnecessary anyway, as there is the ScrollWindow() API. This improves the behaviour of the Text Widget demo in gtk-demo a lot. But I have no idea how the lack of static win gravity should be handled in other places where the X11 code uses it. Especially _gdk_window_move_resize_child(). There is still some problem in expose handling. By moving an obscuring window back and forth over testgtk's main window, for instance, every now and then you typically get narrow vertical or horizontal strips of pixels that haven't been properly redrawn after being exposed. A fencepost error somewhere? Otherwise, all of testgtk and gtk-demo except "big windows" now seem to work pretty well. Bug #79720 should be fixed now. * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string, gdk_win32_print_paletteentries, gdk_win32_print_system_palette, gdk_win32_print_hpalette) * gdk/win32/gdkdrawable-win32.c (gdk_win32_drawable_description) * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): Move all debugging helper functions to gdkmain-win32.c. * gdk/win32/gdkdrawable-win32.c (_gdk_win32_draw_tiles): Rewrite. Make static. Must take tile origin parameters, too. (gdk_win32_draw_rectangle): Pass the tile/stipple origin to _gdk_win32_draw_tiles(). Remove #if 0 code. (blit_inside_window): Don't call ScrollDC(), that didn't work at all like I thought. A simple call to BitBlt() is enough. * gdk/win32/gdkevents-win32.c (gdk_event_translate) Remove unused latin_locale_loaded variable. (_gdk_win32_get_next_tick): New function. Used to make sure timestamps of events are always increasing, both in events generated from the window procedure and in events gotten via PeekMessage(). Not sure whether this is actually useful, but it seemed as a good idea. (real_window_procedure): Don't use a local GdkEventPrivate variable. Don't attempt any compression of configure or expose events here, handled elsewhere. (erase_background): Accumulate window offsets when traversing up the parent chain for GDK_PARENT_RELATIVE_BG, in order to get correct alignment of background pixmaps. Don't fill with BLACK_BRUSH if GDK_NO_BG. (gdk_event_get_graphics_expose): A bit more verbose debugging output. (gdk_event_translate): Use _gdk_win32_get_next_tick(). In the WM_PAINT handler, don't check for empty update rect. When we get a WM_PAINT, the update region isn't empty. And if it for some strange reason is, that will be handled later anyway. Call GetUpdateRgn() before calling BeginPaint() and EndPaint() (which empty the update region). * gdk/win32/gdkdnd-win32.c * gdk/win32/gdkinput-win32.c: Use _gdk_win32_get_next_tick(). * gdk/win32/gdkfont-win32.c: Use %p to print HFONTs. (gdk_text_size): Remove, unused. * gdk/win32/gdkgc-win32.c: Set clip origins to zero when appropriate. (gdk_gc_copy): Increase refcount on colormap if present. (gdk_win32_hdc_get): Handle just hcliprgn. If we have a stipple, combine it with clip region after selecting into the DC. (_gdk_win32_bitmap_to_hrgn): Rename from _gdk_win32_bitmap_to_region. (_gdk_win3_gdkregion_to_hrgn): New function, code snippet extracted from gdk_win32_hdc_get(). * gdk/win32/gdkgeometry-win32.c: Ifdef out the translate_queue handling. (gdk_window_copy_area_scroll): Increase clipRect to avoid ScrollWindowEx() not scrolling pixels it thinks are invalid. Scroll also children with the ScrollWindowEx() call. No need to call gdk_window_move() on the children. (gdk_window_scroll): Don't do guffaw scrolling. (gdk_window_compute_position): Fix typo, used win32_y where x was intended. (gdk_window_premove, gdk_window_postmove, gdk_window_clip_changed): Add debugging output. (_gdk_windowing_window_queue_antiexpose): Just call ValidateRgn() on the region. (_gdk_window_process_expose): No use for the serial number parameter now. Instead of a rectangle, take a region parameter, as Windows gives us one in WM_PAINT. * gdk/win32/gdkmain-win32.c (_gdk_win32_lbstyle_to_string, _gdk_win32_pstype_to_string, _gdk_win32_psstyle_to_string, _gdk_win32_psendcap_to_string, _gdk_win32_psjoin_to_string, _gdk_win32_rect_to_string, _gdk_win32_gdkrectangle_to_string, _gdk_win32_gdkregion_to_string): New debugging functions. (static_printf): Helper function for the above. sprintfs into a static circular buffer, return value should be used "soon". * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Plug memory leak, free list after use. (gdk_window_gravity_works): Remove, we know that there is no such thing on Windows. (gdk_window_set_static_bit_gravity, gdk_window_set_static_win_gravity): Ditto, remove, they didn't do anything anyway. (_gdk_windowing_window_init, gdk_window_foreign_new): Call _gdk_window_init_position() like in the X11 backend. (gdk_window_reparent): Don't call the now nonexistent gdk_window_set_static_win_gravity(). No idea what should be done instead. (gdk_window_get_geometry): The returned x and y should be relative to parent. Used to be always zero.. (gdk_window_set_static_gravities): Return FALSE if trying to set static gravity. * gdk/win32/gdkprivate-win32.h: Drop the clip_region field from GdkGCWin32. Only use the HRGN hcliprgn. Declare new functions. * gdk/win32/*.c: Use new debugging functions. * gdk/win32/rc/gdk.rc.in: Update copyright year.
* Fix a typo which broke moveresize emulation.Matthias Clasen2002-11-101-1/+1
| | | | | * gdk/x11/gdkwindow-x11.c (_gdk_moveresize_handle_event): Fix a typo which broke moveresize emulation.
* Reformulate doc comments to work around gtk-doc limitations.Matthias Clasen2002-11-082-3/+3
| | | | | | | * gdk/x11/gdkfont-x11.c (gdk_text_extents_wc): (gdk_text_extents): * gdk/gdkfont.c (gdk_string_extents): Reformulate doc comments to work around gtk-doc limitations.
* Add in a awful hack to force gdkenumtypes.h to be updated before buildingOwen Taylor2002-11-083-0/+33
| | | | | | | | Fri Nov 8 18:04:16 2002 Owen Taylor <otaylor@redhat.com> * gdk/{linux-fb,win32,11}/Makefile.am: Add in a awful hack to force gdkenumtypes.h to be updated before building the subdir. (#86587)
* Use g_get_application_name() instead of g_get_prgname() as the defaultOwen Taylor2002-11-083-20/+68
| | | | | | | | | | | | | | | | | Fri Nov 8 17:08:54 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use g_get_application_name() instead of g_get_prgname() as the default window title when set. * gdk/x11/gdkwindow-x11.c gdk/x11/gdkdisplay-x11.[ch]:x Set g_get_application_name() as the title for the leader window the first time we create a window pointing to it. * tests/testgtk.c (main): Call g_set_application_name(); * configure.in (GDK_PIXBUF_VERSION): Require GLib-2.1.3
* docs/reference/gdk/tmpl/dnd.sgml docs/reference/gdk/tmpl/drawing.sgmlSoeren Sandmann2002-11-0811-39/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Nov 8 20:14:52 2002 Soeren Sandmann <sandmann@daimi.au.dk> * docs/reference/gdk/tmpl/dnd.sgml docs/reference/gdk/tmpl/drawing.sgml docs/reference/gdk/tmpl/gdk-unused.sgml docs/reference/gdk/tmpl/gdkdisplay.sgml docs/reference/gdk/tmpl/general.sgml docs/reference/gdk/tmpl/input_devices.sgml docs/reference/gdk/tmpl/selections.sgml docs/reference/gtk/tmpl/gtkcellrenderer.sgml docs/reference/gtk/tmpl/gtkcurve.sgml docs/reference/gtk/tmpl/gtkdnd.sgml docs/reference/gtk/tmpl/gtkitemfactory.sgml docs/reference/gtk/tmpl/gtkmenu.sgml docs/reference/gtk/tmpl/gtkoldeditable.sgml docs/reference/gtk/tmpl/gtkoptionmenu.sgml docs/reference/gtk/tmpl/gtkpreview.sgml docs/reference/gtk/tmpl/gtkselection.sgml docs/reference/gtk/tmpl/gtksocket.sgml docs/reference/gtk/tmpl/gtkstyle.sgml docs/reference/gtk/tmpl/gtktextbuffer.sgml docs/reference/gtk/tmpl/gtktreemodel.sgml docs/reference/gtk/tmpl/gtkwidget.sgml gdk/gdk.h gdk/gdkdisplay.c gdk/gdkdisplay.h gdk/gdkdnd.h gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkinput.h gdk/gdkselection.h gdk/x11/gdkdisplay-x11.c gdk/x11/gdkdnd-x11.c gdk/x11/gdkselection-x11.c gtk/gtkcurve.h gtk/gtkdnd.h gtk/gtkitemfactory.c gtk/gtkitemfactory.h gtk/gtkmenu.h gtk/gtkoldeditable.c gtk/gtkoldeditable.h gtk/gtkoptionmenu.h gtk/gtkplug.c gtk/gtkplug.h gtk/gtkpreview.h gtk/gtkrange.h gtk/gtkselection.c gtk/gtkselection.h gtk/gtksocket.c gtk/gtksocket.h gtk/gtkstyle.c gtk/gtkstyle.h gtk/gtktextlayout.c gtk/gtktextlayout.h gtk/gtktreemodel.c gtk/gtktreemodel.h gtk/gtkwidget.h Trivial s/foo/foo_/ fixes to make gtk.h includable with -Wshadow without warnings. (#91680)
* fix compilationEric Warmenhoven2002-11-082-2/+10
| | | | | | | | Thu Nov 7 16:13:41 2002 Eric Warmenhoven <eric@warmenhoven.org> * gdk/linux-fb/gdkscreen-fb.c: fix compilation * gdk/linux-fb/gdkmain-fb.c: prevent segfaults on shutdown
* Don't try to use render if we can't get a picture for the drawable. (FixesOwen Taylor2002-11-071-1/+2
| | | | | | | | | | | | | | Thu Nov 7 17:18:06 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Don't try to use render if we can't get a picture for the drawable. (Fixes #97220, reported by Jamie Zawinski) * gtk/gtkimage.c: Force requisition calculation when we get a expose prior to size_request(). (#91711, reported by Sven Neumann, debugging help from Matthias Clasen, Soeren Sandmann)
* Fix misplaced display_grab()/display_ungrab(); they shouldn't have beenOwen Taylor2002-11-071-3/+3
| | | | | | | Thu Nov 7 16:45:54 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkx.h: Fix misplaced display_grab()/display_ungrab(); they shouldn't have been deprecated.
* Use g_return_val_if_fail in this non-void function. (gdk_init_check):Matthias Clasen2002-11-071-3/+1
| | | | | | * gdk/gdk.c (gdk_display_open_default_libgtk_only): Use g_return_val_if_fail in this non-void function. (gdk_init_check): Remove unused variable.
* Add startup notification hooks - mostly based on patch by Havoc PenningtonOwen Taylor2002-11-026-10/+210
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sat Nov 2 00:22:33 2002 Owen Taylor <otaylor@redhat.com> Add startup notification hooks - mostly based on patch by Havoc Pennington in #96772. * gdk/gdk.h gdk/x11/gdkdisplay-x11.c gdk/{win32,linux-fb}/gdkmain-*.c: (gdk_notify_startup_complete): new function that indicates an application has finished starting up. * gdk/x11/gdkmain-x11.c gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display): store value of DESKTOP_STARTUP_ID on the default screen, and clear it from the environment. * gdk/x11/gdkdisplay-x11.c: Set _NET_STARTUP_ID hint on display's group leader window. * gtk/gtkwindow.c (gtk_window_set_auto_startup_notification): function to toggle whether we automatically broadcast that we've started up, after mapping the first toplevel window. (gtk_window_map): call gdk_screen_notify_startup_complete() by default, unless enabled by above. * gtk/gtkmain.c gtk/gtkcombo.c gtk/gtktoolbar.c: Couple of warning fixes.
* More doc comments moved inline.Matthias Clasen2002-11-014-16/+414
|
* Add a --screen option for setting the default screen. (Based on a patchOwen Taylor2002-10-3110-31/+122
| | | | | | | | | | | | | | | | | | | | | | Thu Oct 31 12:40:39 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdk.[ch] gdk/gdkglobals.c gdk/gdkinternals.h gdk/{x11,win32,linux-fb}/gdkscreen-{x11,win32,linux-fb}.c: Add a --screen option for setting the default screen. (Based on a patch from Balamurali Viswanathan, #81145) * gdk/gdk.c gdkdisplay.h gtk/gtkmain.c: Add gdk_display_open_default_libgtk_only(), so gtk_init_check() and gdk_init_check() can share the same behavior w.r.t. --screen. * gdk/gdk.[ch]: Make gdk_get_display_arg_name() G_CONST_RETURN. * gdk/x11/gdkselection-x11.c (gdk_selection_property_get): Suppress a spurious warning. * tests/testgtkrc: Remove someleft-over commented out includes that could be confusing.
* doc comment fixes.Matthias Clasen2002-10-293-23/+21
|
* Don't call GetWindowLong for GWL_EXSTYLE, the extended window style wasn'tTor Lillqvist2002-10-281-19/+31
| | | | | | | | | | | | 2002-10-28 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkwindow-win32.c (gdk_window_set_decorations, gdk_window_set_functions): Don't call GetWindowLong for GWL_EXSTYLE, the extended window style wasn't used or changed. After setting the window style with SetWindowLong, call SetWindowPos with the SWP_FRAMECHANGED flag for the window to actually be updated, as Platform SDK docs say one should. (#95812, huzheng)
* Fix doc comment.Matthias Clasen2002-10-253-47/+8
| | | | | | * gdk/x11/gdkcursor-x11.c: Fix doc comment. * gdk/gdkdnd.c: Add missing includes.
* More API docs moved inline.Matthias Clasen2002-10-243-7/+189
|
* Documentation updates.Matthias Clasen2002-10-232-32/+250
|
* Remove redundant doc comments.Matthias Clasen2002-10-236-235/+0
|
* Gdk API doc updates.Matthias Clasen2002-10-2216-7/+213
|
* Produce C-m, not C-j for return. Handle Escape.Owen Taylor2002-10-221-1/+6
| | | | | | | Fri Oct 18 16:47:02 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkevents-x11.c (translate_key_event): Produce C-m, not C-j for return. Handle Escape.
* Handle Return and KP_Enter.Owen Taylor2002-10-181-0/+6
| | | | | | | Fri Oct 18 16:47:02 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkevents-x11.c (translate_key_event): Handle Return and KP_Enter.
* Fix use of uninitialized variable.Owen Taylor2002-10-182-133/+216
| | | | | | | | | | | | | | | | | | | | | | | | | Thu Oct 17 17:17:05 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkcheckbutton.c (gtk_check_button_size_request): Fix use of uninitialized variable. Thu Oct 17 14:38:37 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): Align the baseline of the accelerator label with the first baseline of the main label of the menu item. (#76593) Wed Oct 16 18:25:24 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkevents-x11.c (translate_key_event): Use gdk_keymap_translate_keyboard_state() rather than XLookupString() to get the keysymbol, since XLookupString can confuse the input method handling. (#93575) * gdk/x11/gdkkeys-x11.c: Rewrite the handling of key translation for the non-XKB case to properly handle Shift_Lock, Caps_Lock, Num_Lock according to the Xlib spec. (#67066)
* add g_return_if_fail for monitor number <= 0Havoc Pennington2002-10-172-8/+63
| | | | | | | | | | | | | | | | | | | | | | | | | 2002-10-16 Havoc Pennington <hp@redhat.com> * gdk/x11/gdkscreen-x11.c (gdk_screen_get_monitor_geometry): add g_return_if_fail for monitor number <= 0 * gtk/gtkmenu.c (gtk_menu_position): handle case where pointer is outside the screen. * gtk/gtkwindow.c (get_monitor_center): factor out the code to position a window in center (gtk_window_compute_configure_request): use here (gtk_window_constrain_position): use here, the code here wasn't multihead-aware * gdk/x11/gdkevents-x11.c (get_real_window): function to return the window the event describes, rather than the window that received the event. (gdk_event_translate): use result of that function for filling in GdkEvent::window, which only matters for MapNotify/UnmapNotify and ConfigureNotify, in practice. Unbreaks various things using SubstructureNotifyMask.
* Fix from Phil Blundell for compiling without Xkb. (#95909)Owen Taylor2002-10-161-0/+3
| | | | | | | Wed Oct 16 15:19:44 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkkeys-x11.c: Fix from Phil Blundell for compiling without Xkb. (#95909)
* Make 'filled' arguments for draw_arc/polygon/rectangle gboolean not gint.Owen Taylor2002-10-168-46/+46
| | | | | | | | | | | Wed Oct 16 14:32:43 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkpixmap.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c gdk/win32/gdkdrawable-win32.c gdk/linux-fb/gdkdrawable-fb2.c gdk/linux-fb/gdkprivate-fb.h: Make 'filled' arguments for draw_arc/polygon/rectangle gboolean not gint. (#94976)
* Documentation fixes.Soeren Sandmann2002-10-131-7/+6
| | | | | | | | | | | | | | | | | Sun Oct 13 18:50:14 2002 Soeren Sandmann <sandmann@daimi.au.dk> * gtkmenu.c, gtkmenu.sgml, gtkitemfactory.c, gdkwindow.c, gtkwindow.c, gtkpaned.sgml, gtkdialog.c, gtkbox.h, gtkbutton.sgml, gtktreemodel.sgml,gtktable.sgml, gtktable.c: Documentation fixes. #85719, #90759, #95169, Owen Taylor; #89221, Yao Zhang, Matthias Clasen; #95592, Joost Faassen; #92637, Vitaly Tishkov; #94616, Ben Martin; #94772, sbaillie@bigpond.net.au;
* Lots of trivial doc fixes.Matthias Clasen2002-10-111-1/+1
|
* Documentation updates.Matthias Clasen2002-10-112-1/+2
|
* Move out of HAVE_XKB. (#95129, Phil Blundell)Owen Taylor2002-10-081-2/+2
| | | | | | | Mon Oct 7 19:44:45 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkkeys-x11.c (_gdk_keymap_keys_changed): Move out of HAVE_XKB. (#95129, Phil Blundell)
* fix compilationEric Warmenhoven2002-10-082-3/+18
| | | | | | | | Mon Oct 7 19:14:24 2002 Eric Warmenhoven <eric@warmenhoven.org> * gdk/linux-fb/gdkwindow-fb.c: fix compilation * gdk/linux-fb/gdkmain-fb.c: better display mode setting
* New file. Move gdk_drag_find_window(), gdk_drag_get_protocol() here.Owen Taylor2002-10-071-0/+48
| | | | | | | | Mon Oct 7 15:48:44 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkdnd.c Makefile.am gdk/x11/gdkdnd-x11.c gdk/fb/gdkdnd-fb.c gdk/win32/gdkdnd-win32.c: New file. Move gdk_drag_find_window(), gdk_drag_get_protocol() here.
* Add gdk_drag_find_window_for_screen(), so that we can interpret x_root /Owen Taylor2002-10-076-46/+77
| | | | | | | | | | | | | | | | | | | | Mon Oct 7 15:48:44 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkdnd.[ch] gdk/x11/gdkdnd-x11.c: Add gdk_drag_find_window_for_screen(), so that we can interpret x_root / y_root relative to the correct screen. * gdk/gdkdnd.c Makefile.am gdk/x11/gdkdnd-x11.c gdk/fb/gdkdnd-fb.c gdk/win32/gdkdnd-win32.c: New file. Move gdk_drag_find_window(), gdk_drag_get_protocol() here. * gtk/gtkdnd.c: Handle drags between screens; use a fallback icon for icons set as windows/pixmaps, move the drag icon between displays for icons set as pixbufs. * gdk/x11/gdkkeys-x11.c (update_keymaps): Fix infinite loop from last change.