1. 06 Jun, 2002 1 commit
    • Owen Taylor's avatar
      Changes multihead reorganizing code for win32 support, mostly from a patch · aeaaae04
      Owen Taylor authored
      Wed Jun  5 18:34:47 2002  Owen Taylor  <otaylor@redhat.com>
      
      	Changes multihead reorganizing code for win32 support,
      	mostly from a patch by Hans Breuer.
      
      	* gdk/gdkcolor.c gdk/x11/gdkcolor-x11.c gdk/gdkcursor.c
      	  gdk/x11/gdkcursor-x11.c gdk/gdkevents.c gdk/x11/gdkevents-x11.c
      	  gdk/gdkfont.c gdk/x11/gdkfont-x11.c gdk/gdkkeys.c
      	  gdk/x11/gdkkeys-x11.c gdk/gdkimage.c gdk/x11/gdkimage-x11.c
      	  gdk/gdkscreen.c gdk/x11/gdkmain-x11.c
      	  gdk/gdkdisplay.c gdk/gdkevents-x11.c gdk/gdkpango.c
      	  gdk/x11/gdkpango-x11.c gdk/gdkselection.c
      	  gdk/x11/gdkselection-x11.c gdk/gdkwindow.c
      	  gdk/x11/gdkwindow-x11.c gdk/gdkvisual.c gdk/x11/gdkvisual-x11.c:
      	  Move port-independent singlehead wrapper functions into
      	  port-independent part of GDK. (#80009)
      
      	* gdk/win32/gdkcolor-win32.c gdk/win32/gdkcursor-win32.c
      	  gdk/win32/gdkevents-win32.c gdk/win32/gdkfont-win32.c
      	  gdk/win32/gdkimage-win32.c gdk/win32/gdkkeys-win32.c
      	  gdk/win32/gdkmain-win32.c gdk/win32/gdkproperty-win32.c
      	  gdk/win32/gdkselection-win32.c gdk/win32/gkwindow-win32.c:
      	Turn singlehead functions into "multihead" functions that ignore
      	their GdkDisplay or GdkScreen arguments.
      
      	* gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
      	gdk/win32/gdkinput-win32.c gdk/win32/gdkprivate-win32.h:
      	Misc multihead-compatibility changes.
      
      	* gtk/gtk.def gdk/gdk.def: Update for multihead functions.
      
      	* gdk/gdkcolormap.h gdk/gdkvisual.h gdk/x11/gdkcolormap-x11.c
      	gdk/x11/gdkvisual-x11.c: Remove the screen fields
      	from the public parts of the colormap/visual structures, add accessors
      	instead.
      
      	* gdk/gdkpixbuf-render.c gdk/gdkpixmap.c gdk/gdkrgb.c
      	  gdk/x11/gdkcolormap-x11.c gdk/x11/gdkimage-x11.c
      	  gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.h gtk/gtkgc.c
      	  gtk/gtkstyle.c gtk/gtkwidget.c: Use accessors to get the screen
      	for colormaps, visuals; move the fields into the private
      	structures for the x11 backend.
      
      	* gdk/gdkdisplay.[ch] gdk/x11/gdkdisplay-x11.[ch]
      	  gdk/gdkscreen.[ch] gdk/x11/gdkscreen-x11.c:
      	Remove virtualization of screen and display functions.
      	(#79990, patch from Erwann Chenede)
      
      	* gdk/win32/gdkdisplay-x11.c gdk/win32/gdkscreen-win32.c
      	gdk/win32/{Makefile.am, makefile.msc, makefile.mingw}:
      	New files containing stub implementations of Display,
      	Screen functions.
      
      	* gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
      	gdk/x11/gdkx.h: Clean up function exports and what
      	headers they are in. (#79954)
      
      	* gdk/x11/gdkx.h: Fix macro that was referring to a non-existant
      	screen->screen_num. (In the patch for #79972, Erwann Chenede)
      
      	* gdk/gdkscreen.c gdk/gdkwindow.c gdk/x11/gdkinternals.h
      	 gdk/x11/gdkscreen-x11.c: Fix gdk_screen_get_window_at_pointer()
      	to use window hooks. (#79972, patch partly from Erwann Chenede)
      
      	* gdk/x11/gdkdisplay-x11.c gdk/x11/gdkevents-x11.c: Fix
      	some warnings.
      aeaaae04
  2. 05 Jun, 2002 1 commit
    • Kristian Rietveld's avatar
      Related bugs: #76252, #76396, #80866. · 1df47f17
      Kristian Rietveld authored
      Wed Jun  5 23:29:41 2002  Kristian Rietveld  <kris@gtk.org>
      
              Related bugs: #76252, #76396, #80866.
      
              * gtk/gtktreeselection.[ch]: added
              gtk_tree_selection_get_selected_rows(),
              added gtk_tree_selection_count_selected_rows(),
              renamed gtk_tree_selection_real_select_range() to
              gtk_tree_selection_real_modify_range(), and added mode parameter,
              added gtk_tree_selection_unselect_range().
      1df47f17
  3. 04 Jun, 2002 5 commits
    • Owen Taylor's avatar
      If we have xft .pc file, use that when checking for Xft/Xrender. (Still · 9f224d08
      Owen Taylor authored
      Tue Jun  4 17:39:34 2002  Owen Taylor  <otaylor@redhat.com>
      
              * configure.in: If we have xft .pc file, use that
              when checking for Xft/Xrender. (Still need to separate
              out HAVE_XFT, HAVE_RENDER)
      
              * configure.in: Make sure Xft cflags come before X cflags.
      9f224d08
    • Kristian Rietveld's avatar
      added gtk_tree_view_expand_to_path. · 0219cc38
      Kristian Rietveld authored
      Tue Jun  4 21:13:57 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeview.[ch]: added gtk_tree_view_expand_to_path.
      0219cc38
    • Kristian Rietveld's avatar
      Discussed in #76249. · f39b189d
      Kristian Rietveld authored
      Tue Jun  4 19:24:41 2002  Kristian Rietveld  <kris@gtk.org>
      
              Discussed in #76249.
      
              * gtk/gtkliststore.[ch]: made gtk_list_store_remove return a gboolean,
              added gtk_list_store_iter_is_valid.
      
              * gtk/gtktreestore.[ch]: made gtk_tree_store_remove return a gboolean,
              added gtk_tree_store_iter_is_valid.
      
              * gtk/gtktreemodelsort.[ch]: added VALID_ITER macro as in liststore
              and treestore sources, added gtk_tree_model_sort_iter_is_valid.
      f39b189d
    • Kristian Rietveld's avatar
      add gtk_tree_model_get_string_from_iter (#74667). · 46006990
      Kristian Rietveld authored
      Tue Jun  4 19:18:20 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreemodel.[ch]: add gtk_tree_model_get_string_from_iter
              (#74667).
      46006990
    • Daniel Elstner's avatar
      [ merge from stable ] · ba8f8b4d
      Daniel Elstner authored
      2002-06-04  Daniel Elstner  <daniel.elstner@gmx.net>
      
      [ merge from stable ]
      
      * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render): Really fix #83796: Revert jrb's last patch, and move the second if-clause into the fist one's else-branch.  This is also what the other cell renderers do.
      ba8f8b4d
  4. 03 Jun, 2002 1 commit
  5. 01 Jun, 2002 1 commit
    • Jonathan Blandford's avatar
      add missing flag, #83796 · fce6c25f
      Jonathan Blandford authored
      Sat Jun  1 10:43:28 2002  Jonathan Blandford  <jrb@gnome.org>
      
      	* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
      	add missing flag, #83796
      fce6c25f
  6. 31 May, 2002 1 commit
  7. 30 May, 2002 3 commits
  8. 29 May, 2002 1 commit
  9. 28 May, 2002 1 commit
    • Matthias Clasen's avatar
      Markup fixes · 2aaf3c0e
      Matthias Clasen authored
      	* gtk/gtkwindow.c (gtk_window_move): Markup fixes
      
      	* gtk/gtkrc.c (gtk_rc_get_module_dir): Markup fixes.
      
      	* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_for_screen): Update docs
      	for Docbook XML.
      
      	* gtk/*, gdk/*, gdk-pixbuf/*: Create XML, not SGML.
      
      	* gtk/tmpl/*: Remove property documentation which comes from the
      	source now.
      
      	* gtk/building.sgml: Remove traces of gxi.
      2aaf3c0e
  10. 27 May, 2002 1 commit
    • Daniel Elstner's avatar
      [ merge from stable ] · 810e4880
      Daniel Elstner authored
      2002-05-27  Daniel Elstner  <daniel.elstner@gmx.net>
      
      [ merge from stable ]
      
      Fixes for #83190
      
      * gtk/gtktreedatalist.h (_GtkTreeDataList::data): Add missing fields to anonymous union: glong, gulong, gint64 and guint64.  This is an internal header file, so it should not affect ABI or API compatibility.
      
      * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value): Implement missing support for glong, gulong, gint64 and guint64 fundamental types.  Use data.v_uint instead of data.v_int for G_TYPE_FLAGS, as GValue does.
      (_gtk_tree_data_list_value_to_node): ditto
      (_gtk_tree_data_list_node_copy): Add case labels for missing fundamental types, and reorder them to match the other functions.
      (gtk_tree_data_list_compare_func): Implement comparison for glong, gulong, gint64 and guint64.  Use g_value_get_enum() for G_TYPE_ENUM and g_value_get_flags() for G_TYPE_FLAGS, rather than accessing them as gint/guint.  The G_VALUE_HOLDS() check probably won't like this.
      810e4880
  11. 24 May, 2002 2 commits
  12. 22 May, 2002 2 commits
  13. 21 May, 2002 1 commit
  14. 20 May, 2002 3 commits
  15. 18 May, 2002 1 commit
    • Matthias Clasen's avatar
      Check for endianness. · d2686aa9
      Matthias Clasen authored
      	* configure.in: Check for endianness.
      
      	* io-tiff.c (tiff_image_parse): fix packing order on bigendian
      	systems.  (#81702)
      d2686aa9
  16. 17 May, 2002 3 commits
    • Owen Taylor's avatar
      Re-add REBUILD_PNGS definition that got accidentally removed. · fa550e5f
      Owen Taylor authored
      Fri May 17 16:05:34 2002  Owen Taylor  <otaylor@redhat.com>
      
              * configure.in (REBUILD_PNGS):	Re-add REBUILD_PNGS
              definition that	got accidentally removed.
      fa550e5f
    • Owen Taylor's avatar
      Protect against reentrancy problems by emitting ::preedit_changed at the · 3fe86a48
      Owen Taylor authored
      Fri May 17 14:40:24 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
              Protect against reentrancy problems by emitting
              ::preedit_changed at the end, fixing input context
              leak. (Yao Zhang)
      
              * modules/input/gtkimcontextxim.c (status_window_free):
              Patch from Federico Mena Quintero to fix problem where
              references to IMContextXIM were kept around after
              module was unloaded.
      
              * gtk/gtkdnd.c (gtk_drag_dest_set): NULL initialize
              proxy window.
      3fe86a48
    • Owen Taylor's avatar
      Fix a missing unref in the local/passive case. (#82067, Michael Meeks) · f58d5530
      Owen Taylor authored
      Fri May 17 13:56:23 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkplug.c (gtk_plug_filter_func): Fix a missing
              unref in the local/passive case. (#82067, Michael
              Meeks)
      
              * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Fix
              reference leak on the plug window.
      
              * tests/testsocket.c (add_child): Fix memory leak.
      
              * gtk/gtkdnd.c (gtk_drag_dest_site_destroy): Unref
              the proxy window.
      f58d5530
  17. 16 May, 2002 10 commits
    • Owen Taylor's avatar
      Only optimize out the full configure handling if we got a gratuitous · 2bf6824f
      Owen Taylor authored
      Thu May 16 19:49:24 2002  Owen Taylor  <otaylor@redhat.com>
              * gtk/gtkwindow.c (gtk_window_configure_event): Only
              optimize out the full configure handling if we got
              a gratuitous configure event(configure_request_count == 0)
              and the size didn't change.
      
              * gtk/gtkwindow.c (gtk_window_move_resize): Use
              g_message(), not g_print() for debug spew.b
      
              * gtk/gtkwindow.c (gtk_window_real_set_focus): Ref
              the old and new focus widgets for the scope of
              the function.
      
              * gtk/gtksocket.c gtkplug.c: Remove various #if 0'd
              bits of old code.
      2bf6824f
    • Owen Taylor's avatar
      Thu May 16 18:47:29 2002 Owen Taylor <otaylor@redhat.com> ... · 20be61ee
      Owen Taylor authored
       Thu May 16 18:47:29 2002  Owen Taylor  <otaylor@redhat.com>                                                                                          * gtk/gtkwindow.c (gtk_window_show): Disable the         focus-some-widget code for GtkPlug descendants.                                                             * gtk/gtkplug.c (gtk_plug_focus_event): Eat        focus-in/out events since they can be generated        by keyboard grabs, but are spurious for an embeddded        widget. (#79196, Padraig O'Briain)        * gtk/gtksocket.c (gtk_socket_size_request): Only        pay attention to the minimum size hints, and changes        to that ... ignore the default size.        * gtk/gtksocket.c (gtk_socket_send_configure_event):        Pass in root-window relative coordinates as per        the ICCCM.                                                     * gtk/gtksocket.c (gtk_socket_size_allocate): Send        as many synthetic configures as necessary to make        up for ConfigureRequest events we got. (#78799,        Dave Camp.)
      20be61ee
    • Kristian Rietveld's avatar
      Merged from gtk-2-0. · 13dcd62e
      Kristian Rietveld authored
      Thu May 16 23:59:56 2002  Kristian Rietveld  <kris@gtk.org>
      
              Merged from gtk-2-0.
      
              * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed): set the prev
              of the next node correctly, so we don't corrupt the list and cause
              bad things. (fixes #71374)
      13dcd62e
    • Jonathan Blandford's avatar
      include missing #ifdef G_ENA\BLE_DEBUG · 100cde1c
      Jonathan Blandford authored
      Thu May 16 17:29:08 2002  Jonathan Blandford  <jrb@redhat.com>
      
              * gtk/gtkrbtree.c (_gtk_rbtree_remove): include missing #ifdef G_ENA\BLE_DEBUG
      100cde1c
    • Owen Taylor's avatar
      Fix typo in earlier patch. · 3dbc0d63
      Owen Taylor authored
      Thu May 16 15:44:15 2002  Owen Taylor  <otaylor@redhat.com>
      
              * demos/gtk-demo/editable_cells.c (cell_edited): Fix
              typo in earlier patch.
      3dbc0d63
    • Owen Taylor's avatar
      Don't filter control-shift+[non-hex]. (#80252, reported by Nalin · e1816d8d
      Owen Taylor authored
      Tue May  7 15:50:51 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress):
              Don't filter control-shift+[non-hex].
              (#80252, reported by Nalin Dahyabhai)
      e1816d8d
    • Owen Taylor's avatar
      Fixes for #78258 · 85a8bdb1
      Owen Taylor authored
      Thu May 16 14:51:14 2002  Owen Taylor  <otaylor@redhat.com>
      
              Fixes for #78258
      
              * gtk/gtkrbtree.c demos/gtk-demo/editable-cells.c:
              Fix some 64-bit warning problems. (Patch from Matthias
              Clasen.)
      
              * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew_helper): Surround
              a bunch of debug code with G_ENABLE_DEBUG.
      
              * configure.in demos/gtk-demo/main.c: Replace
              #ifndef G_OS_WIN32 with proper #ifdef HAVE_FLOCKFILE.
      85a8bdb1
    • Owen Taylor's avatar
      Fix a missed check for division by zero. (#77820, Gareth Pearce) · ce5029df
      Owen Taylor authored
      Thu May 16 12:56:38 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkrange.c (gtk_range_calc_layout): Fix a missed
              check for division by zero. (#77820, Gareth Pearce)
      ce5029df
    • Owen Taylor's avatar
      gdk_event_put() copies the event and setting name, so we don't have to · bcce8104
      Owen Taylor authored
      Thu May 16 12:50:13 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkevents-x11.c (gdk_xsettings_notify_cb):
              gdk_event_put() copies the event and setting name,
              so we don't have to strdup() it here. (Fix from
              Michael Meeks, #81953)
      bcce8104
    • Ettore Perazzoli's avatar
      If the menu is scrolled down or up, and some of the widget area is empty, · ff784b97
      Ettore Perazzoli authored
      * gtk/gtkmenu.c (gtk_menu_paint): If the menu is scrolled down or
      up, and some of the widget area is empty, don't fill it in with
      GTK_SHADOW_IN rectangles that make it looks strange.  Fixes
      #72695.
      ff784b97
  18. 15 May, 2002 2 commits
    • Owen Taylor's avatar
      Don't call gdk_pointer_grab() to change the cursor if we've already · f642876f
      Owen Taylor authored
      Wed May 15 18:15:45 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Don't
              call gdk_pointer_grab() to change the cursor if we've
              already ungrabbed on button release / escape.
              (#80420, Dave Camp)
      f642876f
    • Owen Taylor's avatar
      Special case menu items to pop down on motion. (#75961) · 70d78734
      Owen Taylor authored
      Wed May 15 17:12:50 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtktooltips.c: Special case menu items to
              pop down on motion. (#75961)
      
              * tests/testgtk.c (create_item_factory): Add tooltips
              to the File menu.
      
              * gtk/gtkentry.c (update_im_cursor_location): Fix
              cursor locations passed to the IM context.
              (#80027, Yao Zhang)
      70d78734