summaryrefslogtreecommitdiff
path: root/gdk
Commit message (Collapse)AuthorAgeFilesLines
* Make the gdk_key array const (#166075, Tommi Komulainen)Matthias Clasen2005-02-031-1/+1
| | | | | | | 2005-02-03 Matthias Clasen <mclasen@redhat.com> * gdk/gdkkeynames.c: Make the gdk_key array const (#166075, Tommi Komulainen)
* Implement lazy extended input initialization on Win32, by Robert Ögren.Tor Lillqvist2005-02-023-6/+30
| | | | | | | | | | | | | | | | | | | | | | | 2005-02-02 Tor Lillqvist <tml@novell.com> Implement lazy extended input initialization on Win32, by Robert Ögren. Fixes #163163, possibly #162334. Lazy initialization would be a good idea in any case even if it didn't fix any visible problems, though. The Wacom tablet driver seems to get confused if Wintab is initialized but no window is shown before the process exits. This is the case for some GIMP plug-ins, for instance. * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Made non-static (and renamed). (_gdk_input_init): Don't call _gdk_input_wintab_init_check(). * gdk/win32/gdkinput-win32.h: Declare _gdk_input_wintab_init_check(). * gdk/win32/gdkinput.c (gdk_devices_list, gdk_display_list_devices, gdk_input_set_extension_events): Call _gdk_input_wintab_init_check() here instead.
* Use a FIFO list for storing GdkSelProp of a single window so thatIvan, Wong Yat Cheung2005-02-021-11/+13
| | | | | | | | 2005-02-02 Ivan, Wong Yat Cheung <email@ivanwong.info> * gdk/win32/gdkselection.c: Use a FIFO list for storing GdkSelProp of a single window so that gtk_clipboard_request_contents() can be called inside a GtkClipboardReceivedFunc(). (#163844)
* Fix many instances of "the the" in docs and comments. (#165815, MasaoMatthias Clasen2005-02-016-7/+7
| | | | | | | 2005-02-01 Matthias Clasen <mclasen@redhat.com> * */*.c: Fix many instances of "the the" in docs and comments. (#165815, Masao Mutoh)
* New functions, code blocks refactored out of update_keymap(). NoTor Lillqvist2005-02-012-246/+333
| | | | | | | | | | | | | | | | | | | 2005-02-01 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkkeys-win32.c (handle_special, set_shift_vks, reset_after_dead, handle_dead): New functions, code blocks refactored out of update_keymap(). No functionality change. (update_keymap): Use ToUnicodeEx() when available (on NT-based Windows) instead of ToAsciiEx(). Makes keyboard input work in Unicode-only input locales that don't have any ANSI codepage, for instance Hindi and Bengali. Use _gdk_input_codepage only on Win9x. (#165723) * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_INPUTLANGCHANGE, use GetLocaleInfo() instead of TranslateCharsetInfo() to get the input locale's corresponding codepage, if any.
* Fix docs. (#165163, Jeff Franks)Matthias Clasen2005-01-251-1/+1
| | | | | | | 2005-01-25 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): Fix docs. (#165163, Jeff Franks)
* Initialize user_time from DESKTOP_STARTUP_ID. (#165131, Elijah Newren)Matthias Clasen2005-01-251-0/+21
| | | | | | | | 2005-01-24 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display): Initialize user_time from DESKTOP_STARTUP_ID. (#165131, Elijah Newren)
* Remove the accidentally added prototype for this unimplemented function.Matthias Clasen2005-01-231-5/+0
| | | | | | | | 2005-01-22 Matthias Clasen <mclasen@redhat.com> * gdk/gdkdisplay.h (gdk_display_add_client_message_filter_full): Remove the accidentally added prototype for this unimplemented function. (#164893, Jeff Franks)
* Merged from HEAD:Tor Lillqvist2005-01-233-101/+192
| | | | | | | | | | | | | | | | | | | | | 2005-01-23 Tor Lillqvist <tml@novell.com> Merged from HEAD: Fix for #162790, by Iwan Wong: * gdk/win32/gdkdrawable-win32.c: Implement dashed lines correctly. Simplify the interface to render_line_horizontal() and render_line_vertical(). Need to draw lines "manually" also on NT-based Windowses if we have a dash offset or are drawing double-dashed lines. * gdk/win32/gdkprivate-win32.h: Keep also the dash offset, double-dash flag, and a brush for the background colour (used by the odd dashes in the double-dash line style) in the GdkGCWin32 struct. * gdk/win32/gdkgc-win32.c: Set up above new fields.
* Fix for #163702, from Ivan Wong:Tor Lillqvist2005-01-234-32/+21
| | | | | | | | | | | | | | | | * gdk/win32/gdkprivate-win32.h * gdk/win32/gdkglobals-win32.c: New flag _ignore_destroy_clipboard. * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle WM_DESTROYCLIPBOARD. Unless _ignore_destroy_clipboard, generate a GDK_SELECTION_CLEAR event. * gdk/win32/gdkselection-win32.c (gdk_selection_owner_set_for_display): Set _ignore_destroy_clipboard when emptying the clipboard ourselves. (gdk_selection_send_notify_for_display): Remove the artifical GDK_SELECTION_CLEAR event generation.
* Handle Greek tonos dead accent key. (#164859, reported and fix verified byTor Lillqvist2005-01-231-3/+9
| | | | | | | | | | | | 2005-01-23 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkkeys-win32.c (update_keymap): Handle Greek tonos dead accent key. (#164859, reported and fix verified by Daniel Atallah.) * gtk/gtkimcontextsimple.c (gtk_compose_seqs): Handle GDK_Greek_accentdieresis (tonos and dialytika) combining with iota and upsilon.
* Call GDK_DISPLAY_XDISPLAY with a display, not a window. Clean up theManish Singh2005-01-201-14/+17
| | | | | | | | Wed Jan 19 18:57:02 2005 Manish Singh <yosh@gimp.org> * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call GDK_DISPLAY_XDISPLAY with a display, not a window. Clean up the function a bit too.
* Squash strict aliasing warning in _NET_VIRTUAL_ROOTS code.Manish Singh2005-01-201-3/+7
| | | | | | | Wed Jan 19 17:17:31 2005 Manish Singh <yosh@gimp.org> * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Squash strict aliasing warning in _NET_VIRTUAL_ROOTS code.
* Handle keyboards with ShiftLock (and not CapsLock) correctly. (#161814)Tor Lillqvist2005-01-191-26/+81
| | | | | | | | 2005-01-19 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkkeys-win32.c (update_keymap, gdk_keymap_translate_keyboard_state): Handle keyboards with ShiftLock (and not CapsLock) correctly. (#161814)
* Precache the _NET_VIRTUAL_ROOTS atom.Matthias Clasen2005-01-192-12/+49
| | | | | | | | | | 2005-01-19 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkdisplay-x11.c: Precache the _NET_VIRTUAL_ROOTS atom. * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Support _NET_VIRTUAL_ROOTS. (#163910, Carsten Haitzler)
* disambiguate nested if/else.Manish Singh2005-01-181-15/+17
| | | | | | | Tue Jan 18 13:46:46 2005 Manish Singh <yosh@gimp.org> * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids): disambiguate nested if/else.
* Avoid X errors when running against servers which implement XRender < 0.4.Matthias Clasen2005-01-184-3/+37
| | | | | | | | | | | | | | | | | | 2005-01-18 Matthias Clasen <mclasen@redhat.com> Avoid X errors when running against servers which implement XRender < 0.4. (#164427, Albert Chin) * gdk/x11/gdkprivate-x11.h: * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids): New function to check for trapezoid support in XRender. (gdk_x11_draw_trapezoids, _gdk_x11_drawable_draw_xtrapezoids): Use it here. * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a separate have_render_with_trapezoids field. * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize it.
* Add an OS_LINUX conditional.Matthias Clasen2005-01-131-1/+1
| | | | | | | | | | | 2005-01-13 Matthias Clasen <mclasen@redhat.com> * configure.in: Add an OS_LINUX conditional. * gdk/Makefile.am (TESTS): * gdk-pixbuf/Makefile.am (TESTS): * gtk/Makefile.am (TESTS): Only run abicheck on Linux. (#163917, Roger Leigh)
* Set current cursor also when changing the cursor of a window that is theTor Lillqvist2005-01-091-4/+25
| | | | | | | | | 2005-01-09 Tor Lillqvist <tlillqvist@novell.com> * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Set current cursor also when changing the cursor of a window that is the first ancestor of the window containing the pointer that has a cursor defined. (#163035, Ivan Wong)
* Fix braino. (#163232, Arnaud Charlet)Tor Lillqvist2005-01-071-1/+1
| | | | | | | 2005-01-07 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkselection-win32.c (_gdk_selection_property_store): Fix braino. (#163232, Arnaud Charlet)
* Update the user time when receiving a WM_DELETE message. (#162980, ElijahMatthias Clasen2005-01-051-0/+2
| | | | | | | | 2005-01-05 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Update the user time when receiving a WM_DELETE message. (#162980, Elijah Newren)
* Set x_root and y_root in button and motion events from extended inputMatthias Clasen2004-12-281-0/+4
| | | | | | | | 2004-12-27 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): Set x_root and y_root in button and motion events from extended input devices. (#148715, Robert Ögren)
* Add sensitivity-changing timeout. Written by Christian Persch.Søren Sandmann2004-12-222-25/+22
| | | | | | | | | | | | | | | | | Wed Dec 22 14:22:19 2004 Søren Sandmann <sandmann@redhat.com> * tests/testtoolbar.c (timeout_cb): Add sensitivity-changing timeout. Written by Christian Persch. Wed Dec 22 14:14:02 2004 Søren Sandmann <sandmann@redhat.com> Bug #161561 * gdk/x11/gdkwindow-x11.c (tmp_{re,un}set_bg): Only set/reset the background for windows that get expose events. * gdk/gdkwindow.c (gdk_window_process_updates_internal): Remove hack to repaint !expose windows.
* Use wide character API when available. Use UTF-8 for filenames.Tor Lillqvist2004-12-192-71/+97
| | | | | | | | | | | 2004-12-19 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkdnd-win32.c (resolve_link, gdk_dropfiles_filter): Use wide character API when available. Use UTF-8 for filenames. * gdk/win32/gdkselection-win32.c (_gdk_dropfiles_store): Include the string's trailing zero byte in the property's length, just for safety.
* Indentation fix. Won't bother with a ChangeLog entry.Tor Lillqvist2004-12-151-11/+11
|
* 2.5.6GTK_2_5_6Matthias Clasen2004-12-031-5/+5
|
* gdk-pixbuf/Makefile.am (gdk_pixbuf.def) gdk/Makefile.am (gdk.def) WorkTor Lillqvist2004-12-031-1/+1
| | | | | | | | | | 2004-12-03 Tor Lillqvist <tml@iki.fi> * gdk-pixbuf/Makefile.am (gdk_pixbuf.def) * gdk/Makefile.am (gdk.def) * gtk/Makefile.am (gtk.def): Work around gcc misfeature. At least gcc 3.3.1 doesn't like to do -E on files that it thinks aren't source files. Use redirection and '-' instead.
* Make sure we always return a value. Return None in the fallthrough case.Manish Singh2004-12-021-0/+2
| | | | | | | Thu Dec 2 13:18:34 2004 Manish Singh <yosh@gimp.org> * gdk/x11/gdkgc-x11.c (make_fg_tile_picture): Make sure we always return a value. Return None in the fallthrough case.
* remove the disputable memset at the end of gdk_pixmap_new() - on X11 theHans Breuer2004-11-301-2/+0
| | | | | | | | | | | 2004-11-30 Hans Breuer <hans@breuer.org> * gdk/win32/gdkpixmap-win32.c : remove the disputable memset at the end of gdk_pixmap_new() - on X11 the bits are not initialized either - fixes bug #145107 * gtk/gtkfilesystemwin32.c : add an idle handler to emit "volumes-changed" when drives are plugged in or removed. Fixes bug #137815
* gdk/x11/gdkdrawable-x11.c (_gdk_x11_drawable_draw_xtrapezoids) CallOwen Taylor2004-11-301-8/+4
| | | | | | | | | | | | Tue Nov 30 09:46:49 2004 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkdrawable-x11.c (_gdk_x11_drawable_draw_xtrapezoids) * gdk/x11/gdkdrawable-x11.c (_gdk_x11_drawable_draw_xft_glyphs): Call gdk_x11_drawable_update_xft_clip (part of #159929, James Henstridge) * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs_transformed): Remove unused variables.
* A little bit of microoptimization of repeated GDK_GC_XDISPLAY()/XGC().Owen Taylor2004-11-301-4/+6
| | | | | | | Tue Nov 23 19:37:34 2004 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): A little bit of microoptimization of repeated GDK_GC_XDISPLAY()/XGC().
* Determine the direction of XKB groups from their content, not by lookingMatthias Clasen2004-11-291-38/+149
| | | | | | | | | | | | | | | 2004-11-29 Matthias Clasen <mclasen@redhat.com> Determine the direction of XKB groups from their content, not by looking for hardcoded keymap names. (#116626, patch by Behdad Esfahbod, based on an earlier patch by Ilya Konstantinov) * gdk/x11/gdkkeys-x11.c (struct _GdkKeymapX11): Cache directions for XKB groups. (get_direction): Determine direction of group by looking at directions of keysyms. (update_direction): Maintain the cache of group directions. (gdk_keymap_get_direction): Use update_direction().
* Add dead_hook and dead_horn.Matthias Clasen2004-11-292-0/+4
| | | | | | | | | 2004-11-29 Matthias Clasen <mclasen@redhat.com> * gdk/gdkkeynames.c: Add dead_hook and dead_horn. * gdk/gdkkeysyms.h (GDK_dead_hook, GDK_dead_horn): Define these keysyms. (#159739, Samuel Thibault)
* Use the perl found by configure. (#149826, Morten Welinder)Matthias Clasen2004-11-291-2/+2
| | | | | | | | 2004-11-29 Matthias Clasen <mclasen@redhat.com> * gtk/Makefile.am (gtkalias.h): * gdk/Makefile.am (gdkalias.h): Use the perl found by configure. (#149826, Morten Welinder)
* Mark as const.Matthias Clasen2004-11-2812-68/+73
| | | | | | | | | | | | | | | | | | | 2004-11-28 Matthias Clasen <mclasen@redhat.com> * gdk/gdkvisual.h (gdk_visual_get_type): * gdk/gdkscreen.h (gdk_screen_get_type): * gdk/gdkinput.h (gdk_device_get_type): * gdk/gdk.h (gdk_rectangle_get_type): * gdk/gdkfont.h (gdk_font_get_type): * gdk/gdkevents.h (gdk_event_get_type): * gdk/gdkdrawable.h (gdk_drawable_get_type): * gdk/gdkdisplay.h (gdk_display_get_type): * gdk/gdkcursor.h (gdk_cursor_get_type): * gdk/gdkcolor.h (gdk_color_get_type): Mark as const. * gdk/gdk.symbols: * gdk/Makefile.am (stamp-gdkenumtypes.h): Mark get_type() functions generated by glib-mkenums as const.
* Don't crash if Xlib fails to return UTF-8. (#159373, Kristian Høgsberg)Matthias Clasen2004-11-261-2/+8
| | | | | | | 2004-11-26 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkselection-x11.c (gdk_text_property_to_utf8_list_for_display): Don't crash if Xlib fails to return UTF-8. (#159373, Kristian Høgsberg)
* gdk/abicheck.sh filter out G_GNUC stuff when doing the compare.Manish Singh2004-11-251-1/+1
| | | | | | | | | | Thu Nov 25 14:32:35 2004 Manish Singh <yosh@gimp.org> * gdk/abicheck.sh * gtk/abicheck.sh: filter out G_GNUC stuff when doing the compare. * gtk/gtkmenuitem.c (gtk_menu_shell_button_release): add GTK_MENU_ITEM() cast.
* Mark as const.Matthias Clasen2004-11-233-24/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-11-23 Matthias Clasen <mclasen@redhat.com> * gtk/gtkuimanager.h (gtk_ui_manager_get_type): * gtk/gtktreeview.h (gtk_tree_view_get_type): * gtk/gtktreeviewcolumn.h (gtk_tree_view_column_get_type): * gtk/gtktreestore.h (gtk_tree_store_get_type): * gtk/gtktreeselection.h (gtk_tree_selection_get_type): * gtk/gtktreemodelfilter.h (gtk_tree_model_filter_get_type): * gtk/gtktreemodel.h (gtk_tree_iter_get_type): (gtk_tree_path_get_type): (gtk_tree_row_reference_get_type): * gtk/gtktoolitem.h (gtk_tool_item_get_type): * gtk/gtktoolbutton.h (gtk_tool_button_get_type): * gtk/gtktoggleaction.h (gtk_toggle_action_get_type): * gtk/gtkthemes.h (gtk_theme_engine_get_type): * gtk/gtktextiter.h (gtk_text_iter_get_type): * gtk/gtksettings.h (gtk_settings_get_type): * gtk/gtkselection.h (gtk_selection_data_get_type): * gtk/gtkradioaction.h (gtk_radio_action_get_type): * gtk/gtkmenutoolbutton.h (gtk_menu_tool_button_get_type): * gtk/gtkliststore.h (gtk_list_store_get_type): * gtk/gtkiconview.h (gtk_icon_view_get_type): * gtk/gtkicontheme.h (gtk_icon_info_get_type): * gtk/gtkiconfactory.h (gtk_icon_factory_get_type): (gtk_icon_set_get_type): (gtk_icon_source_get_type): * gtk/gtkfilesystemwin32.h (gtk_file_system_win32_get_type): * gtk/gtkfilesystemunix.h (gtk_file_system_unix_get_type): * gtk/gtkfilesystem.h (gtk_file_folder_get_type): (gtk_file_info_get_type, gtk_file_path_get_type): (gtk_file_system_get_type): * gtk/gtkfilefilter.h (gtk_file_filter_get_type): * gtk/gtkfilechooserwidget.h (gtk_file_chooser_widget_get_type): * gtk/gtkfilechooser.h (gtk_file_chooser_get_type): * gtk/gtkfilechooserdialog.h (gtk_file_chooser_dialog_get_type): * gtk/gtkexpander.h (gtk_expander_get_type): * gtk/gtkentrycompletion.h (gtk_entry_completion_get_type): * gtk/gtkcombobox.h (gtk_combo_box_get_type): * gtk/gtkcomboboxentry.h (gtk_combo_box_entry_get_type): * gtk/gtkclipboard.h (gtk_clipboard_get_type): * gtk/gtkcellview.h (gtk_cell_view_get_type): * gtk/gtkcellrenderertoggle.h (gtk_cell_renderer_toggle_get_type): * gtk/gtkcellrenderertext.h (gtk_cell_renderer_text_get_type): * gtk/gtkcellrendererprogress.h (gtk_cell_renderer_progress_get_type): * gtk/gtkcellrendererpixbuf.h (gtk_cell_renderer_pixbuf_get_type): * gtk/gtkcellrenderercombo.h (gtk_cell_renderer_combo_get_type): * gtk/gtkcelllayout.h (gtk_cell_layout_get_type): * gtk/gtkactiongroup.h (gtk_action_group_get_type): * gtk/gtkaction.h (gtk_action_get_type): * gtk/gtkaccessible.h (gtk_accessible_get_type): * gtk/gtkaccelmap.h (gtk_accel_map_get_type): * gtk/gtkaccelgroup.h (gtk_accel_group_get_type): * gtk/gtkmessagedialog.h (gtk_message_dialog_get_type): Mark as const. * gtk/gtkicontheme.h: Don't mark gtk_icon_theme_error_quark() as const, to be consistent with all the other error_quark functions. (technically they are const, but since these are called only in error paths, giving the compiler better optimization opportunities doesn't matter much) * gtk/gtk.symbols: * gdk/gdk.symbols: Add attribute annotations. * gtk/makegtkalias.pl: * gdk/makegdkalias.pl: Keep attribute annotations, but strip PRIVATE. * gtk/Makefile.am (gtk.def): * gdk/Makefile.am (gdk.def): Strip attribute annotations, but keep PRIVATE.
* Handle scroll events. (#159098, Felipe Heidrich)Matthias Clasen2004-11-231-0/+4
| | | | | | | 2004-11-22 Matthias Clasen <mclasen@redhat.com> * gdk/gdkevents.c (gdk_event_get_root_coords): Handle scroll events. (#159098, Felipe Heidrich)
* updatedHans Breuer2004-11-213-3/+99
| | | | | | | | | | | | 2004-11-21 Hans Breuer <hans@breuer.org> * gdk/makefile.msc.in gtk/stock-icons/makefile.msc gtk/makefile.msc.in demos/gtk-demo/makefile.msc.in : updated * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_draw_glyphs_transformed() * gdk/win32/gdkgc-win32.c : implement _gdk_windowing_gc_get_foreground() * demos/gtk-demo/rotated_text.c : use G_PI
* Add GdkPangoRenderer, a subclass of PangoRenderer targeting GDK drawables.Owen Taylor2004-11-2116-484/+2162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sat Nov 20 15:13:51 2004 Owen Taylor <otaylor@redhat.com> * gdk/gdkpango.[ch]: Add GdkPangoRenderer, a subclass of PangoRenderer targeting GDK drawables. Use to implement the old gdk_draw_layout() and friends. * gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkwindow.c gdk/gdkpixmap.c: Add gdk_draw_glyphs_transformed() gdk_draw_trapezoids() and the corresponding members of GdkDrawableClass. Add a fallback implementation of gdk_draw_trapezoids() in terms of pixbufs. * gdk/gdkwindowing.h gdk/x11/gdkg-x11.h: Add _gdk_windowing_gc_get_foreground() to enable the fallback trapezoid implementation. * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkdisplay-x11.h: Implement draw_glyph_transformed, draw_trapezoids. * gdk/x11/gdkdrawable-x11.[ch]: Add _gdk_x11_drawable_draw_xtrapezoids, _gdk_x11_drawable_draw_xft_glyphs for use of GdkX11Renderer. * gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Implement GDK_TILED, GDK_STIPPLED, GDK_OPAQUE_STIPPLED in the RENDER codepath. * gdk/gdkpango-x11.c: Add GdkX11Renderer... a subclass of PangoXftRenderer that does tiles/stipples and fallback rendering of trapezoids without the RENDER extension. * gdk/gdkpango-x11.c gdk/x11/gdkscreen-x11.[ch] _gdk_x11_renderer_get: Add _gdk_x11_renderer_get() to get a singleton GdkX11Renderer for the screen. * gdk/x11/gdkdrawable-x11.c (get_impl_drawable): Fix a None/NULL confusion. * gtk/gtklabel.[ch] gtk/gtk.symbols: Add gtk_label_set/get_angle(), and an ::angle property. * gtk/gtklabel.c: Remove #if 0'd dead code gtk_label_paint_word(). * gtk/gtktextdisplay.c: Switch to using a GtkTextRenderer subclass of GdkPangoRenderer for drawing. * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Switch to using gtk_attr_shape_new_with_data() to store backreferences to embedded pixmaps and widgets. Leave line_display->shaped_objects around for backwords compatibility. * gdk/gdkpango.[ch] (gdk_pango_context_set_colormap): Describe as deprecated, remove implementation. * gtk/gtkwidget.c (gtk_widget_create_pango_context): Remove call to gdk_pango_context_set_colormap. * demos/gtk-demo/Makefile.am demos/gtk-demo/rotated_text.c: Add a demo showing drawing rotated text. * tests/testgtk.c: Add a rotated-label test, and also a rotated drawing test (differs from demos/gtk-demo/rotated_text by also using a tile)
* gdk/linux-fb/gdkgc-fb.c gdk/win32/gdkgc-win32.cManish Singh2004-11-193-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Nov 19 14:54:09 2004 Manish Singh <yosh@gimp.org> * gdk/linux-fb/gdkgc-fb.c * gdk/win32/gdkgc-win32.c * gdk/win32/gdkwindow-win32.c * gtk/gtkaboutdialog.c * gtk/gtkaction.c * gtk/gtkactiongroup.c * gtk/gtkcellrendererprogress.c * gtk/gtkcellview.c * gtk/gtkcolorbutton.c * gtk/gtkcombobox.c * gtk/gtkcomboboxentry.c * gtk/gtkentrycompletion.c * gtk/gtkfilechooserbutton.c * gtk/gtkmenutoolbutton.c * gtk/gtkrc.c * gtk/gtksettings.c * gtk/gtkstyle.c * gtk/gtktoggletoolbutton.c * gtk/gtktoolbutton.c * gtk/gtktoolitem.c * gtk/gtktreemodelfilter.c * gtk/gtktreeselection.c * gtk/gtktreeviewcolumn.c * gtk/gtkuimanager.c: get rid of unnecessary casts. * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_set_property): cast away the const for g_value_set_enum. This is after the g_warning, so this is a hack to begin with. * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_set_property): add a cast to GTK_FILE_CHOOSER for impl here.
* Squash strict aliasing warnings.Owen Taylor2004-11-174-22/+60
| | | | | | | Tue Nov 16 19:26:30 2004 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display): Squash strict aliasing warnings.
* Fix a copy-and-paste error. (#158459)Matthias Clasen2004-11-161-1/+1
| | | | | | | 2004-11-16 Matthias Clasen <mclasen@redhat.com> * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix a copy-and-paste error. (#158459)
* gdk/abicheck.sh don't hardcode lengths for cut, instead split on the thirdManish Singh2004-11-161-1/+1
| | | | | | | | Mon Nov 15 19:02:07 2004 Manish Singh <yosh@gimp.org> * gdk/abicheck.sh * gtk/abicheck.sh: don't hardcode lengths for cut, instead split on the third field.
* Make GDK+ compile with X11R5 (#148032)Matthias Clasen2004-11-123-4/+20
| | | | | | | | | | | | | | | 2004-11-12 Matthias Clasen <mclasen@redhat.com> Make GDK+ compile with X11R5 (#148032) * gdk/x11/xsettings-client.c (xsettings_client_new): * gdk/x11/gdkproperty-x11.c (_gdk_x11_precache_atoms): Only use XInternAtoms if it is available. * gdk/x11/gdkasync.c: Include XIproto.h if necessary. * configure.in: Check for XInternAtoms and X headers needed for xReply.
* Fix for #137551, by Robert Ögren:Tor Lillqvist2004-11-111-8/+74
| | | | | | | | | | | | | | 2004-11-11 Tor Lillqvist <tml@iki.fi> Fix for #137551, by Robert Ögren: * gdk/win32/gdkevents-win32.c (generate_focus_event): New function. (gdk_keyboard_grab, gdk_keyboard_ungrab): Generate focus change events. (gdk_event_translate): Check for keyboard grabs and not pointer grabs when handling WM_{SET,KILL}FOCUS. Use generate_focus_event().
* Use embedded tab rather than '\t' escape sequence. (#157949)J. Ali Harlow2004-11-111-1/+1
| | | | | | | | | 2004-11-11 J. Ali Harlow <ali@juiblex.co.uk> * gdk/Makefile.am: * gdk-pixbuf/Makefile.am: * gtk/Makefile.am (gtk.def): Use embedded tab rather than '\t' escape sequence. (#157949)
* Event timestamps don't have to be unique. As long as they areTor Lillqvist2004-11-101-1/+1
| | | | | | | | | 2004-11-10 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkevents-win32.c (_gdk_win32_get_next_tick): Event timestamps don't have to be unique. As long as they are nondecreasing we should be fine. Solves problems with for instance long menus not staying up on first click. (#152035, Robert Ögren)
* Fix many sparse warnings. (#157253, Kjartan Maraas.Matthias Clasen2004-11-1024-683/+272
| | | | | | | 2004-11-10 Matthias Clasen <mclasen@redhat.com> * gdk/linux-fb/*: Fix many sparse warnings. (#157253, Kjartan Maraas.