1. 28 May, 2008 10 commits
    • Michael Natterer's avatar
      define __GTK_H_INSIDE__ around including all other headers. · eff99c28
      Michael Natterer authored
      2008-05-28  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtk.h: define __GTK_H_INSIDE__ around including all other
      	headers.
      
      	* gtk/gtktypebuiltins.h.template
      	* gtk/gtkversion.h.in
      	* gtk/gtk*.h: add single-include guards that #error out if
      	GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is
      	included individually.
      
      	* gtk/gtkprintbackend.h
      	* gtk/gtkprinter-private.h
      	* gtk/gtktextlayout.h
      	* gtk/gtktexttagprivate.h
      	* gtk/gtktexttypes.h
      	* gtk/gtktreedatalist.h: include <gtk/gtk.h> instead of individual
      	headers in these private or semi-private headers.
      
      	* gtk/gtkimmodule.h: also here because it's not in gtk.h.
      
      	* gtk/gtkpagesetupunixdialog.h
      	* gtk/gtkprinter.h
      	* gtk/gtkprintjob.h
      	* gtk/gtkprintunixdialog.h: likewise in the gtkunixprint headers.
      
      	* gtk/gtkclist.h
      	* gtk/gtkcombo.h
      	* gtk/gtkctree.h
      	* gtk/gtkfilesel.h
      	* gtk/gtkitemfactory.h
      	* gtk/gtklist.h
      	* gtk/gtklistitem.h
      	* gtk/gtkoldeditable.h
      	* gtk/gtkoptionmenu.h
      	* gtk/gtkpixmap.h
      	* gtk/gtkpreview.h
      	* gtk/gtksignal.h
      	* gtk/gtktipsquery.h: whenever possible, include only <gtk/gtk.h>
      	instead of individual headers in these deprecated headers. They
      	don't get included at all when GTK_DISABLE_DEPRECATED is defined,
      	so if an app needs them anyway, it must undef GTK_DISABLE_DEPRECATED
      	and include them individually, which should continue to work.
      
      	* gtk/gtkclist.c: include "gtkctree.h" because of the change
      	above.
      
      
      svn path=/trunk/; revision=20221
      eff99c28
    • Kristian Rietveld's avatar
      Bug 449625 - crash in gtk_tree_view_real_move_cursor at gtktreeview.c:9641 · e7df0579
      Kristian Rietveld authored
      2008-05-28  Kristian Rietveld  <kris@imendio.com>
      
      	Bug 449625 - crash in gtk_tree_view_real_move_cursor at
      	gtktreeview.c:9641
      
      	* gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down):
      	cursor_offset *must* be larger than background height of the cursor
      	node, not just equal otherwise there is no guarantee there is a next
      	node.
      
      
      svn path=/trunk/; revision=20219
      e7df0579
    • Michael Natterer's avatar
      don't include <gdk/gdktestutils.h>. · 53366c1c
      Michael Natterer authored
      2008-05-28  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtktestutils.c: don't include <gdk/gdktestutils.h>.
      
      
      svn path=/trunk/; revision=20218
      53366c1c
    • Kristian Rietveld's avatar
      Bug 504087 - make gtk_tooltip_set_custom a no-op for setting the current · 382ce2f1
      Kristian Rietveld authored
      2008-05-28  Kristian Rietveld  <kris@imendio.com>
      
      	Bug 504087 - make gtk_tooltip_set_custom a no-op for setting the
      	current widget again.
      
      	* gtk/gtktooltip.c (gtk_tooltip_set_custom),
      	(gtk_tooltip_reset), (gtk_tooltip_run_requery): use a
      	custom_was_reset field to check if the custom widget is set again in
      	the query-tooltip callback; if not, we set it to NULL.  Based on a
      	patch by Xavier Claessens, insightful comments from Jean-Yves Lefort
      	and Christian Persch.
      
      
      svn path=/trunk/; revision=20215
      382ce2f1
    • Kristian Rietveld's avatar
      Bug 498010 - gtk_tree_view_set_cursor fails if model!=NULL. · 45f0ad8c
      Kristian Rietveld authored
      2008-05-28  Kristian Rietveld  <kris@imendio.com>
      
      	Bug 498010 - gtk_tree_view_set_cursor fails if model!=NULL.
      
      	* gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): return if fail
      	->priv->tree != NULL.  Suggestion from Stefan Kost.
      
      
      svn path=/trunk/; revision=20208
      45f0ad8c
    • Kristian Rietveld's avatar
      Bug 324282 - add selected signal to cell renderer combo. · 3ed120eb
      Kristian Rietveld authored
      2006-05-28  Kristian Rietveld  <kris@imendio.com>
      
      	Bug 324282 - add selected signal to cell renderer combo.
      
      	* gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init),
      	(gtk_cell_renderer_combo_changed),
      	(gtk_cell_renderer_combo_start_editing): add a new "changed" signal
      	that will be emitted as soon as the combo box emitted changed and has
      	an active iterator.  (Modified patch based on work by James
      	Pelletier).
      
      	* gtk/gtkmarshalers.list: add marshaler.
      
      
      svn path=/trunk/; revision=20206
      3ed120eb
    • Kristian Rietveld's avatar
      Refactor expand/collapse timeout handling (amendment to bug 511217). · 1fa5cda0
      Kristian Rietveld authored
      2008-05-28  Kristian Rietveld  <kris@imendio.com>
      
      	Refactor expand/collapse timeout handling (amendment to bug 511217).
      
      	* gtk/gtktreeview.c (add_expand_collapse_timeout),
      	(remove_expand_collapse_timeout): new functions, the remove function
      	also clears expanded_collapsed_node,
      	(cancel_arrow_animation): moved to be next to the add/remove timeout
      	functions,
      	(gtk_tree_view_unrealize),
      	(gtk_tree_view_row_deleted),
      	(gtk_tree_view_set_model),
      	(cancel_arrow_animation),
      	(gtk_tree_view_real_expand_row),
      	(gtk_tree_view_real_collapse_row): use the new add/remove functions.
      
      
      svn path=/trunk/; revision=20205
      1fa5cda0
    • Kristian Rietveld's avatar
      Amendment of bug 485218 - Strange warning encountered. · e72827b2
      Kristian Rietveld authored
      2008-05-28  Kristian Rietveld  <kris@imendio.com>
      
      	Amendment of bug 485218 - Strange warning encountered.
      
      	* gtk/gtktreemodelsort.[ch]
      	(gtk_tree_model_sort_convert_child_iter_to_iter): return a boolean
      	indication whether or not the conversion had succeeded.
      
      
      svn path=/trunk/; revision=20204
      e72827b2
    • Matthias Clasen's avatar
      Bug 404571 – Scroll arrow backgrounds should be painted with different · 81320ba9
      Matthias Clasen authored
              detail
      
              * gtk/gtkmenu.c (gtk_menu_paint): Use "menu_scroll_arrow_up/down"
              as detail when drawing scroll arrow backgrounds. Proposed by
              Tommi Komulainen.
      
      
      svn path=/trunk/; revision=20202
      81320ba9
    • Matthias Clasen's avatar
      Bug 511217 - potential memory corruption after refreshing a tree_view · 6c993cf8
      Matthias Clasen authored
              * gtk/gtktreeview.c (cancel_arrow_animation): Reset
              expanded_collapsed_node when canceling the animation.
              Patch by Nicholas Setton.
      
      
      svn path=/trunk/; revision=20201
      6c993cf8
  2. 27 May, 2008 11 commits
  3. 26 May, 2008 8 commits
    • Michael Natterer's avatar
      fix indentation. · 49bd7eda
      Michael Natterer authored
      2008-05-26  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkimmodule.h: fix indentation.
      
      
      svn path=/trunk/; revision=20177
      49bd7eda
    • Michael Natterer's avatar
      include "gdk/gdk.h" instead of "gdk/gdkscreen.h" · 27dbd9a4
      Michael Natterer authored
      2008-05-26  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkshow.h: include "gdk/gdk.h" instead of "gdk/gdkscreen.h"
      
      	* gtk/gtkshow.c: remove inclusion of single files from gdk/
      
      	Removed trailing whitespace in both files.
      
      
      svn path=/trunk/; revision=20176
      27dbd9a4
    • Richard Hult's avatar
      Bug 530353 – Mac-like gtk_accelerator_get_label() · 6fb474f2
      Richard Hult authored
      2008-05-26  Richard Hult  <richard@imendio.com>
      
      	Bug 530353 – Mac-like gtk_accelerator_get_label()
      
      	* gtk/gtkaccellabel.c: (gtk_accel_label_class_init),
      	(append_keyval_symbol), (_gtk_accel_label_class_get_accelerator_label):
      	On quartz, make gtk_accelerator_get_label() format a Mac-like
      	string, using unicode characters for modifier keys, arrows, delete
      	etc. Patch from Yevgen Muntyan.
      
      svn path=/trunk/; revision=20175
      6fb474f2
    • Richard Hult's avatar
      Bug 534869 – Length miscalculation in · 8ae8e8e3
      Richard Hult authored
      2008-05-26  Richard Hult  <richard@imendio.com>
      
      	Bug 534869 – Length miscalculation in
      	_gtk_quartz_get_selection_data_from_pasteboard
      
      	* gtk/gtkquartz.c: (_gtk_quartz_get_selection_data_from_pasteboard):
      	Get the number of bytes, not the number of characters, patch from
      	Yevgen Muntyan.
      
      svn path=/trunk/; revision=20174
      8ae8e8e3
    • Matthias Clasen's avatar
      Some doc formatting fixes. · e19eee54
      Matthias Clasen authored
      svn path=/trunk/; revision=20172
      e19eee54
    • Matthias Clasen's avatar
      Bug 511163 – Remove pango_extents_to_pixels() calls · f7f1dabd
      Matthias Clasen authored
              * gtk/gtkcellrenderertext.c (get_size): Use
              pango_layout_get_pixel_extents.
      
              * configure.in: Bump Pango requirement to 1.20
      
              * INSTALL.in: Update required versions
      
      
      svn path=/trunk/; revision=20171
      f7f1dabd
    • Matthias Clasen's avatar
      Bug 513811 – Use cairo_format_stride_for_width() · 9ec6a659
      Matthias Clasen authored
              * gtk/gtkhsv.c (paint_ring, paint_triangle):
              * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Use
              cairo_format_stride_for_width, proposed by Behdad Esfahbod.
      
              * configure.in: Bump cairo requirement to 1.6.0
      
              * INSTALL.in: Update required versions
      
      
      svn path=/trunk/; revision=20170
      9ec6a659
    • Matthias Clasen's avatar
      Formatting fixes · 4d734c0e
      Matthias Clasen authored
      2008-05-26  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkshow.[hc]: Formatting fixes
      
              * gtk/gtkmountoperation.c: Add docs
      
      
      svn path=/trunk/; revision=20169
      4d734c0e
  4. 25 May, 2008 11 commits
    • Cody Russell's avatar
      Bug 507389 – use gslice for gtksettings · d46b2c14
      Cody Russell authored
      2008-05-25  Cody Russell  <bratsche@gnome.org>
      
              Bug 507389 – use gslice for gtksettings
      
              * gtk/gtksettings.c: Change from g_new0/g_free to use GSlice.
              Report and patch by Christian Persch.
      
      
      svn path=/trunk/; revision=20168
      d46b2c14
    • Cody Russell's avatar
      Bug 523562 - gtk-update-icon-cache core dumps when run concurrently and · 6b06d71c
      Cody Russell authored
      2008-05-25  Cody Russell  <bratsche@gnome.org>
      
              Bug 523562 - gtk-update-icon-cache core dumps when run concurrently and
              when options are missing
      
              * gtk/updateiconcache.c: Open the cache file (O_CREAT | O_EXCL) so     
              that other processes that try to open it will fail gracefully.  Also
              fix a crasher caused by lack of a NULL check.  Report and patch
              by Erwann Chenede.
      
      
      svn path=/trunk/; revision=20167
      6b06d71c
    • Cody Russell's avatar
      Bug 534463 - non-editable GtkTextView should not call · cd7376dd
      Cody Russell authored
      2008-05-25  Cody Russell  <bratsche@gnome.org>
      
              Bug 534463 - non-editable GtkTextView should not call
              gtk_im_context_focus_in	in focus	event
      
              * gtk/gtktextview.c: Add checks	to see	if the textview	is
              editable.  Patch by Wang Diancheng.
      
      
      svn path=/trunk/; revision=20162
      cd7376dd
    • Matthias Clasen's avatar
      Bug 501730 – use GSlice for small allocs · b0ea8e9f
      Matthias Clasen authored
              * gtk/gtkmenuitem.c:
              * gtk/gtkmenu.c: Use the slice allocator for small allocations.
              Patch by Christian Persch.
      
      
      svn path=/trunk/; revision=20161
      b0ea8e9f
    • Matthias Clasen's avatar
      Bug 523930 – sort -> search in gtktreeview.c · fa4fb90e
      Matthias Clasen authored
              * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Fix a doc
              glitch, pointed out by Björn Lindqvist.
      
      
      svn path=/trunk/; revision=20159
      fa4fb90e
    • Matthias Clasen's avatar
      Bug 479384 – gtk_selection_data_targets_include_uri docs buglet · 4e89e57d
      Matthias Clasen authored
      2008-05-25  Matthias Clasen  <mclasen@redhat.com>
      
              Bug 479384 – gtk_selection_data_targets_include_uri docs buglet
      
              * gtk/gtkselection.c (gtk_selection_data_targets_include_uri): Fix
              doc glitch, pointed out by Christian Persch.
      
      
      svn path=/trunk/; revision=20158
      4e89e57d
    • Matthias Clasen's avatar
      Bug 534694 – Col id in GtkListStore could be out of range · 2bf2b07c
      Matthias Clasen authored
      2008-05-25  Matthias Clasen  <mclasen@redhat.com>
      
              Bug 534694 – Col id in GtkListStore could be out of range
      
              * gtk/gtkliststore.c (list_store_start_element): Fix up error handling
              a bit. Pointed out by Jan Arne Petersen.
      
      svn path=/trunk/; revision=20157
      2bf2b07c
    • Richard Hult's avatar
      Slight coding style cleanup. · 97902c7c
      Richard Hult authored
      2008-05-25  Richard Hult  <richard@imendio.com>
      
      	* gtk/gtkquartz.c: (_gtk_quartz_set_selection_data_for_pasteboard):
      	Slight coding style cleanup.
      
      svn path=/trunk/; revision=20153
      97902c7c
    • Tristan Van Berkom's avatar
      Added support for parsing required toolkit versions (so that ui · 7b0ef209
      Tristan Van Berkom authored
      
      	* gtk/gtkbuilderprivate.h, gtk/gtkbuilder.h, gtk/gtkbuilderparser.c:
      	Added support for parsing required toolkit versions (so that ui descriptions
      	can target specific versions of the backend widget libraries) bug 527612.
      
      	* gtk/docs/reference/gtk/tmpl/gtkbuilder.sgml: Added documentation
      	for the added xml tags to the ui description.
      
      
      svn path=/trunk/; revision=20152
      7b0ef209
    • Richard Hult's avatar
      Run gtk_drag_source_info_destroy in an idle, workaround for bug #501588, · 18e3aedb
      Richard Hult authored
      2008-05-25  Richard Hult  <richard@imendio.com>
      
      	* gtk/gtkdnd-quartz.c: (gtk_drag_drop_finished): Run
      	gtk_drag_source_info_destroy in an idle, workaround for bug
      	#501588, that makes any code that uses the context returned from
      	gtk_drag_begin() crash, like treeview/iconview dnd.
      	(GdkDragSourceOwner::provideDataForType): only use the data if we
      	got any.
      
      svn path=/trunk/; revision=20151
      18e3aedb
    • Jan Arne Petersen's avatar
      Add GDK_ACTION_MOVE to the drag actions to allow trash (#137717). · 1d946af2
      Jan Arne Petersen authored
      2008-05-25  Jan Arne Petersen  <jpetersen@jpetersen.org>
      
      	* gtk/gtkfilechooserdefault.c: (create_file_list): Add GDK_ACTION_MOVE
      	to the drag actions to allow trash (#137717).
      
      
      svn path=/trunk/; revision=20150
      1d946af2