1. 07 Feb, 2008 1 commit
    • Michael Natterer's avatar
      gtk/gtkcellview.c gtk/gtklabel.c gtk/gtklayout.c gtk/gtklist.c · ac6c3719
      Michael Natterer authored
      2008-02-07  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkcellview.c
      	* gtk/gtklabel.c
      	* gtk/gtklayout.c
      	* gtk/gtklist.c
      	* gtk/gtkmenu.c
      	* gtk/gtkmenushell.c
      	* gtk/gtkmisc.c
      	* gtk/gtkoptionmenu.c
      	* gtk/gtkplug.c
      	* gtk/gtkpreview.c
      	* gtk/gtkprogress.c
      	* gtk/gtkradiomenuitem.c
      	* gtk/gtkscale.c
      	* gtk/gtkscrolledwindow.c
      	* gtk/gtksocket.c: remove g_return_if_fail() from private
      	functions and virtual function implementations.
      
      
      svn path=/trunk/; revision=19492
      ac6c3719
  2. 09 Mar, 2007 1 commit
  3. 10 Sep, 2006 1 commit
  4. 29 Aug, 2006 1 commit
    • Tim Janik's avatar
      introduced ::xspacing and ::yspacing style properties which make all · 7726d989
      Tim Janik authored
      Fri Jul 14 16:13:37 2006  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkprogressbar.c: introduced ::xspacing and ::yspacing style
              properties which make all hardcoded padding and spacing values
              configurable. properly swap ::text-xalign treatment for RTL widgets.
      
              * gtk/gtkprogress.c: fixed style property blurbs. made alignment
              proeprty more consistent with GtkMisc alignment blurbs. mention
              RTL treatment for text-xalign.
      7726d989
  5. 06 Jul, 2006 1 commit
  6. 29 Jun, 2006 1 commit
    • Matthias Clasen's avatar
      Documentation additions and fixes. · f8f93845
      Matthias Clasen authored
      2006-06-28  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkprinter.c:
              * gtk/gtkprintunixdialog.c:
              * gtk/gtkprintoperationpreview.c:
              * gtk/gtkprintcontext.c (gtk_print_context_set_cairo_context):
              * gtk/gtklabel.c (gtk_label_set_line_wrap_mode):
              * gtk/gtkentry.c (gtk_entry_new):
              * gtk/gtkprintoperation.c (gtk_print_operation_set_custom_tab_label):
              * gtk/gtkclipboard.c (gtk_clipboard_wait_for_rich_text): Documentation
              additions and fixes.
      
              * gtk/gtkaspectframe.h:
              * gtk/gtkaboutdialog.c:
              * gtk/gtkcalendar.c:
              * gtk/gtkinputdialog.c:
              * gtk/gtk.symbols: Remove unnecessary includes.
      
              * gtk/gtkprogress.[hc]:
              * gtk/gtkitemfactory.[hc]: Don't unnecessarily use GTK_COMPILATION,
              remove unnecessary includes.
      f8f93845
  7. 12 Jun, 2006 1 commit
  8. 14 May, 2006 1 commit
  9. 02 May, 2006 1 commit
  10. 17 Jan, 2006 1 commit
  11. 23 Nov, 2005 1 commit
    • Tim Janik's avatar
      deprecated floating/sink API and implemented it in terms of the GObject · fbb2e3f4
      Tim Janik authored
      Wed Nov 23 18:55:47 2005  Tim Janik  <timj@imendio.com>
      
              * gtk/gtkobject.[hc]: deprecated floating/sink API and implemented it
              in terms of the GObject floating/sink API.
      
              * gtk/gtkaboutdialog.c:
              * gtk/gtkaction.c:
              * gtk/gtkcellview.c:
              * gtk/gtkclist.c:
              * gtk/gtkcolorsel.c:
              * gtk/gtkcombobox.c:
              * gtk/gtkfilechooserdefault.c:
              * gtk/gtkiconview.c:
              * gtk/gtkinvisible.c:
              * gtk/gtkitemfactory.c:
              * gtk/gtklayout.c:
              * gtk/gtkmenu.c:
              * gtk/gtkmenutoolbutton.c:
              * gtk/gtknotebook.c:
              * gtk/gtkprogress.c:
              * gtk/gtkrange.c:
              * gtk/gtkspinbutton.c:
              * gtk/gtkstatusicon.c:
              * gtk/gtktext.c:
              * gtk/gtktextview.c:
              * gtk/gtktoolbar.c:
              * gtk/gtktoolbutton.c:
              * gtk/gtktoolitem.c:
              * gtk/gtktreeitem.c:
              * gtk/gtktreeview.c:
              * gtk/gtktreeviewcolumn.c:
              * gtk/gtkuimanager.c:
              * gtk/gtkviewport.c:
              * gtk/gtkwidget.c:
              * gtk/gtkwindow.c:
              ported to use GObject's g_object_ref_sink().
      
              * gtk/gtkcolorsel.c:
              * gtk/gtkfilechooserdefault.c:
              * gtk/gtkaboutdialog.c:
              fixed compiler warnings.
      fbb2e3f4
  12. 01 Sep, 2005 1 commit
    • Matthias Clasen's avatar
      Intern some more strings. · 94eec042
      Matthias Clasen authored
      2005-09-01  Matthias Clasen  <mclasen@redhat.com>
      
              * gdk/*.c: Intern some more strings.
              * gtk/gtkintl.h:
              * gtk/*.c: Define an I_() macro and use it instead of the
              bulky g_intern_static_string().
      94eec042
  13. 31 Aug, 2005 1 commit
    • Matthias Clasen's avatar
      Intern type names in code generated by glib-mkenums, too. · c09cc893
      Matthias Clasen authored
      2005-08-31  Matthias Clasen  <mclasen@redhat.com>
      
      	* gdk/Makefile.am:
      	* gtk/Makefile.am: Intern type names in code generated by
      	glib-mkenums, too.
      
      	* gtk/*.c:
      	* gdk/x11/*.c:
      	* gdk/*.c: Intern type names before registering the type to avoid
      	unnecessary copies.
      c09cc893
  14. 26 Mar, 2005 1 commit
  15. 22 Mar, 2005 1 commit
  16. 20 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · cca8dd63
      Matthias Clasen authored
      2005-03-20  Matthias Clasen  <mclasen@redhat.com>
      
      	Make PLT-reduction work with gcc4, and don't include
      	everything in gdkalias.h:
      
      	* gtk/grk.symbols: Group symbols by header and source file.
      	* gtk/makegtkalias.pl: Protect definitions by the same
      	preprocessor symbols used to guard the headers. Move
      	the alias declarations to a separate file which is
      	produced when calling makegtkalias.pl -def
      	* gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate
      	this file.
      	* gtk/*.c: Include gtkalias.h after the other headers,
      	include gtkaliasdef.c at the bottom.
      	* gtk/*.h: Small cleanups.
      cca8dd63
  17. 09 Mar, 2005 1 commit
  18. 28 Oct, 2004 1 commit
  19. 09 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      Add hidden aliases for exported symbols which are used internally in order · 3612aee5
      Matthias Clasen authored
      Mon Aug  9 12:48:04 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Add hidden aliases for exported symbols which are
      	used internally in order to get rid of many PLT
      	entries.  (#145519, Arjan van de Ven)
      
      	* gtk/Makefile.am: Add rules to generate gtk.def and
      	from gtk.symbols, and make make check check the abi
      	with abicheck.sh.
      	(gtk_private_h_sources): Add gtkinternals.h
      	(gtk_built_private_headers): Add gtkalias.h
      	(gtk_extra_sources): Add gtk.symbols
      	(EXTRA_DIST): Add makegtkalias.pl and abicheck.sh
      
      	* gtk/gtk.symbols: New file. Definition of the GTK+ ABI.
      	The file can be processed by cpp to filter out certain
      	subsets of symbols.
      
      	* gtk/abicheck.sh: New file. Script to check the actually
      	symbols exported from libgtk-x11.2.0.so against the symbols
      	found in gtk.symbols.
      
      	* gtk/makegtkalias.pl: New file. Perl script to generate the
      	header containing the alias definitions for internally used
      	exported symbols from a list of symbols.
      
      	* gtk/gtkinternals.h: New file. An uninstalled header listing
      	symbols which must be exported for some reason and do not appear
      	in any other header.
      
      	* gtk/*.c: Include gtkalias.h
      3612aee5
  20. 06 Mar, 2004 1 commit
  21. 16 Jan, 2004 1 commit
    • Matthias Clasen's avatar
      The first part of the fix for #114351 (see also gdk-pixbuf/ChangeLog and · 07d4d314
      Matthias Clasen authored
      Fri Jan 16 23:59:01 2004  Matthias Clasen  <maclas@gmx.de>
      
      	The first part of the fix for #114351 (see also
      	gdk-pixbuf/ChangeLog and po/ChangeLog):
      
      	* gtk/gtkintl.h:
      	* gdk-pixbuf/gdk-pixbuf-i18n.h:
      	* gdk/gdkintl.h: Define P_() for property blurbs and nicks.
      
      	* gdk/gdkdisplaymanager.c:
      	* gdk-pixbuf/gdk-pixbuf.c:
      	* modules/input/gtkimcontextxim.c:
      	* gtk/*.c:  Mark property blurbs and nicks with P_().
      
      	* po/Makefile.in.in: Add --keyword=P_ to the xgettext
      	invocation, since property blurbs and nicks are
      	now marked with P_().
      07d4d314
  22. 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
  23. 21 May, 2003 1 commit
    • Owen Taylor's avatar
      Always queue a resize ... we rely on the size-allocate to do the update, · e47517cd
      Owen Taylor authored
      Wed May 21 15:53:14 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkprogress.c (gtk_progress_set_format_string,
              gtk_progress_set_show_text): Always queue a resize ...
              we rely on the size-allocate to do the update, plus a
              different format can actually change our size requisition.
              (#111052)
      
              * gtk/gtkprogress.c (gtk_progress_changed): Track
              ::changed as well as ::value_changed, and queue a
              resize on ::changed when necessary.
      
              * gtk/gtkprogress.c (gtk_progress_set_adjustment):
              Call gtk_progress_changed() here to update or
              queue a resize as necessary.
      e47517cd
  24. 02 Apr, 2003 1 commit
    • Matthias Clasen's avatar
      Return 0 if lower == upper. (#109155) · 8653097b
      Matthias Clasen authored
      2003-04-02  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkprogress.c (gtk_progress_get_percentage_from_value):
      	Return 0 if lower == upper.  (#109155)
      	(gtk_progress_get_current_percentage): Use
      	gtk_progress_get_percentage_from_value().
      8653097b
  25. 15 Dec, 2002 1 commit
    • Matthias Clasen's avatar
      Use g_printf instead of system printf. (#99327) · 8ba71578
      Matthias Clasen authored
      2002-12-15  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkcalendar.c:
      	* gtk/gtkfilesel.c:
      	* gtk/gtkfontsel.c:
      	* gtk/gtkhruler.c:
      	* gtk/gtkinputdialog.c:
      	* gtk/gtkprogress.c:
      	* gtk/gtktreemodel.c:
      	* gtk/gtkvruler.c:
      	* gtk/queryimmodules.c:
      	* gtk/theme-bits/decompose-bits.c:
      	* gdk-pixbuf/gdk-pixbuf-csource.c:
      	* gdk-pixbuf/make-inline-pixbuf.c:
      	* gdk-pixbuf/queryloaders.c:
      	* gdk/gdkkeynames.c:
      	* gdk/gdkrgb.c:
      	* gdk/linux-fb/gdkfbmanager.c:
      	* gdk/win32/gdkevents-win32.c:
      	* gdk/win32/gdkmain-win32.c:
      	* gdk/win32/gdkproperty-win32.c:
      	* gdk/x11/gdkmain-x11.c: Use g_printf instead of system
      	printf.  (#99327)
      8ba71578
  26. 20 Nov, 2002 1 commit
    • Manish Singh's avatar
      add -DGTK_DISABLE_DEPRECATED. #undef it at the top of gtktypebuiltins.c. · bc035915
      Manish Singh authored
      Tue Nov 19 17:05:51 2002 Manish Singh  <yosh@gimp.org>
      
      	* gtk/Makefile.am: add -DGTK_DISABLE_DEPRECATED. #undef it at the
      	top of gtktypebuiltins.c.
      
      	* gtk/gtkclist.c
      	* gtk/gtkcombo.c
      	* gtk/gtkctree.c
      	* gtk/gtklist.c
      	* gtk/gtklistitem.c
      	* gtk/gtkoldeditable.c
      	* gtk/gtkpixmap.c
      	* gtk/gtkpreview.c
      	* gtk/gtksignal.c
      	* gtk/gtktext.c
      	* gtk/gtktipsquery.c
      	* gtk/gtktree.c
      	* gtk/gtktreeitem.c
      	* gtk/gtktypeutils.c: #undef GTK_DISABLE_DEPRECATED, deprecated widgets
      	and compat code.
      
      	* gtk/gtkcolorsel.c: move gtk_color_selection_set_color implementation
      	to set_color_internal, and use that. The deprecated function now
      	merely wraps it.
      
      	* gtk/gtkfontsel.c: same as above, except with
      	gtk_font_selection_get_font.
      
      	* gtk/gtknotebook.c: same as above, except with
      	gtk_notebook_set_homogeneous, and gtk_notebook_set_tab_{border,
      	hborder,vborder}.
      
      	* gtk/gtkprogressbar.c: same as above, except with
      	gtk_progress_bar_set_{bar_stype,discrete_blocks,activity_step,
      	activity_blocks}.
      
      	* gtk/gtkstyle.c: same as above, except with gtk_style_get_font.
      
      	* gtk/gtkwidget.c: same as above, except with gtk_widget_set_usize.
      
      	* gtk/gtkitemfactory.h: declare compatibility functions for deprecated
      	GtkMenuFactory stuff if GTK_COMPILATION, since they are used
      	internally by the compat code.
      
      	* gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove
      	use of deprecated gtk_check_menu_item_set_show_toggle (it is a noop
      	now).
      
      	* gtk/gtkmain.c: replaced deprecated GTK_TYPE_* with G_TYPE_*.
      
      	* gtk/gtkobject.c: replaced various deprecated functions. In set and
      	get_property, use g_object_{set,get}_data with "user_data" instead
      	of gtk_object_{set,get}_user_data.
      
      	* gtk/gtkprogress.h: API declared if GTK_COMPILATION
      
      	* gtk/gtkprogress.c: port get_type to GObject API.
      
      	* gtk/gtktypeutils.h: declare GtkArg stuff and gtk_type_init,
      	if GTK_COMPILATION.
      
      	* gtk/gtkwidget.c: define gtk_widget_queue_clear in terms of
      	gtk_widget_queue_draw instead of the other way around.
      
      	* tests/Makefile.am: define -DGTK_DISABLE_DEPRECATED
      
      	* tests/testgtk.c
      	* tests/testselection.c
      	* tests/testsocket.c: #undef GTK_DISABLE_DEPRECATED, makes use of
      	deprecated stuff.
      bc035915
  27. 08 Oct, 2002 1 commit
    • Manish Singh's avatar
      Deprecation cleanup · 951e2027
      Manish Singh authored
      Tue Oct  8 15:25:53 2002  Manish Singh  <yosh@gimp.org>
      
              * gtk/gtkhpaned.[ch] gtk/gtkpaned.[ch] gtk/gtkprogress.[ch]
              gtk/gtkprogressbar.[ch] gtk/gtkvpaned.[ch]: Deprecation cleanup
      951e2027
  28. 24 Sep, 2002 1 commit
  29. 23 Sep, 2002 1 commit
    • Owen Taylor's avatar
      Restore back to the default format instead of an empty format. · 1b1f2458
      Owen Taylor authored
      Mon Sep 23 18:53:35 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkprogressbar.c (gtk_progress_bar_set_text):
              Restore back to the default format instead of an
              empty format.
      
              * gtk/gtkprogress.c (gtk_progress_set_format_string):
              Make NULL restore back to the default format.
      1b1f2458
  30. 10 Aug, 2002 1 commit
    • Soren Sandmann's avatar
      Minor documentation fixes · 77eee887
      Soren Sandmann authored
      2002-08-10  Soren Sandmann  <sandmann@daimi.au.dk>
      
      	* docs/reference/gtk/tree_widget.sgml,
      	docs/reference/gtk/tmpl/gtkdialog.sgml,
      	docs/reference/gtk/tmpl/gtkentry.sgml,
      	docs/reference/gtk/tmpl/gtkfilesel.sgml,
      	docs/reference/gtk/tmpl/gtkfontsel.sgml,
      	docs/reference/gtk/tmpl/gtkfontseldlg.sgml,
      	docs/reference/gtk/tmpl/gtktreemodel.sgml,
      	docs/reference/gtk/tmpl/gtkwidget.sgml, gdk/x11/gdkdisplay-x11.c,
      	gtk/gtkbbox.c, gtk/gtkbox.c, gtk/gtkbutton.c, gtk/gtkcellrenderer.c,
      	gtk/gtkcellrendererpixbuf.c, gtk/gtkcellrenderertext.c,
      	gtk/gtkcheckmenuitem.c, gtk/gtkcontainer.c, gtk/gtkcurve.c,
      	gtk/gtkdialog.h, gtk/gtkentry.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c,
      	gtk/gtkframe.c, gtk/gtkhandlebox.c, gtk/gtkiconfactory.c,
      	gtk/gtkimage.c, gtk/gtkinvisible.c, gtk/gtkitemfactory.c,
      	gtk/gtklabel.c, gtk/gtklayout.c, gtk/gtkmenu.c, gtk/gtkprogress.c,
      	gtk/gtkprogressbar.c, gtk/gtkscrolledwindow.c, gtk/gtksizegroup.c,
      	gtk/gtktable.c, gtk/gtktextiter.c, gtk/gtktexttag.c,
      	gtk/gtktexttag.h, gtk/gtktextview.c, gtk/gtktogglebutton.c,
      	gtk/gtktoolbar.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c,
      	gtk/gtktreestore.c, gtk/gtktreeview.c, gtk/gtktreeviewcolumn.c,
      	gtk/gtkviewport.c, gtk/gtkwidget.c, gtk/gtkwidget.h,
      	gtk/gtkwindow.c:
      
      	Minor documentation fixes
      
      	(#89254, patch from Brett Nash;
      	 #85809, patch from daten@dnetc.org;
      	 #76391, patch from Ross Burton;
      	 #74559, Manuel Clos;
      	 #73569, #72005, Alexey A. Malyshev;
      	 #70061, patch from Dennis Bj"orklund;
      	 #64566, #63388, #58328, #57499, #81007, #77349, Vitaly Tishkov;
      	 #78932, Vitaly Tishkov, patch from Ross Burton;
      	 #73306)
      77eee887
  31. 30 Apr, 2002 1 commit
    • Matthias Clasen's avatar
      Improve a warning. · e3d181b8
      Matthias Clasen authored
      	* gtk/gtkcontainer.c (gtk_container_class_install_child_property):
      	Improve a warning.
      
      	* gdk/linux-fb/gdkinput.c (gdk_device_get_axis): Remove a broken
      	and redundant doc comment.
      
      	* gtk/gtkprogress.c (gtk_progress_class_init):
      	* gtk/gtkprogressbar.c (gtk_progress_bar_class_init):
      	* gtk/gtktexttag.c (gtk_text_tag_class_init):
      	* gtk/gtknotebook.c (gtk_notebook_class_init): Better blurbs,
      	incorporating stuff from the doc templates.
      
      	* gtk/gtkplug.c (gtk_plug_construct): Fix docs.
      e3d181b8
  32. 11 Aug, 2001 1 commit
    • Hans Breuer's avatar
      coalescing property notifies · 0b5db507
      Hans Breuer authored
      2001-08-11  Hans Breuer  <hans@breuer.org>
      
      	* gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
      	  gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c,
      	  gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c,
      	  gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c,
      	  gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
      	  gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
      
      	* gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
      	  gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
      	GDK_TYPE_EVENT signals
      
      	* gtk/gtkalignment.c : removed 'direct allocation bug',
      	which Tim discovered while reading the patch
      0b5db507
  33. 18 Jul, 2001 1 commit
    • Owen Taylor's avatar
      Patch from Matthias Clasen to remove remove all instances of · 4e2b60ac
      Owen Taylor authored
      Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/*.c: Patch from Matthias Clasen to remove remove
      	all instances of g_return_if_fail (foo != NULL); that are
      	immediately before a g_return_if_fail (GTK_IS_FOO (foo));
      	since the second check catches the NULL anyways.
      4e2b60ac
  34. 30 Mar, 2001 1 commit
    • Alexander Larsson's avatar
      Remove leaks. · aa209a95
      Alexander Larsson authored
      2001-03-30  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/gtkbutton.c (gtk_button_get_property):
      	* gtk/gtklabel.c:
      	Remove leaks.
      
      	* gtk/gtkcontainer.c:
      	* gtk/gtkhscale.c:
      	* gtk/gtkhscrollbar.c:
      	* gtk/gtklayout.c:
      	* gtk/gtkmisc.c:
      	* gtk/gtkprogress.c:
      	* gtk/gtkprogressbar.c:
      	* gtk/gtkrange.c:
      	* gtk/gtktable.c:
      	* gtk/gtkviewport.c:
      	* gtk/gtkvscale.c:
      	* gtk/gtkvscrollbar.c:
      	* gtk/gtkwidget.c:
      	Property patches, based on patches from John Margaglione and Lee Mallabone.
      aa209a95
  35. 19 Mar, 2001 1 commit
    • Owen Taylor's avatar
      Handle quoting of / with \; properly handle __ in paths, quote " and \n in · 489c376b
      Owen Taylor authored
      Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
      	handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
      
      	* gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c
      	  gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
      	  gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
      	  gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
      	Change float to double everywhere with the exception of 0<->1.0 alignment
      	and GtkCurve.
      489c376b
  36. 16 Mar, 2001 1 commit
  37. 26 Jul, 2000 1 commit
  38. 25 Jul, 2000 1 commit
    • Havoc Pennington's avatar
      Implement new sane, 5-function API for using GtkProgressBar. See · f56297c5
      Havoc Pennington authored
      2000-07-25  Havoc Pennington  <hp@redhat.com>
      
      * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
      using GtkProgressBar. See Changes-2.0.txt for details.
      
      * gtk/gtkprogressbar.c: Add object arguments "fraction" and
      "pulse_step" which are the equivalent of
      gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
      Implement new API.
      
      * gtk/gtkprogress.h (struct _GtkProgress): Add a field
      (use_text_format) to mark whether text set on the progress bar is
      a format string. Deprecate entire GtkProgress interface.
      
      * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
      (gtk_progress_build_string): make this a no-op if use_text_format
      is FALSE
      
      * docs/Changes-2.0.txt: Describe progress bar changes.
      f56297c5
  39. 12 May, 2000 1 commit
    • Tim Janik's avatar
      documented necessary changes for 1.4 transition. · 9595c551
      Tim Janik authored
      Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
      
      	* docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
      
      	* gtk/gtktext.c: made the adjustments no-construct args, simply
      	provide default adjustments.
      	(gtk_text_destroy): release adjustments.
      
      	* gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
      	adjustment argument non-construct.
      
      	* gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
      	instead of in finalize.
      	(gtk_progress_get_text_from_value):
      	(gtk_progress_get_current_text):
      	(gtk_progress_set_value):
      	(gtk_progress_get_percentage_from_value):
      	(gtk_progress_get_current_percentage):
      	(gtk_progress_set_percentage):
      	(gtk_progress_configure): ensure an adjustment is present.
      
      Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtkcolorsel.[hc]:
      	* gtk/gtkcolorseldialog.[hc]:
      	* gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
      	their parent implementation, use bit fields for boolean values, don't
      	create unused widgets, usage of glib types, braces go on their own
      	lines, function argument alignment, #include directives etc. etc. etc..
      
      	* gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
      
      Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
      
      	* gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
      	of NULL.
      
      	* gtk/gtkcombo.c (gtk_combo_item_destroy): don#t keep references
      	to freed data.
      	(gtk_combo_destroy): don't keep a pointer to a destroyed window.
      
      	* gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
      	to NULL when the toplevel is getting destroyed.
      	(gtk_menu_set_tearoff_state): same here for the tearoff_window.
      	(gtk_menu_destroy):
      	(gtk_menu_init): store the information of whether we have to
      	readd the initial child ref_count during destruction in a new
      	GtkMenu field needs_destruction_ref_count.
      
      	* gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
      	here, those reading: learn from my mistake! ;)
      	in order for set_?adjustment to support a default adjustemnt if
      	invoked with an adjustment pointer of NULL, the code read (pseudo):
      	if (v->adjustment) unref (v->adjustment);
      	if (!adjustment) adjustment = adjustment_new ();
      	if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
      	now imagine the first unref to actually free the old adjustment and
      	adjustment_new() creating a new adjustment from the very same memory
      	portion. here, the latter comparision will unintendedly fail, and
      	all hell breaks loose.
      	(gtk_viewport_set_hadjustment):
      	(gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
      	after unreferencing it.
      
      	* gtk/gtkcontainer.[hc]: removed toplevel registration
      	functions: gtk_container_register_toplevel(),
      	gtk_container_unregister_toplevel() and
      	gtk_container_get_toplevels() which had wrong semantics
      	anyways: it didn't reference and copy the list.
      
      	* gtk/gtkwindow.c: we take over the container toplevel registration
      	bussiness now. windows are registered across multiple destructions,
      	untill they are finalized. the initial implicit reference count
      	users are holding on windows is removed with the first destruction
      	though.
      	(gtk_window_init): ref & sink and set has_user_ref_count, got
      	rid of gtk_container_register_toplevel() call. add window to
      	toplevel_list.
      	(gtk_window_destroy): unref the window if has_user_ref_count
      	is still set, got rid of call to
      	gtk_container_unregister_toplevel().
      	(gtk_window_finalize): remove window from toplevel list.
      	(gtk_window_list_toplevels): new function to return a newly
      	created list with referenced toplevels.
      	(gtk_window_read_rcfiles): use gtk_window_list_toplevels().
      
      	* gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
      	adjustment a non-construct arg.
      	* gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
      	* gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
      	* gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
      
      	* gtk/gtkrange.c: added some realized checks.
      	(gtk_range_destroy): get rid of the h/v adjustments in the
      	destroy handler instead of finalize. remove timer.
      	(gtk_range_get_adjustment): demand create adjustment.
      
      	* gtk/gtkviewport.c: made h/v adjustment non-construct args.
      	we simply create them on demand now and get rid of them in
      	the destroy handler.
      	(gtk_viewport_destroy): get rid of the h/v adjustments in the
      	destroy handler instead of finalize.
      	(gtk_viewport_get_hadjustment):
      	(gtk_viewport_get_vadjustment):
      	(gtk_viewport_size_allocate): demand create h/v adjustment
      	if required.
      
      	* gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
      	gtk_widget_real_destroy () functionality.
      	(gtk_widget_real_destroy): reinitialize with a new style, instead
      	of setting widget->style to NULL.
      
      Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtkcalendar.c:
      	* gtk/gtkbutton.c: ported _get_type() implementation over to
      	GType, either to preserve memchunks allocation facilities,
      	or because Gtk+ 1.0 GtkTypeInfo was still being used.
      
      	* gtk/gtkobject.[hc]: derive from GObject. ported various functions
      	over. prepare for ::destroy to be emitted multiple times.
      	removed reference tracer magic. chain into GObjectClass.shutdown()
      	to emit ::destroy signal.
      
      	* gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
      	fundamental.
      
      	* gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
      	cludge.
      
      	* gtk/gtksocket.c:
      	* gtk/gtkplug.c:
      	* gtk/gtklayout.c:
      	* gtk/gtklabel.c:
      	* gtk/gtkargcollector.c:
      	* gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
      	not being a fundamental anymore, and to work with the new
      	type system (nuked fundamental type varargs clutter).
      
      	* gtk/*.c: install finalize handlers in the GObjectClass
      	part of the class structure.
      	changed direct GTK_OBJECT()->klass accesses to
      	GTK_*_GET_CLASS().
      	changed direct object_class->type accesses to GTK_CLASS_TYPE().
      
      	* gtktypeutils.[hc]: use the reserved fundamental ids provided by
      	GType. made most of the GTK_*() type macros and Gtk* typedefs
      	simple wrappers around macros and types provided by GType.
      	most notably, a significant portion of the old API vanished:
      	GTK_TYPE_MAKE(),
      	GTK_TYPE_SEQNO(),
      	GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
      	GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
      	GTK_TYPE_ARGS,
      	GTK_TYPE_CALLBACK,
      	GTK_TYPE_C_CALLBACK,
      	GTK_TYPE_FOREIGN,
      	GtkTypeQuery,
      	gtk_type_query(),
      	gtk_type_set_varargs_type(),
      	gtk_type_get_varargs_type(),
      	gtk_type_check_object_cast(),
      	gtk_type_check_class_cast(),
      	gtk_type_describe_tree(),
      	gtk_type_describe_heritage(),
      	gtk_type_free(),
      	gtk_type_children_types(),
      	gtk_type_set_chunk_alloc(),
      	gtk_type_register_enum(),
      	gtk_type_register_flags(),
      	gtk_type_parent_class().
      	replacements, where available are described in ../docs/Changes-1.4.txt.
      	implemented compatibility functions for the remaining API.
      
      	* configure.in: depend on glib 1.3.1, use gobject module.
      9595c551
  40. 14 Mar, 2000 1 commit