summaryrefslogtreecommitdiff
path: root/gdk
Commit message (Collapse)AuthorAgeFilesLines
* Start of integration of Erwann Chenede's multihead work from theOwen Taylor2002-04-2574-4253/+6384
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Apr 25 16:51:40 2002 Owen Taylor <otaylor@redhat.com> Start of integration of Erwann Chenede's multihead work from the gtk-multihead branch. * gdk/gdkdisplay.[ch] gdk/gdkscreen.[ch] gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkscreen-x11.[ch] New classes representing a set of screens with attached input devices and a single contiguous area, respectively. * gdk/gdk.[ch] gdk/gdkinternals.h gdk/x11/gdkmain-x11.c: gdk/x11/gdkprivate-x11.h: Make the initialization interface simple _gdk_windowing_init() and do the rest in gdk_open_display() calls. * gdk/gdk.[ch]: Add gdk_parse_args() which can be used to do the display-independent part of initialization instead of gdk_init_[check]. * gdk/gdkcursor.h gdk/gdkfont.h gdk/gdkkeys.h gdk/gdkpixmap.h gdk/gdkproperty.h gdk/gdkselection.h gdk/gdkwindow.h: Add multihead variants (_for_display(), for_screen()) of functions getting information specific to a particular screen screen or display. * gdk/gdkscreen.[ch]: Add gdk_screen__* variants of functions like gdk_rgb_get_colormap() that used to get/list global objects. * gdk/x11/gdkx.h: Add functions for converting GdkScreen and GdkDisplay into the X equivalents. * gdk/x11/gdkwindow-x11.c: Removed gdk_window_xid_at_coords() not in the headers and unused. * configure.in gdk/x11/{gxid.c,gxid_lib.[ch],gdkinput-gxi.c}: Remove gxid support ... has not been tested for a long time... "xfree" support is more portable to non XFree86. * gdk/**.h: Add a GDK_MULTIHEAD_SAFE define that can be used to turn off functions that are inherently non-multihead safe. * gdk/**.c: add GDK_NOTE(multihead, ...) calls when functions are used in non-multihead-safe ways. * gdk/*.c gdk/x11/*.c: Changes to make the internals of GDK multihead safe.
* Save x and y in window_private.Alexander Larsson2002-04-211-0/+3
| | | | | | | | | | | 2002-04-21 Alexander Larsson <alla@lysator.liu.se> * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): Save x and y in window_private. * gtk/gtkplug.c (_gtk_plug_add_to_socket): Move plug window outside the visible area to avoid flashing until the first size_allocate.
* replace GDK_IS_WINDOW with GDK_IS_DRAWABLE in the assert, only checkKristian Rietveld2002-04-201-6/+6
| | | | | | | | | | Sat Apr 20 16:49:26 2002 Kristian Rietveld <kris@gtk.org> * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_new): replace GDK_IS_WINDOW with GDK_IS_DRAWABLE in the assert, only check GDK_WINDOW_DESTROYED if window is a GdkWindow, (gdk_bitmap_create_from_data): ditto, (gdk_pixmap_create_from_data): ditto
* Remove some files whose content is either obsolete or has been movedMatthias Clasen2002-04-191-339/+0
| | | | | | | | | | * TODO, TODO.xml, README.nanox, docs/Changes-1.2.txt, docs/Changes-2.0.txt, docs/gtk-config.txt, docs/debugging.txt, gdk/TODO: Remove some files whose content is either obsolete or has been moved elsewhere. * Makefile.am, gtk+.spec.in, docs/Makefile.am: Remove references to these files.
* gdk-pixbuf/Makefile.am (uninstall-libtool-import-lib) Fix typo, thanks toTor Lillqvist2002-04-181-1/+1
| | | | | | | | | | | | | | | | 2002-04-18 Tor Lillqvist <tml@iki.fi> * gdk-pixbuf/Makefile.am (uninstall-libtool-import-lib) * gdk/Makefile.am (uninstall-libtool-import-lib): Fix typo, thanks to David Sterba for noticing. * gtk/gtkmain.h * gtk/gtkmain.c (gtk_init_abi_check, gtk_init_check_abi_check): In GTK+ 2.0 the GtkWindow struct actually is the same size in gcc on Win32 whether compiled with -fnative-struct or not. Unfortunately this wan't noticed until now. So, from now on, check some other struct, too, for which the use of -fnative-struct still matters. GtkBox is one such.
* create the target pixbuf AFTER filling in width/height, so that passing inHavoc Pennington2002-04-131-8/+8
| | | | | | | | 2002-04-13 Havoc Pennington <hp@pobox.com> * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): create the target pixbuf AFTER filling in width/height, so that passing in -1 for width/height will work.
* fix cut-n-paste bug which breaks big-endian machines (fixes #73585)jacob berkman2002-04-121-1/+1
| | | | | | | 2002-04-12 jacob berkman <jacob@ximian.com> * gdk/x11/xsettings-client.c (fetch_card8): fix cut-n-paste bug which breaks big-endian machines (fixes #73585)
* removed gdkkeysyms.h from .cvsignoreSven Neumann2002-04-051-1/+0
|
* Fix undefined variable typo. Patch from Simon Floery <simon.floery@gmx.at>Alex Larsson2002-04-051-1/+1
| | | | | | | | 2002-04-05 Alex Larsson <alexl@redhat.com> * gdk/linux-fb/gdkkeyboard-fb.c (write_string): Fix undefined variable typo. Patch from Simon Floery <simon.floery@gmx.at>
* fix segfault upon NULL return from gdk_utf8_to_string_target().Tim Janik2002-04-042-2/+3
| | | | | | | | | | Fri Apr 5 01:06:15 2002 Tim Janik <timj@gtk.org> * gdk/x11/gdkwindow-x11.c (set_text_property): fix segfault upon NULL return from gdk_utf8_to_string_target(). * gdk/x11/gdkselection-x11.c (gdk_utf8_to_string_target): fix return value comment to mention NULL returns upon EMFILE.
* Fix some bugs, and introduce a minor feature.Tor Lillqvist2002-04-041-27/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-04-04 Tor Lillqvist <tml@iki.fi> * gdk/gdkrgb.c: Fix some bugs, and introduce a minor feature. (gdk_rgb_convert_4_pack): New function, for 16-color (4 bits per pixel) static visuals (fixes #858). (gdk_rgb_convert_gray4_pack, gdk_rgb_convert_gray4_d_pack): Fix same bugs in both functions: Odd start coordinate (partial byte) was not handled correctly. Also a partial final byte was not handled correctly. (gdk_rgb_do_colormaps): Use G_N_ELEMENTS. (gdk_rgb_create_info): For pseudocolor visuals, use the 2x2x2 colorcube only for depths 3 and 4. For static color, use it for depths 3..7 like before. (Depth 5..7 pseudocolor probably never occurs on X11. It doesn't normally occur on Win32 either, but there is experimental code in gdkvisual-win32.c to let the user restrict the size of palette used.) (gdk_rgb_init): Set gdk_rgb_verbose if the GDK_DEBUG_GDKRGB flag is set. (gdk_rgb_select_conv): Use gdk_rgb_convert_8 also for depths 5, 6 and 7 (see above). Use gdk_rgb_convert_4_pack for 4 bits per pixel static color.
* Fixed dashed line issues (#74441) to an IMO reasonable extend. That is:Hans Breuer2002-03-284-139/+312
| | | | | | | | | | | | | | | | | | | | | | | | 2002-03-29 Hans Breuer <hans@breuer.org> Fixed dashed line issues (#74441) to an IMO reasonable extend. That is: use PS_USERSTYLE on WinNT (the next GDI limit appears to be with lines width > 50); Render horizontal and vertical dashed lines on Win9x 'by hand'. Dotted selection rectangles and Dia look nice ... * gdk/win32/gdkprivate-win32.h : add pen_dashes pointer and num_pen_dashes to _GdkGCWin32 * gdk/win32/gdkgc-win32.c : initialize pen_dashes and remove the guesses from dashes to windoze line styles. (predraw_set_forground) : always ExtCreatePen (PS_SOLID) on Win9x, which does not support PS_USERSTYLE. * gdk/win32/gdkdrawable-win32.c : new functions render_line_ <horizontal|vertical>. Use them if not running on NT in gdk_win32_draw_<rectangle|segments|lines> () * gdk/win32/gdkkeys-win32.c (gdk_keyval_name) : return NULL for keyval == 0 to avoid to have zeros in all menu entries without accelerator.
* add more explanatory text to the error message about missing charsets, andHavoc Pennington2002-03-231-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-22 Havoc Pennington <hp@pobox.com> * gdk/x11/gdkfont-x11.c (gdk_fontset_load): add more explanatory text to the error message about missing charsets, and use g_printerr() not g_warning() since this is typically not a programming error (we do not export any API to ask whether a font set will have missing charsets so apps realistically can't do anything other than try the gdk_fontset_load()) * gtk/gtktextview.c (gtk_text_view_key_press_event): return FALSE if the text view isn't editable and the user presses Return, so default buttons and such can be activated, #74937 * gtk/gtktextbuffer.c (paste_from_buffer): don't insert if the insertion point is not editable and the paste is interactive, #74125 * gtk/gtkwindow.c (gtk_window_move_resize): enhance the #if 0 debug spew * gtk/gtktextbuffer.c (cut_or_copy): only remove the previous cut/copied data right before replacing it, when we know we are going to replace it. Fixes #74049
* Fix typo, where x value was assigned to both x and y.Richard Hult2002-03-221-1/+1
| | | | | | | 2002-03-22 Richard Hult <rhult@codefactory.se> * gdk/gdkevents.c (gdk_event_get_root_coords): Fix typo, where x value was assigned to both x and y.
* Fix memory leak. (#74400, Morten Welinder.)Owen Taylor2002-03-222-7/+63
| | | | | | | | | | | | | | | Fri Mar 22 10:56:19 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkaccelmap.c (gtk_accel_map_save_fd): Fix memory leak. (#74400, Morten Welinder.) * gtk/gtkaccelmap.c: Properly handle short returns from write() calls. (Handling EINTR isn't enough... that only handles the case where you were interrupted before you wrote a single byte.) * gdk/linux-fb/gdkmouse-fb.c gdk/linux-fb/gdkkeyboard-fb.c: Robustify against short returns from write() calls.
* Don't clear all of the pen_style, just the PS_STYLE_MASK. Seems to fixTor Lillqvist2002-03-211-2/+2
| | | | | | | | | | 2002-03-22 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Don't clear all of the pen_style, just the PS_STYLE_MASK. Seems to fix #74441, but that is just the special case of one-pixel wide one-pixel on-off dotted lines. To fully implement generic X11 style dashed lines a major rewrite would be needed.
* Remove some left over debugging code with a G_BREAKPOINT() in it.Owen Taylor2002-03-211-9/+1
| | | | | | | | Thu Mar 21 10:04:05 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkwindow.c (gdk_window_real_get_depth): Remove some left over debugging code with a G_BREAKPOINT() in it.
* Patches from Carlo E. Prelz <fluido@fluido.as> Now gtkfb at least compilesAlex Larsson2002-03-212-0/+43
| | | | | | | | | | | | | | | | 2002-03-20 Alex Larsson <alexl@redhat.com> Patches from Carlo E. Prelz <fluido@fluido.as> Now gtkfb at least compiles and mostly works. The keyboard stuff needs more loving. * gdk/linux-fb/gdkkeyboard-fb.c (xlate_get_for_keyval, xlate_get_for_keycode, raw_get_for_keyval, raw_get_for_keycode): At least set the out parameters for these calls. * gdk/linux-fb/gdkmain-fb.c: (gdk_pointer_grab_info_libgtk_only, gdk_keyboard_grab_info_libgtk_only): Implement new functions.
* Patch from Erwann Chenede, #73900 fixing a lot of warnings with Forte CC,Owen Taylor2002-03-202-3/+2
| | | | | | | | | | | Wed Mar 20 16:36:08 2002 Owen Taylor <otaylor@redhat.com> * gtk/*.c: Patch from Erwann Chenede, #73900 fixing a lot of warnings with Forte CC, mostly implicit casts between void * and function pointers. * gdk/gdkevents.c (gdk_event_get_state): GdkEventVisibility's state field is not a GdkModifierType. (Also #73900)
* Fix assignment of time in scroll events. (Sven Neumann, #75574)Owen Taylor2002-03-201-1/+1
| | | | | | | Wed Mar 20 10:55:56 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix assignment of time in scroll events. (Sven Neumann, #75574)
* Use gdk_window_get_toplevel(), as it is the top-level windows that areTor Lillqvist2002-03-192-2/+4
| | | | | | | | | | 2002-03-20 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkdnd-win32.c (gdk_drag_find_window): Use gdk_window_get_toplevel(), as it is the top-level windows that are registered for DND. * gdk/win32/gdkwin32.h: Don't include gdkinternals.h.
* Fix backwards conditional. (#75019, Dan Winship.)Owen Taylor2002-03-181-1/+1
| | | | | | | Mon Mar 18 11:09:17 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkwindow-x11.c (gdk_window_set_override_redirect): Fix backwards conditional. (#75019, Dan Winship.)
* just return when we have an input_only window (fix by Owen Taylor)Kristian Rietveld2002-03-161-0/+5
| | | | | | | | | | | | | | | | | | | | | Sat Mar 16 23:54:56 2002 Kristian Rietveld <kris@gtk.org> * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_bit_gravity): just return when we have an input_only window (fix by Owen Taylor) * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add scroll_sync_timer * gtk/gtktreeview.c (install_scroll_sync_handler): new function, (scroll_sync_handler): ditto, (gtk_tree_view_unrealize): take scroll_sync_timer into account (gtk_tree_view_row_deleted): install scroll_sync_timer instead of calling top_row_to_dy/dy_to_top_row directly -- this greatly speeds up clearing the model (#73199) * gtk/gtktreemodelsort.c (gtk_tree_model_sort_convert_path_to_child_path): fix up this function, for some reason I really screwed it up (fixes #74663)
* Fix byte shift arithmetic for big-endian. (Tracked down with help fromOwen Taylor2002-03-151-2/+2
| | | | | | | | Fri Mar 15 15:37:01 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkdrawable-x11.c (convert_to_format): Fix byte shift arithmetic for big-endian. (Tracked down with help from Tuomas Kuosmanen)
* Fudge keymap to have lower upper case variants if there is only a singlePadraig O'Briain2002-03-151-0/+18
| | | | | | * gdk/x11/gdkkeys-x11.c (update_keymaps): Fudge keymap to have lower upper case variants if there is only a single keysym per keycode and the key symbol has upper and lower case variants (#74512)
* Fix rather improbable reentrancy problem if a window is destroyed whileOwen Taylor2002-03-141-0/+3
| | | | | | | | | Thu Mar 14 17:09:52 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkwindow.c (gdk_window_process_all_updates): Fix rather improbable reentrancy problem if a window is destroyed while updates are being processed on another window. (Noticed by Michael Meeks, #74708)
* Add missing .la suffix for libgdk_pixbuf.Tor Lillqvist2002-03-071-1/+1
| | | | | | 2002-03-08 Tor Lillqvist <tml@iki.fi> * gdk/Makefile.am (LDFLAGS): Add missing .la suffix for libgdk_pixbuf.
* gdk/Makefile.am rework so that only things that really need to be doneManish Singh2002-03-061-10/+7
| | | | | | | | 2002-03-06 Manish Singh <yosh@gimp.org> * gdk/Makefile.am * gtk/Makefile.am: rework so that only things that really need to be done post install are in the hook
* gdk/Makefile.am use install-foo-hook instead of install-foo-local, sinceManish Singh2002-03-061-2/+2
| | | | | | | | | 2002-03-05 Manish Singh <yosh@gimp.org> * gdk/Makefile.am * gtk/Makefile.am: use install-foo-hook instead of install-foo-local, since foo-local is run before the their respective builtin targets in automake 1.5
* gdk-pixbuf/gdk_pixbuf.rc.in gdk/win32/rc/gdk.rc.in Use GTK_API_VERSION.Tor Lillqvist2002-03-061-3/+3
| | | | | | | | 2002-03-06 Tor Lillqvist <tml@iki.fi> * gdk-pixbuf/gdk_pixbuf.rc.in * gdk/win32/rc/gdk.rc.in * gtk/gtk-win32.rc.in: Use GTK_API_VERSION.
* Bypass calls to the grab/ungrab functions in gdkinput-win32.c, as theyTor Lillqvist2002-03-064-62/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-06 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkevents-win32.c (gdk_pointer_grab, gdk_pointer_ungrab): Bypass calls to the grab/ungrab functions in gdkinput-win32.c, as they don't effectively do anything anyway. (build_key_event_state): Set MOD2 bit if key is in AltGr group. (gdk_event_translate): Call _gdk_windowing_window_get_offsets() each time the offsets are used, on the window they refer to, instead of once in the beginning. The window in question might change due to event propagation. (gdk_event_translate): Set key event group to 0 for non-AltGr keys. Do set the SHIFT bit in the key event state also for ISO_Left_Tab. Now backtabbing finally works again. * gdk/win32/gdkunput-win32.c: Minor debugging output change. * gdk/win32/gdkkeys-win32.c (update_keymap): Set VK_TAB mapping to Gdk_Tab and GDK_ISO_Left_Tab, like on X11. (gdk_keymap_translate_keyboard_state): Add similar code as in the non-XKB case on X11 to generate a more correct consumed_modifiers. Add debugging output. (gdk_keyval_name): Use the U+xxxx format for UCS characters encoded as keyvals. Never return NULL, but hex number representation if keyval not in table. * gdk/win32/gdkwindow-win32.c (gdk_window_focus): Call SetFocus(). Doesn't seem to have any harmful effect, and probably is close to what this function is supposed to do. But it didn't fix GtkCombo as I had hoped. (gdk_window_set_type_hint): Don't intern the _NET_WM_* atoms that weren't used and wouldn't have any meaning on Win32 anyway.
* Update version to 2.0.0Owen Taylor2002-03-053-25/+25
| | | | | | | | | | | | | | | | Tue Mar 5 15:47:54 2002 Owen Taylor <otaylor@redhat.com> * configure.in test/makefile.msc **.pc.in **/*.am: Update version to 2.0.0 * gtk/Makefile.am (MAINTAINERCLEANFILES): Add stamp files. * configure.in (GDK_PIXBUF_VERSION): Require GLib 2.0.0, Pango, Atk, 1.0.0. * m4macros/gtk-2.0.m4: Default to 2.0.0 as the minimum version.
* Fixes for non XKB operation. (#73103)Owen Taylor2002-03-043-32/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Mar 4 12:43:48 2002 Owen Taylor <otaylor@redhat.com> Fixes for non XKB operation. (#73103) * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Fix problem where GDK_Tab was converted to GDK_ISO_Left_Tab always, not just if Shift was pressed. * gdk/x11/gdkkeys-x11.c gdk/x11/gdkprivate-x11.c gdk/x11/gdkevents-x11.c: Move determination of group to _gdk_x11_get_group_for_state(), fix to handle non-XKB. * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Only add in SHIFT_MASK | LOCK_MASK to consumed_modifiers if the shifted and unshifted keysyms are different. Only add in group_switch_mask if the group-switched and non-group-switched keysyms are diferent. * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): When calling XKeycodeToKeysym, use group * keysyms_per_keycode / 2 not group * keysyms_per_keycode. (Tor Lillquist) * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Remove the hack to fudge the return value for GDK_Tab + Shift since that didn't work -- it didn't affect the reverse mapping. Instead fudge the non-XKB keymap instead.
* Fix tyop in docs.Anders Carlsson2002-03-031-1/+1
| | | | | | | 2002-03-03 Anders Carlsson <andersca@gnu.org> * gdk/x11/gdkwindow-x11.c (gdk_window_move_resize): Fix tyop in docs.
* Add a --enable-explicit-deps option to control whether dependencyOwen Taylor2002-03-021-1/+10
| | | | | | | | | | | | | | | | | | | | | | | Fri Mar 1 00:46:49 2002 Owen Taylor <otaylor@redhat.com> * configure.in: Add a --enable-explicit-deps option to control whether dependency libraries are written into .la files and .pc files. Default is auto: if static libraries are off and shlib dependencies are found, don't write deps. * gdk/Makefile.am gtk/Makefile.am sanitize-la.sh: Shell script used to strip dependencies out of .la files. * Makefile.am: Add a slightly modified distcheck rule that passes --enable-gtk-doc to the configure inside. (So that 'make dist' succeeds inside.) * configure.in: If pango was compiled with --disable-explicit-deps, then repeat the checks for X and freetype ourselves so we don't depend on linking to libraries that pango doesn't reveal in the link line. Add some more paranoia for whether what we detect ourselves matches what Pango backends we found.
* gdk/gdk.def Add and (trivially) implementTor Lillqvist2002-03-022-46/+103
| | | | | | | | | | | | | | | | | | 2002-03-03 Tor Lillqvist <tml@iki.fi> * gdk/gdk.def * gdk/win32/gdkevents-win32.c: Add and (trivially) implement gdk_pointer_grab_info_libgtk_only() and gdk_keyboard_grab_info_libgtk_only(). 2002-03-02 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkevents-win32.c (build_keypress_event): Reorder code, keyval should get a value in all cases now. (build_keyrelease_event): Set GDK_CONTROL_MASK here, too, if it was a control character produced with Alt+keypad digits. (gdk_event_translate): Minor cleanups to keyboard input handling. Still need more major work.
* Robustify tracking of pointer grab window.Owen Taylor2002-03-024-11/+168
| | | | | | | | | | | | | | | | | | | | | | | | Fri Mar 1 18:39:44 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/{gdkevents-x11.c,gdkmain-x11.c,gdkprivate-x11.h, gdkwindow-x11.c}: Robustify tracking of pointer grab window. * gdk/x11/gdkmain-x11.c: Keep track of current keyboard grab window. * gdk/x11/gdkmain-x11.c (gdk_pointer_grab_info_libgtk_only, gdk_keyboard_grab_info_libgtk_only): Private libgtk => libgtk API for finding out current grab information. * gtk/gtkmain.c (rewrite_event_for_grabs): Rewrite events so that the effective behavior of owner_events = TRUE is changed to "deliver events to same window group normally" instead of "deliver events to same application normally. #69934 * gtk/gtkrange.c: Use an explicit gtk_grab_add() so that it works within the GtkList combo, where there is a owner_events = FALSE gdk_pointer_grab() already in effect. (#65006, reported by Damon Chaplin)
* gdk/gdkkeys.c (gdk_keyval_convert_case) If the keyval to be converted isTor Lillqvist2002-03-012-12/+20
| | | | | | | | | | | | | | | 2002-03-01 Tor Lillqvist <tml@iki.fi> * gdk/gdkkeys.c (gdk_keyval_convert_case) * gdk/x11/gdkkeys-x11.c (gdk_keyval_convert_case): If the keyval to be converted is one of those that consist of a Unicode character plus our special flag bit, use the g_unichar_to{lower,upper} functions (Bug#73112). * gdk/gdkkeys.c (gdk_keyval_convert_case): Drop the #ifdefs for the GDK keysym symbols. As we include gdkkeysyms.h, we know they are there. And if GDK keysyms some day are added/removed, this function needs changes, too, anyway.
* Fix some reported (but not significant) UMR's from purify. (#73160, MortenOwen Taylor2002-03-011-0/+2
| | | | | | | Fri Mar 1 17:00:28 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkpolyreg-generic.c: Fix some reported (but not significant) UMR's from purify. (#73160, Morten Welinder)
* include gdkkeysysms.h if compiling gdk_keyval_convert_case.Owen Taylor2002-03-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | Thu Feb 28 19:55:01 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkkeys.c: include gdkkeysysms.h if compiling gdk_keyval_convert_case. * gtk/gtkmenubar.c (gtk_menu_bar_cycle_focus): Implement <Control>Tab <Control><Shift>Tab to cycle between all menu bars in a toplevel once one is up. * tests/testgtk.c: Add a second menubar, this example is already full of crack anyways. * gtk/gtkmenushell.c (gtk_menu_shell_key_press): Padd unhandled events up to the parent menu shell. * gtk/gtkmenuitem.c (gtk_menu_item_select_timeout): Only pop up the menu if the parent menu shell is still active. * gtk/gtkcontainer.[ch] (_gtk_container_focus_sort): Add a old_focus argument, export privately.
* Remove the event_mask, it is now in GdkWindowObject.Tor Lillqvist2002-02-284-97/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-01 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32): Remove the event_mask, it is now in GdkWindowObject. * gdk/win32/gdkwindow-win32.c: Change accordingly. Set the GDK_STRUCTURE_MASK in gdk_window_set_events(), as it is always set in gdk_window_new(), too. (Bug#72921) * gdk/win32/gdkevents-win32.c: Change accordingly here, too. (vk_from_char): New function, calculates the virtual keycode corresponding to the char in a WM_CHAR message. (build_keypress_event, build_keyrelease_event): Use it. (build_keypress_event): Call ImmReleaseContext() after using the input context. This might plug a memory or resource leak. (build_key_event_state): Remove #if 0 code. (gdk_event_translate): Actually, it would be preferrable to always handle just the WM_KEYDOWN and WM_KEYUP messages, not WM_CHAR at all, and thus drop the contorted logic with ignore_wm_char etc. * gdk/win32/gdkkeys-win32.c: (gdk_keymap_get_entries_for_keyval): Debugging output. (gdk_keymap_translate_keyboard_state): Return correct value. (But _gtk_key_hash_lookup() doesn't check the return value...)
* Initialize private->event_mask from attributes we retrieved for theOwen Taylor2002-02-281-8/+18
| | | | | | | | Thu Feb 28 14:49:08 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): Initialize private->event_mask from attributes we retrieved for the window.
* Move bdfcursor.c from libgdk_win32_la_SOURCES to EXTRA_DIST.Tor Lillqvist2002-02-282-2/+2
| | | | | | | | | | | 2002-02-28 Tor Lillqvist <tml@iki.fi> * gdk/win32/Makefile.am: Move bdfcursor.c from libgdk_win32_la_SOURCES to EXTRA_DIST. * gdk/win32/gdkgc-win32.c (gdk_win32_colormap_color_pack): In the bitmap case, use just the LSB of the pixel value. Does this match X11 semantics? Or should it be pixel!=0?
* ed Feb 27 19:16:50 2002 Owen Taylor <otaylor@redhat.com>Owen Taylor2002-02-285-1/+12
| | | | | | | | | | | | | | | * gdk/x11/gdkwindow-x11.c (gdk_window_new): * gdk/x11/gdkwindow-x11.c (gdk_window_get_events): * gdk/x11/gdkwindow-x11.c (gdk_window_set_events): * gdk/win32/gdkwindow-win32.c (gdk_window_set_events): * gdk/win32/gdkwindow-win32.c (gdk_window_new): * gdk/gdkwindow.h (struct _GdkWindowObject): * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_events): Save the window's event mask in window->event_mask. * gdk/gdkwindow.c (gdk_window_process_updates_internal): Only generate expose events if GDK_EXPOSE_MASK is included window->event_mask. (#54506)
* Register all stock icons "unscaled" so that we don't have icons onlyOwen Taylor2002-02-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Wed Feb 27 12:34:21 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkiconfactory.c: Register all stock icons "unscaled" so that we don't have icons only available at some sizes. (#68896) Wed Feb 27 11:59:05 2002 Owen Taylor <otaylor@redhat.com> Some ASCII vs. locale fixes from Darin Adler (#55837) * gtk/gtkcombo.c (gtk_combo_find): Implement real case-insensitive comparison using g_utf8_casefold(). * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Fix assignment of gunichar to char by replacing g_unichar_totitle with g_ascii_toupper ... the contents would only be ascii here anyways. * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale) * gtk/gtkfontsel.c (gtk_font_selection_show_available_fonts): Replace a calls to g_strcasecmp() with g_ascii_strcasecmp().
* new fileHans Breuer2002-02-271-5/+5
| | | | | | | | | | | | | | | | | | | | | 2002-02-27 Hans Breuer <hans@breuer.org> * demos/gtk-demo/makefile.msc.in : new file * gdk-pixbuf/gtk-pixbuf.rc.in : new file to include version resource * gdk-pixbuf/makefile.msc : create and use gdk-pixbuf.res * gdk/win32/gdkkeys-win32.c : handle undefined LANG_URDU, (gdk_keyval_name) : fix endless looping * gtk/gtkfilesel.c : translate_win32_path() static * gtk/queryimmodules : print_escaped(), query_module() static * gtk/makefile.msc.in : added gtkkeyhash, build gtk-win32.res * gtk/stock-icons/makefile.msc : regenerated from directory listing (almost all filenames changed)
* Shouldn't map KP_Enter to '\n', or KP_Tab to \t' since we don't map theOwen Taylor2002-02-271-2/+0
| | | | | | | | | Tue Feb 26 21:35:31 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkkeyuni.c: Shouldn't map KP_Enter to '\n', or KP_Tab to \t' since we don't map the corresponding main keyboard characters in that way. (#61561, Padraig O'Briain)
* Make sure Page_Up, Page_Down get those names, not Prior, Next.Owen Taylor2002-02-272-7/+29
| | | | | | | | | Tue Feb 26 19:16:28 2002 Owen Taylor <otaylor@redhat.com> * gdk/win32/gdkkeys-win32.c (gdk_keyval_name): * gdk/x11/gdkkeys-x11.c (gdk_keyval_name): Make sure Page_Up, Page_Down get those names, not Prior, Next.
* Implement the functions that until now just were non-functional stubs. ForTor Lillqvist2002-02-267-67/+438
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-02-26 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkkeys-win32.c: Implement the functions that until now just were non-functional stubs. For "hardware keycodes", we use Windows virtual keycodes. Not scancodes, although that at first might seem more low-level and a better match to X11 keycodes. The Windows API is really mixed up and confused with respect to scancodes and virtual keycodes. (Surprised?) Some scancodes are generated by two keys on the keyboard (!), and although the keyboard messages do have a flag to indicate which key the user pressed, other API that take a scan code as input don't let you specify which actual key you mean. (update_keymap): Function to build a X11-like representation of the keyboard. Each key has four keysyms: two levels (nonshifted and shifted) and two groups (normal and with AltGr). (gdk_keymap_get_direction): Use the codepage corresponding to the thread's input locale, not the system codepage. * gdk/win32/gdkglobals-win32.c * gdk/win32/gdkmain-win32.c * gdk/win32/gdkprivate-win32.h * gdk/win32/gdkwindow-win32.h * gdk/win32/gdkwindow-win32.c: Remove the input_locale and charset_info fields from GdkWindowImplWin32. Input locale is per-thread in Windows, and as GDK on Windows really only works when the GDI interaction all happens in just one thread anyway, this state can be global. Use globals _gdk_input_locale and _gdk_input_codepage instead. Set these based on the thread's input locale (keyboard layout, or which IME is active). * gdk/win32/gdkevents-win32.c: Set the group and hardware_keycode fields in GDK key events. On input locale change messages, set the global state variables, and inform update_keymap() that it has to rebuild the keymap.
* Fix precendence problem. (Sven Neumann)Owen Taylor2002-02-251-1/+1
| | | | | | | Mon Feb 25 12:47:25 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Fix precendence problem. (Sven Neumann)