1. 23 Jan, 2009 1 commit
    • Matthias Clasen's avatar
      i Bug 560228 – Add "action-controller" property to GtkWidgetClass · bb72b647
      Matthias Clasen authored
              Rework the way actions and proxies interact, to make the
              interaction less ad hoc, more extensible, and better suited
              for support in GUI builders like glade.
      
              To be used as a proxy, a widget must now implement the
              GtkActivatable interface, and GtkActivatable implementations
              are responsible for syncing their appearance with the action
              and for activating the action.
      
              All the widgets that are commonly used as proxies implement
              GtkActivatable now.
      
              Patch by Tristan van Berkom.
      
              * gtk/gtkactivatable.[hc]: The GtkActivatable interface.
      
              * gtk/gtkbutton.c:
              * gtk/gtktogglebutton.c:
              * gtk/gtktoolitem.c:
              * gtk/gtktoolbutton.c:
              * gtk/gtktoggletoolbutton.c:
              * gtk/gtkmenuitem.c:
              * gtk/gtkcheckmenuitem.c:
              * gtk/gtkimagemenuitem.c:
              * gtk/gtkradiomenuitem.c:
              * gtk/gtkrecentchooserprivate.h:
              * gtk/gtkrecentchooser.c:
              * gtk/gtkrecentchooserdefault.c:
              * gtk/gtkrecentchoosermenu.c: Implement GtkActivatable.
              * gtk/gtkaction.[hc]: Move appearance synchronization to
              GtkActivatable implementations.
      
              * gtk/gtkradioaction.c:
              * gtk/gtkrecentaction.c:
              * gtk/gtktoggleaction.c:
              * gtk/gtkactiongroup.c: Adapt.
      
              * gtk/gtk.h: Include gtkactivatable.h
              * gtk/gtk.symbols: Add new functions
      
      
      svn path=/trunk/; revision=22195
      bb72b647
  2. 21 Jan, 2009 1 commit
  3. 20 Jan, 2009 1 commit
    • Matthias Clasen's avatar
      Bug 565656 – Add marks to scales · 26490a2d
      Matthias Clasen authored
      
              Bug 565656 – Add marks to scales
      
              * gtk/gtkrange.[hc]: Add internal api to define 'stop values'
              that have a little resistance when dragging the slider over it.
      
              * gtk/gtk.symbols:
              * gtk/gtkscale.[hc] (gtk_scale_add_mark): New function to add
              a 'mark' to a scale, which will draws a tick, plus optionally
              some text, and makes the value a stop value.
              (gtk_scale_clear_values): Removes all marks.
      
              * tests/testscale.c: Test for marks on scales
              * tests/Makefile.am: Integrate it
      
      
      svn path=/trunk/; revision=22149
      26490a2d
  4. 18 Jan, 2009 2 commits
    • Matthias Clasen's avatar
      Add properties and getters for icon tooltips. · 92019f40
      Matthias Clasen authored
             * gtk/gtk.symbols:
              * gtk/gtkentry.[hc]: Add properties and getters for icon tooltips.
      
      
      svn path=/trunk/; revision=22139
      92019f40
    • Matthias Clasen's avatar
      Use the last chance to get the api right, and rename things for · 85efb2bb
      Matthias Clasen authored
              * gtk/gtk.symbols:
              * gtk/gtkentry.[hc]: Use the last chance to get the api right,
              and rename things for consistency, requested by Murray Cumming.
              In detail,
              gtk_entry_get_stock -> gtk_entry_get_icon_stock
              gtk_entry_get_pixbuf -> gtk_entry_get_icon_pixbuf
              gtk_entry_get_gicon -> gtk_entry_get_icon_gicon
              gtk_entry_get_storage_type -> gtk_entry_get_icon_storage_type
              ::prelight -> ::icon-prelight
              ::pixbuf-primary -> ::primary-icon-pixbuf
              ::stock-primary -> ::primary-icon-stock
              ::icon-name-primary -> ::primary-icon-name
              ::gicon-primary-> ::primary-icon-gicon
              ::storage-type-primary -> ::primary-icon-storage-type
              ::activatable->primary -> ::primary-icon-activatable
              ::sensitive-primary -> ::primary-icon-sensitive
              (and similar for secondary properties)
      
      
      svn path=/trunk/; revision=22134
      85efb2bb
  5. 13 Jan, 2009 2 commits
    • Matthias Clasen's avatar
      Bug 450716 – New API to change global IM · 5d4bb27b
      Matthias Clasen authored
              Requested by Daniel Elstner.
      
              * gtk/gtk.symbols:
              * gtk/gtkimmulticontext.[hc] (gtk_im_multicontext_set_context_id):
              New function to set the context id on a GtkIMMulticontext.
      
              * gtk/gtkentry.c:
              * gtk/gtktextview.c: Add a ::im-module property that can be
              set to override the global setting for the im module to be used.
      
      
      svn path=/trunk/; revision=22113
      5d4bb27b
    • Christian Dywan's avatar
      Bug 566532 – GtkScaleButton implementation of GtkOrientable · 856279da
      Christian Dywan authored
      2009-01-13  Christian Dywan  <christian@imendio.com>
      
      	Bug 566532 – GtkScaleButton implementation of GtkOrientable
      
      	* gtk/gtk.symbols:
      	* gtk/gtkscalebutton.c (gtk_scale_button_class_init),
      	(gtk_scale_button_set_property):
      	* gtk/gtkscalebutton.h: Deprecate gtk_scale_button_get_orientation
              in favour of implementing GtkOrientable. Patch by Bruce Cowan.
      
      svn path=/trunk/; revision=22112
      856279da
  6. 01 Jan, 2009 1 commit
  7. 31 Dec, 2008 2 commits
  8. 29 Dec, 2008 1 commit
  9. 19 Dec, 2008 1 commit
    • Marek Kašík's avatar
      Bug 339318 - Allow page rendering to (optionally) happen in a thread · 8ff5d4ff
      Marek Kašík authored
      2008-12-19  Marek Kasik  <mkasik@redhat.com>
      
      	Bug 339318 - Allow page rendering to (optionally) happen in a thread
      
      	* gtk/gtk.symbols: API change
      	* doc/reference/gtk/gtk-sections.txt: API change
      	* gtk/gtkprintoperation-private.h
      	* gtk/gtkprintoperation.h
      	* gtk/gtkprintoperation.c: Adds 2 new functions
      	   gtk_print_operation_set_defer_drawing()
      	     - Sets up the GtkPrintOperation to wait for calling of
      	       gtk_print_operation_draw_page_finish() from application. It can
      	       be used for drawing page in another thread.
      	       This function must be called in the callback of "draw-page"
      	       signal.
      	   gtk_print_operation_draw_page_finish()
      	     - Signalize that drawing of particular page is complete.
      	       It is called after completion of page drawing (e.g. drawing
      	       in another thread).
      	       If gtk_print_operation_set_defer_drawing() was called before,
      	       then this function has to be called by application. In another
      	       case it is called by the library itself.
      
      svn path=/trunk/; revision=21913
      8ff5d4ff
  10. 05 Dec, 2008 1 commit
    • Michael Natterer's avatar
      Bug 546285 – Allow GtkEntry to draw progress · 9b598898
      Michael Natterer authored
      2008-12-05  Michael Natterer  <mitch@imendio.com>
      
      	Bug 546285 – Allow GtkEntry to draw progress
      
      	* gtk/gtkentry.[ch]: add new API similar to GtkProgressBar which
      	allows to set the entry's progress_fraction, its progress_pulse_step
      	and to let the entry's progress pulse.
      
      	* gtk/gtk.symbols: updated.
      
      	* tests/testgtk.c: add progress demo code to the "Entry" window.
      
      
      svn path=/trunk/; revision=21846
      9b598898
  11. 11 Nov, 2008 2 commits
    • Michael Natterer's avatar
      Bug 553765 – Add orientation API to GtkRange · 8121c60d
      Michael Natterer authored
      2008-11-11  Michael Natterer  <mitch@imendio.com>
      
      	Bug 553765 – Add orientation API to GtkRange
      
      	* gtk/gtkrange.[ch]: implement the GtkOrientable interface. Add
      	evil code that makes sure that the stepper_detail and slider_detail
      	set in GtkRangeClass continue to work with the hacked subclasses
      	below.
      
      	* gtk/gtkscale.[ch]: swallow all code from GtkHScale and GtkVScale
      	and add gtk_scale_new() and gtk_scale_new_with_range() which take
      	a GtkOrientation argument. Set slider_detail to "Xscale" so above
      	evil code works.
      
      	* gtk/gtkscrollbar.[ch]: add gtk_scrollbar_new() which takes a
      	GtkOrientation argument. Set stepper_detail to "Xscrollbar" so
      	above evil code works.
      
      	* gtk/gtkhscale.c
      	* gtk/gtkvscale.c
      	* gtk/gtkhscrollbar.c
      	* gtk/gtkvscrollbar.c: remove all code except the constructor and
      	call gtk_orientable_set_orientation() in init().
      
      	* gtk/gtk.symbols: changed accordingly.
      
      
      svn path=/trunk/; revision=21780
      8121c60d
    • Michael Natterer's avatar
      implement the GtkOrientable interface and deprecate · 8004fcbf
      Michael Natterer authored
      2008-11-11  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtktoolbar.[ch]: implement the GtkOrientable interface
      	and deprecate gtk_toolbar_get,set_orientation().
      
      	* gtk/gtk.symbols: changed accordingly.
      
      
      svn path=/trunk/; revision=21777
      8004fcbf
  12. 07 Nov, 2008 1 commit
    • Michael Natterer's avatar
      Bug 553586 – Add orientation API to GtkPaned · 59f07038
      Michael Natterer authored
      2008-11-07  Michael Natterer  <mitch@gimp.org>
      
      	Bug 553586 – Add orientation API to GtkPaned
      
      	* gtk/gtkpaned.[ch]: implement the GtkOrientable interface
      	and swallow all code from GtkHPaned and GtkVPaned. Add
      	gtk_paned_new() which takes a GtkOrientation argument. Deprecate
      	gtk_paned_compute_position() for good (also for GTK_COMPILATION).
      
      	* gtk/gtkhpaned.[ch]
      	* gtk/gtkvpaned.[ch]: remove all code except the constructor and
      	call gtk_orientable_set_orientation() in init().
      
      	* gtk/gtk.symbols: add gtk_box_new().
      
      
      svn path=/trunk/; revision=21772
      59f07038
  13. 03 Nov, 2008 1 commit
  14. 01 Nov, 2008 1 commit
    • Matthias Clasen's avatar
      Bug 412134 – Add API to query style properties from the style · 4f8f2881
      Matthias Clasen authored
      2008-11-01  Matthias Clasen  <mclasen@redhat.com>
      
              Bug 412134 – Add API to query style properties from the style
      
              * gtk/gtk.symbols:
              * gtk/gtkstyle.[hc]: Add getters for style properties to
              avoid the need for ugly workarounds with dummy widget instances.
              Patch by Mariano Suárez-Alvarez
      
      svn path=/trunk/; revision=21744
      4f8f2881
  15. 31 Oct, 2008 1 commit
  16. 30 Oct, 2008 1 commit
    • Marek Kašík's avatar
      Bug 339714 - Set printer dpi on cairo ps/pdf surfaces when printing · a3b07ac9
      Marek Kašík authored
      2008-10-30  Marek Kasik  <mkasik@redhat.com>
      
      	Bug 339714 - Set printer dpi on cairo ps/pdf surfaces when printing
      
      	* gtk/gtk.symbols
      	* gtk/gtkprintsettings.c
      	* gtk/gtkprintsettings.h
      	* docs/reference/gtk/gtk-sections.txt
      	* modules/printbackends/file/gtkprintbackendfile.c
      	* modules/printbackends/test/gtkprintbackendtest.c
      	* modules/printbackends/cups/gtkprintbackendcups.c
      	* modules/printbackends/lpr/gtkprintbackendlpr.c:
      	Added lpi (lines per inch) setting to GtkPrintSettings and support
      	for anamorphic dpi. Surface fallback resolution is set to 2*lpi.
      
      svn path=/trunk/; revision=21733
      a3b07ac9
  17. 07 Oct, 2008 2 commits
    • 11:03:30  Tim Janik's avatar
      keep GtkBox as an abstract type and keep _gtk_box_new() as private · ddd556af
      11:03:30 Tim Janik authored
      2008-10-07 11:03:30  Tim Janik  <timj@imendio.com>
      
              * gtk/gtkbox.h: keep GtkBox as an abstract type and keep _gtk_box_new()
              as private function until we settle on the exact semantics.
              renamed _gtk_box_set_old_defaults() as suggested by Mitch.
      
      
      svn path=/trunk/; revision=21599
      ddd556af
    • Michael Natterer's avatar
      Bug 553573 – Add orientation API to GtkBox · 97a9867c
      Michael Natterer authored
      2008-10-07  Michael Natterer  <mitch@imendio.com>
      
      	Bug 553573 – Add orientation API to GtkBox
      
      	* gtk/gtkbox.[hh]: implement the GtkOrientable interface and
      	swallow all code from GtkHBox and GtkVBox. Add gtk_box_new()
      	which takes a GtkOrientation argument. Also move the newly
      	added "spacing_set" boolean from struct GtkBox to the new
      	private struct.
      
      	* gtk/gtkhbox.[ch]
      	* gtk/gtkvbox.[ch]: remove all code except the constructor and
      	call gtk_orientable_set_orientation() in init().
      
      	* gtk/gtk.symbols: add gtk_box_new().
      
      
      svn path=/trunk/; revision=21596
      97a9867c
  18. 06 Oct, 2008 1 commit
  19. 02 Oct, 2008 1 commit
    • Michael Natterer's avatar
      Bug 553585 – Add orientation API to GtkRuler · 2accfccc
      Michael Natterer authored
      2008-10-02  Michael Natterer  <mitch@imendio.com>
      
      	Bug 553585 – Add orientation API to GtkRuler
      
      	* gtk/gtkruler.[ch]: implement the GtkOrientable interface and
      	swallow all code from GtkHRuler and GtkVRuler. Add gtk_ruler_new()
      	which takes a GtkOrientation argument.
      
      	* gtk/gtkhruler.c
      	* gtk/gtkvruler.c: remove all code except the constructor and
      	call gtk_orientable_set_orientation() in init().
      
      	* gtk/gtk.symbols: add gtk_ruler_new().
      
      
      svn path=/trunk/; revision=21565
      2accfccc
  20. 01 Oct, 2008 1 commit
  21. 30 Sep, 2008 3 commits
    • Michael Natterer's avatar
      Bug 553582 – Add orientation API to GtkSeparator · 2f628559
      Michael Natterer authored
      2008-09-30  Michael Natterer  <mitch@imendio.com>
      
      	Bug 553582 – Add orientation API to GtkSeparator
      
      	* gtk/gtkseparator.[ch]: implement the GtkOrientable interface and
      	swallow all code from GtkHSeparator and GtkVSeparator. Add
      	gtk_separator_new() which takes a GtkOrientation argument.
      
      	* gtk/gtkhseparator.c
      	* gtk/gtkvseparator.c: remove all code except the constructor and
      	call gtk_orientable_set_orientation() in init().
      
      	* gtk/gtk.symbols: add gtk_separator_new().
      
      
      svn path=/trunk/; revision=21553
      2f628559
    • Michael Natterer's avatar
      forgot the G_GNUC_CONST of gtk_orientable_get_type(). · 6a3a9c95
      Michael Natterer authored
      2008-09-30  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtk.symbols: forgot the G_GNUC_CONST of
      	gtk_orientable_get_type().
      
      
      svn path=/trunk/; revision=21551
      6a3a9c95
    • Michael Natterer's avatar
      Bug 541009 – Get rid of separate subclasses for horizontal and vertical · ee3ea1b3
      Michael Natterer authored
      2008-09-30  Michael Natterer  <mitch@imendio.com>
      
      	Bug 541009 – Get rid of separate subclasses for horizontal and
      	vertical orientation:
      
      	* gtk/Makefile.am
      	* gtk/gtk.symbols
      	* gtk/gtk.h
      	* gtk/gtkorientable.[ch]: add new interface GtkOrientable which
      	will be implemented by everything that can switch orientation.
      
      
      svn path=/trunk/; revision=21550
      ee3ea1b3
  22. 29 Sep, 2008 1 commit
    • Matthias Clasen's avatar
      Add a getter for the the sealed context_id field. · 680c460f
      Matthias Clasen authored
      2008-09-29  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtk.symbols:
              * gtk/gtkimmulticontext.[hc] (gtk_im_multicontext_get_context_id):
              Add a getter for the the sealed context_id field.
      
      
      svn path=/trunk/; revision=21546
      680c460f
  23. 19 Sep, 2008 1 commit
    • Carlos Garnacho's avatar
      Bug 83935 – GtkEntry's default invisible char should be U+25CF · ee06ce95
      Carlos Garnacho authored
      2008-09-19  Carlos Garnacho  <carlos@imendio.com>
      
              Bug 83935 – GtkEntry's default invisible char should be U+25CF
      
              * gtk/gtkentry.c (find_invisible_char) (gtk_entry_init): Find a
              more suitable invisible char than '*' based on the used font.
              (gtk_entry_class_init) (gtk_entry_set_property)
              (gtk_entry_get_property): Add a "invisible-char-set" property.
              (gtk_entry_unset_invisible_char): New function, needed now that the
              default invisible char isn't fixed.
              * gtk/gtkentry.h:
              * gtk/gtk.symbols:
              * docs/reference/gtk/gtk-sections.txt: Add the new function.
      
      svn path=/trunk/; revision=21446
      ee06ce95
  24. 04 Sep, 2008 1 commit
  25. 02 Sep, 2008 1 commit
    • Michael Natterer's avatar
      removed this function because there is massive disagreement about how to · 839aeeaf
      Michael Natterer authored
      2008-09-02  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkwidget.c (gtk_widget_get_allocation): removed this
      	function because there is massive disagreement about how to
      	implement it. Needs some general discussion in the next
      	development cycle about how our C api should evolve.
      
      	* gtk/gtk.symbols: changed accordingly.
      
      
      svn path=/trunk/; revision=21259
      839aeeaf
  26. 29 Aug, 2008 1 commit
  27. 14 Aug, 2008 1 commit
  28. 08 Aug, 2008 1 commit
    • Tor Lillqvist's avatar
      gtk/gtk.symbols gtk/makegtkalias.pl gtk/gtkaccelmap.c gtk/gtkfilechooser.c · 72952418
      Tor Lillqvist authored
      2008-08-08  Tor Lillqvist  <tml@novell.com>
      
      	* gtk/gtk.symbols
      	* gtk/makegtkalias.pl
      	* gtk/gtkaccelmap.c
      	* gtk/gtkfilechooser.c
      	* gtk/gtkfilesel.c
      	* gtk/gtkiconfactory.c
      	* gtk/gtkicontheme.c
      	* gtk/gtkimage.c
      	* gtk/gtkrc.c
      	* gtk/gtkuimanager.c
      	* gtk/gtkwindow.c: No need for the DLL ABI backward compatibility
      	functions on Win64.
      
      
      svn path=/trunk/; revision=21040
      72952418
  29. 07 Aug, 2008 1 commit
    • Sven Neumann's avatar
      Bug 546771 - Add writable property "visited" to GtkLinkButton · 75d4f90a
      Sven Neumann authored
      2008-08-07  Sven Neumann  <sven@gimp.org>
      
      	Bug 546771 - Add writable property "visited" to GtkLinkButton
      
      	* gtk/gtk.symbols
      	* gtk/gtklinkbutton.[ch]: expose the 'visited' state as a
      	read-write property with getters and setters. Also move the nick
      	and blurb of the "uri" property to the proper translation 
      domain.
      
      
      svn path=/trunk/; revision=21032
      75d4f90a
  30. 05 Aug, 2008 1 commit
    • Michael Natterer's avatar
      Bug 544858 – Seal GtkAdjustment · f2527e8d
      Michael Natterer authored
      2008-08-05  Michael Natterer  <mitch@imendio.com>
      
      	Bug 544858 – Seal GtkAdjustment
      
      	* gtk/gtk.symbols
      	* gtk/gtkadjustment.[ch] (struct GtkAdjustment): seal all struct
      	members.
      
      	Add accessors for all properties and additionally a new function
      	gtk_adjustment_configure() which sets all properties at
      	once. Patch by Christian Dywan and myself.
      
      
      svn path=/trunk/; revision=21013
      f2527e8d
  31. 04 Aug, 2008 3 commits
    • Matthias Clasen's avatar
      Bug 382291 – Automatically dim the combobox when the model is empty · 7d857577
      Matthias Clasen authored
      2008-08-04  Matthias Clasen  <mclasen@redhat.com>
      
              Bug 382291 – Automatically dim the combobox when the model is empty
      
              * gtk/gtk.symbols:
              * gtkcombobox.[hc]: Add a GtkComboBox::button-sensitivity
              property with getter and setter to control the sensitity of
              empty combo boxes. Patch by Carlos Garnacho, Sven Herzberg,
              Christian Dywan and others.
      
              * README.in: Add a note about automatic combobox sensitivity.
      
      
      svn path=/trunk/; revision=20997
      7d857577
    • Carlos Garnacho's avatar
      Deprecate gtk_file_chooser_*_new_with_backend(), since GIO is already used · 7e439efc
      Carlos Garnacho authored
      2008-08-04  Carlos Garnacho  <carlos@imendio.com>
      
              * gtk/gtk.symbols:
              * gtk/gtkfilechooserbutton.[ch]:
              * gtk/gtkfilechooserdefault.[ch]:
              * gtk/gtkfilechooserdialog.[ch]:
              * gtk/gtkfilechooserwidget.[ch]: Deprecate
              gtk_file_chooser_*_new_with_backend(), since GIO is already used
              directly. Fixes #545976.
      
      svn path=/trunk/; revision=20972
      7e439efc
    • Carlos Garnacho's avatar
      Make GFile-oriented API public. Fixes #545978. · 02c65db5
      Carlos Garnacho authored
      2008-08-04  Carlos Garnacho  <carlos@imendio.com>
      
              * gtk/gtk.symbols:
              * gtk/gtkfilechooser.[ch]: Make GFile-oriented API public. Fixes
              #545978.
              * gtk/gtkfilechooserbutton.c:
              * gtk/gtkfilechooserdefault.c:
              * gtk/gtkfilechooserutils.c: Update to use public GFile API.
      
      svn path=/trunk/; revision=20971
      02c65db5