1. 03 Mar, 2000 1 commit
    • Tor Lillqvist's avatar
      Store just pixel value of background colour. · 5a4e1abb
      Tor Lillqvist authored
      2000-03-04  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
      just pixel value of background colour.
      
      * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
      containing code snippet previously duplicated in a couple of
      places.
      
      * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
      gdk_colormap_color.
      
      * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
      GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
      events for autorepeated Shift, Control and Alt keys. Use
      gdk_colormap_color.
      
      * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
      pointer is inside the window the cursor of which we are setting,
      call SetCursor immediately.
      
      * gdk/win32/makefile.cygwin
      * gtk/makefile.cygwin: If we don't have the build number stamp
      file, use zero.
      
      * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
      gtk_paned_set_gutter_size as empty.
      
      * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
      5a4e1abb
  2. 29 Feb, 2000 1 commit
    • GMT 2000  Tony Gale's avatar
      Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org> · 6ab26599
      GMT 2000 Tony Gale authored
      Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
      
              * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
                gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
                docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
                docs/gtk_tut.sgml docs/gtk.texi TODO:
                Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
      6ab26599
  3. 26 Feb, 2000 1 commit
  4. 25 Feb, 2000 2 commits
  5. 24 Feb, 2000 2 commits
  6. 23 Feb, 2000 2 commits
    • Jonathan Blandford's avatar
      add a 'paned' mode to the function to let it draw the seven dots, instead · 6654a228
      Jonathan Blandford authored
      2000-02-23  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
      	the function to let it draw the seven dots, instead of the old,
      	much maligned, method.
      	(draw_dot): New function to draw a dot.
      
      	* gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
      	to draw the handle inside the border width as opposed to outside.
      	Use paint function instead of gdk_draw_point.
      
      	* gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
      	to draw the handle inside the border width as opposed to outside.
      	Use paint function instead of gdk_draw_point.
      
      	* gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
      	Change indenting to be more GTK like.
      6654a228
    • GMT 2000  Tony Gale's avatar
      New section on GtkCalendar Update example code · 2444c80f
      GMT 2000 Tony Gale authored
      Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
      
              * docs/gtk_tut.sgml: New section on GtkCalendar
              * examples/calendar: Update example code
      2444c80f
  7. 22 Feb, 2000 1 commit
    • GMT 2000  Tony Gale's avatar
      FAQ Update · 92b4a139
      GMT 2000 Tony Gale authored
      Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
      
              * docs/gtkfaq.sgml: FAQ Update
      92b4a139
  8. 19 Feb, 2000 1 commit
  9. 18 Feb, 2000 2 commits
    • Anders Carlsson's avatar
      Fix my e-mail address · 797d3454
      Anders Carlsson authored
      797d3454
    • Owen Taylor's avatar
      Remove OwnerGrabButtonMask from button entries for GDK_BUTTON_PRESS / · c8a2382b
      Owen Taylor authored
      Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
      	OwnerGrabButtonMask from button entries for
      	GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
      
      	* gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
      	to the event mask (which will result in button/press release
      	being added to the event mask on Unix) so scrolling works
      	for layouts in scroll windows.
      
      	* gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
      
      	Patch from Anders Carlsson  <andersca@picard.andersnet> to add
      	a scroll event.
      
       	* gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
       	scrolling to the "Test Scrolling" part of testgtk.
      
       	* gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
      
       	* gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
       	it against GDK_SCROLL.
      
       	* gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
       	way of mouse wheel scrolling.
      
       	* gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
      
       	* gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
      
       	* gtk/gtkmain.c: Removed previous mouse wheel hack.
      
       	* gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
       	gdk_event_mask_table.
      
       	* gdk/x11/gdkevents-x11.c (gdk_event_translate): Added
       	GdkEventScroll handler.
      
       	* gdk/gdkevents.h: Added GdkEventScroll structure.
      c8a2382b
  10. 17 Feb, 2000 1 commit
    • Owen Taylor's avatar
      Add patch from Jonathan Blandford and Anders Carlsson to change the Paned · ab1deac8
      Owen Taylor authored
      Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
      	and Anders Carlsson to change the Paned widgets so that they
      	can be dragged from anywhere along the length. Also change
      	the way that this is drawn to make this apparent.
      
      	* gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
      	from George Lebl to check that option_menu->menu is present
      	before getting history.
      ab1deac8
  11. 13 Feb, 2000 4 commits
    • Tor Lillqvist's avatar
      Move the test for no segments before the assertion for non-NULL segment · 37cfb7d7
      Tor Lillqvist authored
      2000-02-14  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
      before the assertion for non-NULL segment list.
      
      * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
      Seems that pattern brushes *must* be 8x8 pixels! At least on my
      machine, but it might be display driver dependent. Sigh, so make
      sure the stipple is that size. Does Windows suck or what?
      
      * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
      places.
      37cfb7d7
    • Havoc Pennington's avatar
      init refcount to 1 (gdk_cursor_new): init refcount to 1 · 95a9052d
      Havoc Pennington authored
      2000-02-13  Havoc Pennington  <hp@pobox.com>
      
      	* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
      		refcount to 1
      			(gdk_cursor_new): init refcount to 1
      
      				* gdk/win32/gdkcursor-win32.c
      (gdk_cursor_new): init refcount to 1
      95a9052d
    • Tor Lillqvist's avatar
      Add an extra parameter so that we don't have to do unnecessary settings to · ff99eb7c
      Tor Lillqvist authored
      2000-02-13  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
      so that we don't have to do unnecessary settings to the HDC.
      
      * gdk/win32/gdkdrawable-win32.c
      * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
      gdk_gc_predraw.
      
      * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
      the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
      GDI paths, call WidenPath to get the outline of the stroken path,
      and then fill the outline (with the brush that was built from the
      stipple).
      
      * gdk/win32/gdkgc-win32.c: Factor out common code from
      _gdk_win32_gc_new and gdk_win32_gc_set_values into
      gdk_win32_gc_values_to_win32values.
      
      * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
      gdk_win32_api_failed): New functions for error logging.
      
      * gdk/win32/gdkprivate-win32.h: Declare them, and a macro
      WIN32_API_FAILED to call them, passing function or file name and
      line number.
      
      * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
      
      * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
      GdkColor for foreground and background in GdkGCWin32Data.
      
      * gdk/makefile.cygwin: Link in the resource object separately.
      
      * gdk/win32/rc/gdk.rc
      * gtk/gtk.rc (New file)
      * gdk/win32/makefile.cygwin
      * gtk/makefile.cygwin: Update build number in DLLs automatically,
      as in GLib.
      ff99eb7c
    • Tim Janik's avatar
      s/refcount/ref_count/. · ef03cb52
      Tim Janik authored
      Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
      
              * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
              * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap):
              * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy):
              * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
              parameters given and cursor->ref_count. coding style fixups.
      
              * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
              not GtkWidget.
      
              * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
              fix up widget macros and add _GET_CLASS() variant.
      
              * gtk/*.c: some GtkType fixups.
      ef03cb52
  12. 09 Feb, 2000 1 commit
  13. 03 Feb, 2000 2 commits
    • Tor Lillqvist's avatar
      Argh, decided not to return a string that must be freed from · a30c4b9e
      Tor Lillqvist authored
      gtk_file_selection_get_filename after all, as that would
      cause memory leaks in all apps that use it unless they
      specifically checked fot the GTk+ version.
      
      gtk_file_selection_get_filename returns the filename in the C
      runtime encoding. It calls g_filename_from_utf8, but copies the
      returned string to a static buffer, which is returned. I think
      this is better than returning the result from g_filename_from_utf8
      directly, which would mean all apps that use it would have to free
      the return value. Or should this function care about this issue at
      all? Maybe a new function with clearly defined semantics.
      a30c4b9e
    • Tor Lillqvist's avatar
      Use g_filename_to_utf8 to convert the font names Windows gives us from · e57b1afa
      Tor Lillqvist authored
      2000-02-04  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
      g_filename_to_utf8 to convert the font names Windows gives us from
      whatever is the default codepage to UTF-8.
      (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
      in the other direction.
      
      * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
      error in debugging output.
      
      2000-02-02  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
      and height parameters to gdk_window_clear_area(). Not minus one.
      
      2000-02-01  Tor Lillqvist  <tml@iki.fi>
      
      * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
      g_filename_from_utf8 functions (which were added a moment ago to
      GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
      size buffers.
      
      * gtk/gtkfilesel.h: Add comment about
      gtk_file_selection_get_filename returning the filename in the C
      runtime's encoding.
      
      * README.win32
      * gdk/gdk.def
      * gdk/makefile.{cygwin,msc}
      * gtk/gtk.def: Updates.
      
      * gdk/gdkcursor-win32.c: Initialise refcount.
      e57b1afa
  14. 01 Feb, 2000 1 commit
  15. 30 Jan, 2000 1 commit
  16. 29 Jan, 2000 1 commit
    • Havoc Pennington's avatar
      use gdk_cursor_unref instead of destroy · 4d48b106
      Havoc Pennington authored
      2000-01-30  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
      		destroy
      
      			* gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
      
      				* gdk/gdkprivate.h: declare
      _gdk_cursor_destroy which is then
      	implemented in platform-specific code
      
      		* gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
      
      			* gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy):
      rename with an
      	underscore in front
      
      		* gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
      			put an underscore in front
      
      				* gdk/gdkcursor.c: new file, implements
      					gdk_cursor_ref/gdk_cursor_unref
      
      						* gdk/gdkcursor.h: Refcount GdkCursor
      
      							* gdk/gdkcompat.h
      (gdk_cursor_destroy): compat
      4d48b106
  17. 28 Jan, 2000 1 commit
  18. 25 Jan, 2000 1 commit
    • Owen Taylor's avatar
      Fix · 016a4515
      Owen Taylor authored
      Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
      016a4515
  19. 24 Jan, 2000 1 commit
    • Owen Taylor's avatar
      Added lib/gtk+/include/* to %files (bug #5178 - Peter Wainright) · e91d0a6b
      Owen Taylor authored
      Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk+.spec.in: Added lib/gtk+/include/* to %files
      	(bug #5178 - Peter Wainright)
      
      	* gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
      	so that it will be installed.
      	(bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
      e91d0a6b
  20. 21 Jan, 2000 2 commits
  21. 18 Jan, 2000 1 commit
    • Tor Lillqvist's avatar
      The correct semantics (to mimic the X11 backend, which just calls · cf51b479
      Tor Lillqvist authored
      2000-01-19  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
      semantics (to mimic the X11 backend, which just calls XClearArea)
      is to check for zero width (and height), and in that case use the
      window's width minus x (height minus y). This fixes for instance
      some redraw problems with gtkclist, which were easily noticeable
      in the gtk file selection widget.
      
      (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
      windows.
      cf51b479
  22. 15 Jan, 2000 1 commit
  23. 09 Jan, 2000 1 commit
  24. 05 Jan, 2000 1 commit
  25. 02 Jan, 2000 2 commits
  26. 30 Dec, 1999 1 commit
    • Tor Lillqvist's avatar
      gdk/win32/gdkprivate-win32.h gdk/win32/gdkevents-win32.c · 605c562f
      Tor Lillqvist authored
      1999-12-30  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkprivate-win32.h
      * gdk/win32/gdkevents-win32.c
      * gdk/win32/gdkinput-win32.c
      * gdk/win32/gdkwindow-win32.c: Remove the superfluous
      extension_events field in the GdkWindowWin32Data struct. Use only
      the extension_events field in GdkWindowPrivate. Previously one was
      set, and the other one tested, which broke tablet functionality.
      605c562f
  27. 29 Dec, 1999 1 commit
    • Tor Lillqvist's avatar
      If we don't HAVE_XCONVERTCASE we must #include gdkkeysyms.h to get the · 68a6e7be
      Tor Lillqvist authored
      1999-12-30  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
      gdkkeysyms.h to get the GDK_* keysym constants that are needed by
      gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
      doesn't do anything.
      
      * gdk/gdk.def: Add gdk_xid_table_insert.
      68a6e7be
  28. 18 Dec, 1999 1 commit
  29. 12 Dec, 1999 1 commit
  30. 11 Dec, 1999 1 commit
    • Tor Lillqvist's avatar
      gdk/Makefile.am Distribute Win32 files. · 4f5b0142
      Tor Lillqvist authored
      1999-12-11  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/Makefile.am
      * gdk/win32/Makefile.am: Distribute Win32 files.
      
      * gdk/makefile.msc: New file.
      
      * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
      after label).
      
      * gdk/win32/makefile.msc: Update.
      4f5b0142