1. 06 Jun, 2003 1 commit
  2. 05 Jun, 2003 1 commit
    • Tor Lillqvist's avatar
      Handle global filters. · 72a70cb6
      Tor Lillqvist authored
      2003-06-05  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle global
      	filters.
      72a70cb6
  3. 04 Jun, 2003 2 commits
    • Owen Taylor's avatar
      When drawing underlines, join up adjacent runs where possible, so we don't · f9a47864
      Owen Taylor authored
      Wed Jun  4 19:42:17 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkpango.c (gdk_draw_layout_line_with_colors):
              When drawing underlines, join up adjacent runs
              where possible, so we don't get changes in
              shaper/font/etc. breaking underlines. (#103662,
              Kang Jeong-Hee)
      f9a47864
    • Owen Taylor's avatar
      Keep track of when we have a clip mask set for the GC, and when we unset · 76fc08a3
      Owen Taylor authored
      Wed Jun  4 19:24:28 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Keep
              track of when we have a clip mask set for the GC,
              and when we unset it, or switch to a clip region,
              immediately call XSetClipMask (..., None) to avoid
              Xlib caching stale data. (#111806)
      
              * gtk/gtktextdisplay.c: Don't set a clip mask
              when drawing alpha pixmaps; it isn't necessary any more.
              (#111806)
      76fc08a3
  4. 03 Jun, 2003 4 commits
    • Owen Taylor's avatar
      Don't respond to pings on a root window; prevents infinite loops if we are · eb6debd4
      Owen Taylor authored
      Tue Jun  3 18:32:30 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't
              respond to pings on a root window; prevents infinite
              loops if we are selecting for SubstructureNotify on the
              root window. (#111945, Sergey V. Udaltsov)
      eb6debd4
    • Owen Taylor's avatar
      #71597, reported by Morten Welinder · 84ebfb7e
      Owen Taylor authored
      Tue Jun  3 17:39:16 2003  Owen Taylor  <otaylor@redhat.com>
      
              #71597, reported by Morten Welinder
      
              * gdk/gdkpixbuf-drawable.c (rgb888amsb): Fix and simplify
              (Patch from Christian Petig)
      
              * gdk/gdkpixbuf-drawable.c (rgb{555,565}{a,}{msb,lsb}):
              Major rewrite of 555 and 565 conversion routines:
      
              - Move all the bit shifting into a small block of macros,
                eliminating much duplication of complicated arithmetic.
              - Get rid of 2-pixels at a time code, which was buggy,
                hard to maintain, caused unaligned accesses, and
                probably didn't actually perform any better.
              - Simplify cases where different data types were
                used for the little and big endian cases, use
                GUINT16_SWAP_LE_BE() where appropriate.
      84ebfb7e
    • Owen Taylor's avatar
      Remove bad optimization for src_rowstride == dest_stride. (Didn't consider · 794a3a9f
      Owen Taylor authored
      Tue Jun  3 15:05:47 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkdrawable-x11.c (convert_to_format): Remove
              bad optimization for src_rowstride == dest_stride.
              (Didn't consider the case where we were copying only
              partial widths of a wider source buffer)
              (#113034, reported by Hans Petter Jansson)
      794a3a9f
    • Michael Natterer's avatar
      reenabled button_release events for xinput devices. (#113948) · ace98aba
      Michael Natterer authored
      2003-06-03  Michael Natterer  <mitch@gimp.org>
      
      	* gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
      	reenabled button_release events for xinput devices. (#113948)
      ace98aba
  5. 02 Jun, 2003 1 commit
    • Sven Neumann's avatar
      added a missing cast. · b5059b98
      Sven Neumann authored
      2003-06-02  Sven Neumann  <sven@gimp.org>
      
      	* gtk/gtkprogress.c (gtk_progress_changed): added a missing cast.
      
      	* gdk/gdkrgb.c (gdk_rgb_try_colormap): removed an unused variable.
      b5059b98
  6. 27 May, 2003 2 commits
    • Matthias Clasen's avatar
      Remove dubious bitfields of unspecified signedness. (#112919, Morten · 83c626bb
      Matthias Clasen authored
      2003-05-27  Matthias Clasen  <maclas@gmx.de>
      
      	* io-wbmp.c: Remove dubious bitfields of
      	unspecified signedness.  (#112919, Morten Welinder)gdk-p
      
      	* gdk-pixdata.c (gdk_pixdata_to_csource): Replace all occurances
      	of g_string_new ("") by g_string_new (NULL). (#106975, Morten Welinder)
      
      	* gtk/gtkwindow-decorate.c:
      	* gtk/gtktreeprivate.h:
      	* gtk/gtkdnd.c:
      	* gdk/win32/gdkwindow-win32.h:
      	* gdk/linux-fb/gdkprivate-fb.h:
      	* gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
      	unspecified signedness.  (#112919, Morten Welinder)
      
      	* gtk/queryimmodules.c (escape_string):
      	* gtk/gtktextbtree.c (_gtk_text_btree_get_text):
      	* gtk/gtksettings.c (_gtk_settings_parse_convert):
      	* gtk/gtkrc.c (gtk_rc_parse_assignment):
      	* gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
      	* gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all
      	occurances of g_string_new ("") by g_string_new (NULL). (#106975,
      	Morten Welinder)
      83c626bb
    • Tor Lillqvist's avatar
      Only include the Default and Emacs themes' gtkrc files. Include · fd99f43a
      Tor Lillqvist authored
      2003-05-27  Tor Lillqvist  <tml@iki.fi>
      
      	* gtk-zip.sh.in: Only include the Default and Emacs themes' gtkrc
      	files. Include share/gtk-doc/{gdk-pixbuf,gdk,gtk}.
      
      	* gdk/Makefile.am: libgdk-win32-2.0.la depends on
      	win32/libgdk-win32.la.
      
      	* gtk/gtk.def: Add gtk_tree_view_column_cell_get_position.
      fd99f43a
  7. 21 May, 2003 1 commit
  8. 20 May, 2003 1 commit
    • Owen Taylor's avatar
      Comprehensively zero all unused parts of client messages (Mainly Motif DND · ef605368
      Owen Taylor authored
      Tue May 20 15:09:29 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkdnd-x11.c gdk/x11/gdkwindow-x11.c: Comprehensively
              zero all unused parts of client messages (Mainly Motif DND
              and EWMH). Also, fix a couple places where we were putting
              contents into Motif DND messages that didn't belong.
              (#113361, EWMH problem reported by Lubos Lunak)
      
              * gtk/gtkselection.c (_gtk_selection_request): Handle the
              case where the property type for the multiple atoms is
              ATOM_PAIR by doing the conversions ourselve. This is
              needed for Xt inter-operation.
      ef605368
  9. 14 May, 2003 2 commits
  10. 06 May, 2003 2 commits
    • Owen Taylor's avatar
      Patch from James Henstridge to update to automake-1.7 (#109542) · 629a0e14
      Owen Taylor authored
      Tue May  6 16:50:52 2003  Owen Taylor  <otaylor@redhat.com>
      
              Patch from James Henstridge to update to automake-1.7
              (#109542)
      
              * autogen.sh: update to call newer tools.
      
              * configure.in: various updates, to use M4 macros to put
              variables that change each release at the top.
              Use AC_HELP_STRING to format help strings.
              Use AC_CONFIG_COMMANDS to generate gdkconfig.h.
      
              * Makefile.am: require Automake 1.7.  Remove gdk-2.0.pc and
              gtk+-2.0.pc on uninstall.  Pass --enable-gtk-doc to configure
              during distcheck.
      
              * docs/reference/*/Makefile.am: simplify to use the gtk-doc.make
              makefile fragment.
      
              * */Makefile.am: don't use STRIP_BEGIN/STRIP_END.
              Use BUILT_SOURCES where appropriate.
              Build generated files in builddir rather than srcdir.
              Fix uninstall and distclean targets to satisfy distcheck.
      
              ===
      
              * gdk/*/Makefile.am: Remove the hacks to get gdkenumtypes.h
              built first, since we are now using BUILT_SOURCES.
      
              * gdk/Makefile.am: Remove an outdated comment about gdk_headers.
      
              * demos/gtk-demo/Makefile.am: Fix srcdir != buildd problem
              with geninclude.pl.
      
              * configure.in: Update versions to 2.3.0.
      629a0e14
    • Tor Lillqvist's avatar
      Fix for #110165 (thanks to Arnaud Charlet): · 2e58122c
      Tor Lillqvist authored
      2003-05-06  Tor Lillqvist  <tml@iki.fi>
      
      	Fix for #110165 (thanks to Arnaud Charlet):
      
      	* gdk/win32/gdkevents-win32.c (build_keypress_event,
      	build_keyrelease_event): For unshifted control char, use
      	lowercase ASCII keyval.
      	(gdk_event_translate): Similarily, when handling WM_SYSKEYDOWN and
      	UP (i.e. Alt-something), if it's an unshifted ASCII letter, use
      	lowercase keyval. Use build_key_event_state() here, too, instead
      	of minor code duplication.
      2e58122c
  11. 21 Apr, 2003 3 commits
  12. 18 Apr, 2003 8 commits
  13. 07 Apr, 2003 1 commit
    • Owen Taylor's avatar
      Flush after ungrabbing the server. · 1926dbc1
      Owen Taylor authored
      Mon Apr  7 19:43:15 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_ungrab): Flush
              after ungrabbing the server.
      
              * gdk/x11/gdkimage-x11.c: Remove some no-longer-needed
              calls to XFlush().
      
              * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_at_pointer):
              Use gdk_x11_display_grab/ungrab.
      1926dbc1
  14. 15 Mar, 2003 1 commit
    • Tor Lillqvist's avatar
      Use the signed GET_X_LPARAM() and GET_Y_LPARAM() to extract x and y · 935dca85
      Tor Lillqvist authored
      2003-03-14  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkevents-win32.c: Use the signed GET_X_LPARAM() and
      	GET_Y_LPARAM() to extract x and y coordinates from an LPARAM or
      	DWORD, and not the unsigned HIWORD() and LOWORD(). Systems with
      	multiple monitors can have negative coordinates on some of the
      	monitors. (partial fix for #99496, Arnaud Charlet)
      935dca85
  15. 13 Mar, 2003 2 commits
    • Tor Lillqvist's avatar
      On WM_MOUSEMOVE, the test whether we have actually moved (and thus · b2698b3a
      Tor Lillqvist authored
      2003-03-13  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkevents-win32.c (gdk_event_translate): On
      	WM_MOUSEMOVE, the test whether we have actually moved (and thus
      	shouldn't generate an GDK event) moved after the call to
      	propagate() and translate_mouse_coords(). Otherwise we were
      	testing wrong values. (#108115, Allin Cottrell)
      	(gdk_event_translate): On WM_?BUTTONUP, set current_{x,y} the same
      	way as in WM_?BUTTONDOWN and WM_MOUSEMOVE.
      b2698b3a
    • Tor Lillqvist's avatar
      if a grab cursor is used, must copy the HCURSOR with CopyCursor(), as it · 1e072f62
      Tor Lillqvist authored
      2003-03-13  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): if a grab cursor
      	is used, must copy the HCURSOR with CopyCursor(), as it is OK to
      	destroy the GdkCursor after calling gdk_pointer_grab(). Set the
      	cursor right away with SetCursor(), as we won't get any
      	WM_SETCURSOR messages while the mouse is captured.
      	(gdk_display_pointer_ungrab): Correspondingly, destroy the copy
      	with DestroyCursor() when no longer used. (#108114, Allin Cottrell)
      
      	* gdk/win32/gdkevents-win32.c (gdk_event_translate): On
      	WM_SYSCHAR, return FALSE from the window procedure to prevent the
      	DefWindowProc from being called. Otherwise Windows would beep,
      	thinking you are tring to access a (nonexistent) menu when you
      	press Alt-something. Don't do this for Alt-Space,
      	though. (#107454, Martyn Russell)
      
      	* gdk/win32/gdkcursor-win32.c: Minor spacing and debug print fixes.
      1e072f62
  16. 09 Mar, 2003 1 commit
  17. 08 Mar, 2003 2 commits
    • Matthias Clasen's avatar
      Bug #107664 continued: · 3db24eb8
      Matthias Clasen authored
      2003-03-08  Matthias Clasen  <maclas@gmx.de>
      
      	Bug #107664 continued:
      
      	* gdk/x11/gdkinputprivate.h:
      	* gdk/x11/gdkinput-none.c (_gdk_input_window_none_event): Remove.
      	(_gdk_input_other_event): Return gboolean.
      	* gdk/x11/gdkinput-xfree.c (_gdk_input_window_none_event): Remove.
      	(_gdk_input_other_event): Return gboolean.
      	* gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): Return gboolean.
      
      	* gdk/x11/gdkevents-x11.c (gdk_event_translate): Make return_val
      	gboolean, remove pointless call to _gdk_input_window_none_event.
      
      	* gdk/win32/gdkinput-win32.[hc] (_gdk_input_other_event): Return gboolean.
      	(_gdk_input_window_none_event): Remove.
      
      	* gtk/gtktextiter.c (_gtk_text_iter_get_indexable_segment):
      	(_gtk_text_iter_get_any_segment):
      	(_gtk_text_iter_get_segment_byte):
      	(_gtk_text_iter_get_segment_char):
      	(_gtk_text_iter_get_text_line):
      	(_gtk_text_iter_get_btree): Fix 0/NULL confusion.
      	* gdk/x11/gdkdnd-x11.c (motif_target_table_check): Return gint.
      	* gdk/win32/gdkfont-win32.c (gdk_font_equal):
      	* gdk/linux-fb/gdkwindow-fb.c (gdk_window_get_deskrelative_origin):
      	(gdk_window_get_origin):
      	* gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Fix 0/FALSE confusion.
      3db24eb8
    • Matthias Clasen's avatar
      Trivial cleanups (bug #107664) · d03b2741
      Matthias Clasen authored
      d03b2741
  18. 06 Mar, 2003 1 commit
    • Matthias Clasen's avatar
      Return gboolean, not gint. (#107664, Morten Welinder) · 285a25da
      Matthias Clasen authored
      2003-03-06  Matthias Clasen  <maclas@gmx.de>
      
      	* gdk/gdkrgb.c (gdk_rgb_try_colormap): Return gboolean, not gint.
      	(#107664, Morten Welinder)
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_get_deskrelative_origin):
      	* gdk/x11/gdkfont-x11.c (gdk_font_equal):
      	* gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
      	Fix TRUE/1 and FALSE/0 confusion.  (#107664, Morten Welinder)
      
      	* io-gif.c (gif_read): Fix 0/FALSE confusion (#107664, Morten Welinder)
      285a25da
  19. 02 Mar, 2003 1 commit
  20. 28 Feb, 2003 1 commit
    • Manish Singh's avatar
      demos/gtk-demo/main.c demos/gtk-demo/tree_store.c gdk/x11/gdkscreen-x11.c · dd74be94
      Manish Singh authored
      Thu Feb 27 17:44:24 2003  Manish Singh  <yosh@gimp.org>
      
              * demos/gtk-demo/main.c
              * demos/gtk-demo/tree_store.c
              * gdk/x11/gdkscreen-x11.c
              * gtk/gtkcellrenderertoggle.c
              * gtk/gtkcolorsel.c
              * gtk/gtkdnd.c
              * gtk/gtkeditable.c
              * gtk/gtkentry.c
              * gtk/gtkmenu.c
              * gtk/gtkmenubar.c
              * gtk/gtkmenuitem.c
              * gtk/gtkmenushell.c
              * gtk/gtkrc.c
              * gtk/gtksettings.c
              * gtk/gtkstyle.c
              * gtk/gtktextbuffer.c
              * gtk/gtktextview.c
              * gtk/gtktreeviewcolumn.c
              * tests/testgtk.c
              * tests/testtext.c
              * tests/testtreeedit.c
              * tests/testtreefocus.c
              * tests/testtreeview.c: remove unnecessary G_OBJECT() casts.
      dd74be94
  21. 19 Feb, 2003 1 commit
  22. 18 Feb, 2003 1 commit