1. 15 Dec, 2001 2 commits
    • Darin Adler's avatar
      Fix some warnings. · 20a870a6
      Darin Adler authored
      	* gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
      	g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
      	* gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
      	* gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
      	* gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
      	* gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
      	Restructure loop to get rid of uninitialized variable warning. Also
      	gives a tiny efficiency gain.
      20a870a6
    • Murray Cumming's avatar
      Fixed first arg type of GtkScale's format_value signal's function pointer. · e1bb381e
      Murray Cumming authored
      * Fixed first arg type of GtkScale's format_value signal's
      function pointer.
      e1bb381e
  2. 14 Dec, 2001 1 commit
  3. 13 Dec, 2001 5 commits
    • Sebastian Wilhelmi's avatar
      Remove assorted G_OBJECT casts where unnecessary. · d99bd97f
      Sebastian Wilhelmi authored
      
      2001-12-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* gdk-pixbuf-animation.c, gdk-pixbuf-loader.c, gdk-pixpuf.c,
      	io-gif-animation.c, io-gif.c, io-tiff.c, test-loaders.c: Remove
      	assorted G_OBJECT casts where unnecessary.
      
      	* gdk-pixbuf-loader.c: Call g_object_ref and g_object_unref
      	instead of gdk_pixbuf_animation_ref and gdk_pixbuf_animation_unref
      	resp.
      
      	* gdk-pixbuf-csource.c, io-bmp.c, io-gif-animation.c, io-ico.c,
      	io-jpeg.c, io-png.c, io-pnm.c, io-ras.c, io-tga.c, io-wbmp.c,
      	io-xbm.c, io-xpm.c, test-gdk-pixbuf.c: Dito for gdk_pixbuf_ref and
      	gdk_pixbuf_unref.
      
      	* Makefile.am, pixops/Makefile.am: Compile everything with
      	-DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED
      
      	* gdk-pixdata.c: Use g_ascii_strup() instead of g_strup().
      
      	* io-xpm.c: Use g_ascii_strcasecmp() instead of g_strcasecmp().
      
      	* demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
      	demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
      	and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
      	resp.
      d99bd97f
    • Kristian Rietveld's avatar
      free path at the end · d3403353
      Kristian Rietveld authored
      Thu Dec 13 22:02:41 2001  Kristian Rietveld   <kris@gtk.org>
      
              * gtk/gtktreeview.c (validate_visible_area): free path
              at the end
      d3403353
    • Matthias Clasen's avatar
      Markup fixes. · fc4a6b95
      Matthias Clasen authored
      
              * gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
      
              * gdk-pixbuf-io.c: Markup fixes.
      
              * gdk-pixbuf/tmpl/scaling.sgml, gdk/tmpl/fonts.sgml,
              gdk/tmpl/general.sgml, gdk/tmpl/rgb.sgml, gdk/tmpl/visuals.sgml,
              gdk/tmpl/windows.sgml, gtk/gtk-docs.sgml, gtk/tmpl/gtkaccellabel.sgml,
              gtk/tmpl/gtkcombo.sgml, gtk/tmpl/gtkdialog.sgml,
              gtk/tmpl/gtkdrawingarea.sgml, gtk/tmpl/gtkeditable.sgml,
              gtk/tmpl/gtkfilesel.sgml, gtk/tmpl/gtkfontseldlg.sgml,
              gtk/tmpl/gtkimage.sgml, gtk/tmpl/gtkmain.sgml, gtk/tmpl/gtkmenu.sgml,
              gtk/tmpl/gtkmessagedialog.sgml, gtk/tmpl/gtkobject.sgml,
              gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkradiobutton.sgml,
              gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtkscale.sgml, gtk/tmpl/gtksignal.sgml,
              gtk/tmpl/gtksocket.sgml, gtk/tmpl/gtkspinbutton.sgml,
              gtk/tmpl/gtktogglebutton.sgml, gtk/tmpl/gtksignal.sgml,
              gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwindow.sgml,
              gdk/tmpl/regions.sgml, gtk/tmpl/gtkfontsel.sgml,
              gtk/tmpl/gtkpixmap.sgml, gtk/tmpl/gtkprogress.sgml,
              gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtktable.sgml,
              gtk/tmpl/gtktipsquery.sgml: Markup fixes (mainly examples).
      fc4a6b95
    • Kristian Rietveld's avatar
      do not try to find the clicked node in the tree when tree == NULL · fe655f39
      Kristian Rietveld authored
      Thu Dec 13 20:37:27 2001  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
              to find the clicked node in the tree when tree == NULL
      fe655f39
    • Anders Carlsson's avatar
      Compare event->state with the default mod mask. · 5a3de51b
      Anders Carlsson authored
      2001-12-13  Anders Carlsson  <andersca@gnu.org>
      
      	* gtk/gtktreeview.c (gtk_tree_view_button_press): Compare
      	event->state with the default mod mask.
      5a3de51b
  4. 12 Dec, 2001 10 commits
    • jacob berkman's avatar
      s/obj/klass/ where appropriate · 3c9634c6
      jacob berkman authored
      2001-12-12  jacob berkman  <jacob@ximian.com>
      
      	* gtk/gtk*.h (GTK_IS_*_CLASS): s/obj/klass/ where appropriate
      3c9634c6
    • Owen Taylor's avatar
      Reset the existing slave before removing it to give it a chance to commit · 9a25f879
      Owen Taylor authored
      Wed Dec 12 17:22:45 2001  Owen Taylor  <otaylor@redhat.com>
      	* gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
      	Reset the existing slave before removing it to give
      	it a chance to commit and emit "preedit_changed"
      	in case there was still a preedit string.
      9a25f879
    • Matthias Clasen's avatar
      Typo fixes Typo fix. (#66746) · 43851fe0
      Matthias Clasen authored
              * gtk/gtktextlayout.c: Typo fixes
              * gtk/gtkwindow.c (gtk_window_set_position): Typo fix. (#66746)
      
              * gtk/gtkwidget.c (gtk_widget_send_expose, gtk_widget_get_toplevel,
              gtk_widget_get_default_direction): Doc fixes. (#66727, #66737, #66744)
      
              * gtk/gtkstyle.h (GTK_STYLE_NUM_STYLECOLORS): Remove. (#66467)
      
              * gtk/tmpl/gtklist.sgml: Markup fixes.
      
              * gdk/tmpl/selections.sgml, gtk/tmpl/gtksocket.sgml: s/succesful/successful/g.
      
              * gtk/gtk-sections.txt, gtk/tmpl/gtkstyle.sgml: Remove
              GTK_STYLE_NUM_STYLECOLORS. (#66467)
      43851fe0
    • Jonathan Blandford's avatar
      Remove validate_rows_timer in unrealize. Reported by Matthew Wilson. · f3f62347
      Jonathan Blandford authored
      Wed Dec 12 16:43:10 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_unrealize): Remove
      	validate_rows_timer in unrealize.  Reported by Matthew Wilson.
      f3f62347
    • Owen Taylor's avatar
      Remove support for "prepainting" the menu before realizing other than via · af7ab9c6
      Owen Taylor authored
      Wed Dec 12 16:18:26 2001  Owen Taylor  <otaylor@redhat.com>
              * gtk/gtkmenu.c (gtk_menu_realize): Remove support for
              "prepainting" the menu before realizing other than
              via gtk_style_set_background() - this was broken when
              we added menu scroll support.
              * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
              window in the expose event -- fixes problem with border
              flashing during scrolling.
      af7ab9c6
    • Owen Taylor's avatar
      Support using names/nicks for the gdk_settings values for enum valued · a906e7c6
      Owen Taylor authored
      Wed Dec 12 15:11:49 2001  Owen Taylor  <otaylor@redhat.com>
              * gtk/gtksettings.c (gtk_settings_get_property): Support
              using names/nicks for the gdk_settings values for enum valued
              types. (#57678, reported by Anders Carlsson)
      a906e7c6
    • Jonathan Blandford's avatar
      keep in sync with insert_page_menu. Code duplication is bad. · 59bdb19b
      Jonathan Blandford authored
      Wed Dec 12 15:01:33 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtknotebook.c (gtk_notebook_set_tab_label): keep in sync
      	with insert_page_menu.  Code duplication is bad.
      
      	* gtk/gtklabel.c (gtk_label_mnemonic_activate): Whoops -- got the
      	wrong fix yesterday.
      59bdb19b
    • Owen Taylor's avatar
      Fix check for modifiers. · a4d12691
      Owen Taylor authored
      Wed Dec 12 14:27:30 2001  Owen Taylor  <otaylor@redhat.com>
              * gtk/gtkmenubar.c (window_key_press_handler): Fix check for
              modifiers.
      a4d12691
    • James Henstridge's avatar
      check GTK_MENU_ITEM (menu_item)->accel_path first when looking up the · 44b9c2d1
      James Henstridge authored
      2001-12-12  James Henstridge  <james@daa.com.au>
      
      	* gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
      	(menu_item)->accel_path first when looking up the accel path.
      44b9c2d1
    • Owen Taylor's avatar
      Only draw for events on the bin window. · 389bc8eb
      Owen Taylor authored
      Tue Dec 11 19:18:21 2001  Owen Taylor  <otaylor@redhat.com>
      
              * tests/testgtk.c (layout_expose_handler): Only draw
              for events on the bin window.
      389bc8eb
  5. 11 Dec, 2001 8 commits
  6. 10 Dec, 2001 3 commits
  7. 09 Dec, 2001 3 commits
    • Jiri (George) Lebl's avatar
      check for 0 value on the denominator in the horizontal case just like we · c66ca2df
      Jiri (George) Lebl authored
      Sun Dec 09 15:06:51 2001  George Lebl <jirka@5z.com>
      
      	* gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
      	  denominator in the horizontal case just like we do in the vertical
      	  case (why I didn't notice that there were two cases the first time
      	  around is beyond me:).  Also fix indentation in the vertical case.
      c66ca2df
    • Anders Carlsson's avatar
      Update xsettings name. · 17f81739
      Anders Carlsson authored
      2001-12-09  Anders Carlsson  <andersca@gnu.org>
      
      	* gdk/x11/gdkevents-x11.c: Update xsettings name.
      
      	* gtk/gtkdnd.c (gtk_drag_check_threshold): Use the
      	gtk-dnd-drag-threshold GtkSetting.
      
      	* gtk/gtksettings.c (gtk_settings_class_init): Add
      	setting for dnd drag threshold.
      17f81739
    • Matthias Clasen's avatar
      Add docs. · 96cee90c
      Matthias Clasen authored
              * gtk/gtkcontainer.c: Add docs.
      
              * gtk/tmpl/gtkmain.sgml: Markup fixes.
      
              * gtk/gtk-docs.sgml: Add an empty entity to suppress
              crossreferencing in programlistings.
      96cee90c
  8. 08 Dec, 2001 8 commits
    • Matthias Clasen's avatar
      Doc markup fix. · 63b4e379
      Matthias Clasen authored
              * gtk/gtkwidget.c: Doc markup fix.
      
              * gtk/gtktreeviewcolumn.c: Markup fixes. (#66447)
      
              * gtk/gtktreestore.c: Typo fixes. (#66445)
      
              * gtk/gtkaccelgroup.c: Misc doc markup. (#66425)
      
              * gtk/gtkclipboard.c (gtk_clipboard_get_owner): Fix reference
              to gtk_clipboard_set_with_owner(). (#66424)
      
              * gtk/tmpl/gtkclipboard.sgml: Fix references to
              get_clipboard_set_with_owner(). (#66424)
      63b4e379
    • Christopher Blizzard's avatar
      Fallback to setting the prgname to "<unknown>" if someone doesn't pass in · 1d0e9b7f
      Christopher Blizzard authored
      Sat Dec  8 16:12:10 2001  Christopher Blizzard  <blizzard@redhat.com>
      
              * gdk/gdk.c (gdk_init_check): Fallback to setting the prgname to
              "<unknown>" if someone doesn't pass in a valid argc.  (Patch from
              Fabrice Bellet <fabrice@gnu.org>, #54127).
      1d0e9b7f
    • Jonathan Blandford's avatar
      Add debug spew to lots of places, so that people with crashy trees can · 6793f772
      Jonathan Blandford authored
      Sat Dec  8 10:04:54 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtkrbtree.c (_gtk_rbtree_debug_spew): Add debug spew to lots
      	of places, so that people with crashy trees can just run their
      	program with GTK_DEBUG=TREE.
      6793f772
    • Kristian Rietveld's avatar
      nuke the stamp++, per jrb's request · a6ce5ae3
      Kristian Rietveld authored
      Sat Dec  8 20:57:24 2001  Kristian Rietveld  <kristian@planet.nl>
      
              * gtk/gtkliststore.c (gtk_list_store_remove): nuke the stamp++,
              per jrb's request
      a6ce5ae3
    • Anders Carlsson's avatar
      Don't return TRUE since then the default GtkLayout expose handler won't be · 744e6f6f
      Anders Carlsson authored
      2001-12-08  Anders Carlsson  <andersca@gnu.org>
      
      	* tests/testgtk.c (layout_expose_handler): Don't return TRUE
      	since then the default GtkLayout expose handler won't be called.
      744e6f6f
    • Jonathan Blandford's avatar
      remove g_return_if_fail. · 9bec4e27
      Jonathan Blandford authored
      Fri Dec  7 23:42:50 2001  Jonathan Blandford  <jrb@webwynk.net>
      
      	* gtk/gtktreeview.c (validate_rows_handler): remove
      	g_return_if_fail.
      
      	* gtk/gtktreeview.c (validate_visible_area): Patch from Manish
      	Singh <yosh@gimp.org> to fix bug when rendering Tree with an
      	empty model.
      9bec4e27
    • Jonathan Blandford's avatar
      get logic right, #66249 · 82c5ace8
      Jonathan Blandford authored
      Fri Dec  7 20:06:14 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (validate_visible_area): get logic right,
      	#66249
      
      	* gtk/gtkrbtree.c (_gtk_rbtree_remove_node): fix bug where
      	removing a node ended up with a corrupt tree.  Really really nasty
      	bug.
      	(_gtk_rbtree_debug_spew): new debug helper function
      	(_fixup_validation): new inline function to clean up code
      	readability a lot.
      82c5ace8
    • Owen Taylor's avatar
      Close comment. · 203d7df3
      Owen Taylor authored
      Fri Dec  7 19:34:51 2001  Owen Taylor  <otaylor@redhat.com>
              * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
              Close comment.
      203d7df3