1. 26 Mar, 2006 1 commit
  2. 14 Mar, 2006 1 commit
    • Matthias Clasen's avatar
      Add test cases for alignment. · f50363d3
      Matthias Clasen authored
      2006-03-14  Matthias Clasen  <mclasen@redhat.com>
      
      	* tests/testcellrenderertext.c: Add test cases for alignment.
      
      	* gtk/gtkcellrenderertext.c: Add an alignment property,
      	and fix some cases where ellipsize_set was being used to
      	mean "we're ellipsizing" even when ellipsize was set to NONE.
      	(#318761, Ross Burton)
      f50363d3
  3. 09 Sep, 2005 2 commits
    • Matthias Clasen's avatar
      Use connect_after to connect to the focus_out event. This ensures that the · 5c0d5d0b
      Matthias Clasen authored
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing):
      	Use connect_after to connect to the focus_out event. This
      	ensures that the entry has already stopped blinking by the time
      	we emit the edited signal.  (#315229, Thomas Leonard)
      5c0d5d0b
    • Matthias Clasen's avatar
      Stylistic improvements and clarifications for some blurbs. (#315520, · 9a86f658
      Matthias Clasen authored
      2005-09-09  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkiconview.c (gtk_icon_view_class_init):
      	* gtk/gtkfilesel.c (gtk_file_selection_class_init):
      	* gtk/gtkcombobox.c (gtk_combo_box_class_init):
      	* gtk/gtklabel.c (gtk_label_class_init):
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
      	Stylistic improvements and clarifications for some blurbs.
      	(#315520, Clytie Siddall)
      9a86f658
  4. 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
  5. 31 Aug, 2005 2 commits
  6. 11 May, 2005 1 commit
    • Owen Taylor's avatar
      Use a GtkAlignment rather than a GtkDrawingArea to draw the swatch in to · dda40ca7
      Owen Taylor authored
      2005-05-11  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
      	to draw the swatch in to avoid having an extraneous window.
      
      	* gtk/gtkcolorsel.c (color_sample_draw_sample): Actually se tthe
      	color when !has_opacity.
      
      2005-05-10  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkcairo.[ch] gdk/gdkcolor.[ch] gdk/Makefile.am: Add source
      	files for Cairo convenience functionality.
      
      	* gdk/gdkcairo.h (gdk_cairo_rectangle, gdk_cairo_region): Add a
      	convenience functions to add GdkRectangle, GdkRegion to a cairo path.
      
      	* gdk/gdkwindow.c gdk/gdkgc.c gtk/gtkcolorsel.c gtk/gtkiconview.c
      	gtk/gtkstyle.c: Use gdk_cairo_rectangle/region().
      
      	* gdk/gdkcairo.[ch] gdk/gdkdrawable.h gdk/gdkdraw.c: Rename
      	gdk_drawable_create_cairo_context() to gdk_cairo_create().
      
      	* gdk/gdkcairo.c gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c:
      	Rename gdk_pixbuf_set_as_cairo_source() to
      	gdk_cairo_set_source_pixbuf().
      
      	* gdk/gdkdraw.c gdk/gdkpango.c gtk/gtkcolorsel.c gtk/gtkhruler.c
      	gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkstyle.c gtk/gtkvruler.c:
      	Adjust for renames.
      
      	* gdk/gdk.symbols: Update.
      
      	* gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): Fix
      	coordinate system problem that was causing the wrong portions
      	to be invalidated.
      
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_render)
      	gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render)
      	gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render)
      	gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render)
      	gtk/gtkcellview.c (gtk_cell_view_expose)
      	gtk/gtkdnd.c (gtk_drag_highlight_expose)
      	gtk/gtkentry.c (gtk_entry_draw_text)
      	gtk/gtktextview.c (text_window_invalidate_rect): Some cairoization.
      
      	* gtk/gtkcalendar.[ch]: Beat into something roughly resembling
      	GTK+ style ... use instance-private data and standard names for
      	private structure, etc. Move function docs inline.
      
      	* gtk/gtkcalendar.[ch]: Switch to drawing everything in
      	expose. Switch drawing to Cairo.
      
      	* gtk/gtkcalendar.c (gtk_calendar_freeze): Deprecate
      	gtk_calendar_freeze/thaw
      dda40ca7
  7. 04 May, 2005 1 commit
  8. 02 May, 2005 1 commit
  9. 26 Mar, 2005 1 commit
  10. 22 Mar, 2005 1 commit
  11. 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
  12. 09 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      x · 263bce44
      Matthias Clasen authored
      2005-03-08  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_class_init):
      	* gtk/gtkrange.c (gtk_range_class_init):
      	* gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init):
      	* gtk/gtktexttag.c (gtk_text_tag_class_init):
      	* gtk/gtktextview.c (gtk_text_view_class_init):
      	* gtk/gtkscrollbar.c (gtk_scrollbar_class_init):
      	* gtk/gtknotebook.c (gtk_notebook_class_init):
      	* gtk/gtkentry.c (gtk_entry_class_init):
      	* gtk/gtkexpander.c (gtk_expander_class_init):
      	* gtk/gtkarrow.c (gtk_arrow_class_init):
      	* gtk/gtkalignment.c (gtk_alignment_class_init):
      	* gtk/gtkbutton.c (gtk_button_class_init):
      	* gtk/gtklabel.c (gtk_label_class_init):
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init):
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): x
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init):
      	* gtk/gtktreeview.c (gtk_tree_view_class_init):
      	* gtk/gtkbox.c (gtk_box_class_init):
      	* gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init):
      	* gtk/gtkcontainer.c (gtk_container_class_init):
      	* gtk/gtkwidget.c (gtk_widget_class_init):
      	* gtk/gtkobject.c (gtk_object_class_init): Use canonical names
      	when registering param specs.
      263bce44
  13. 01 Feb, 2005 1 commit
  14. 20 Jan, 2005 1 commit
    • Matthias Clasen's avatar
      Support wrapping in GtkCellRendererText (#163608): · 889e66de
      Matthias Clasen authored
      2005-01-20  Matthias Clasen  <mclasen@redhat.com>
      
      	Support wrapping in GtkCellRendererText  (#163608):
      
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
      	Add wrap-mode and wrap-width properties which cause a
      	text cell to break to a specified width when set.
      
      	* gtk/gtkcellrenderertext.c (get_layout): Use wrap-mode
      	and wrap-width when they are set.
      889e66de
  15. 09 Jan, 2005 1 commit
    • Anders Carlsson's avatar
      Don't pass NULL to pango_context_get_metrics. Use · b1167d1d
      Anders Carlsson authored
      2005-01-09  Anders Carlsson <andersca@gnome.org>
      
      	* gtk/gtkcellrenderertext.c: (get_size):
      	* gtk/gtklabel.c: (gtk_label_size_request):
      	* gtk/gtkprogressbar.c: (gtk_progress_bar_size_request):
      	Don't pass NULL to pango_context_get_metrics. Use
      	pango_context_get_language instead, which is way faster.
      b1167d1d
  16. 30 Dec, 2004 1 commit
  17. 13 Dec, 2004 1 commit
  18. 09 Dec, 2004 1 commit
    • Matthias Clasen's avatar
      Fix #145463, reported by Michael Natterer. · 788bec83
      Matthias Clasen authored
      2004-12-09  Matthias Clasen  <mclasen@redhat.com>
      
      	Fix #145463, reported by Michael Natterer.
      
      	* gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add an
      	editing flag to keep track of when editing is done.
      
      	* gtk/gtkcellrenderer.h:
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_stop_editing): New
      	function to replace gtk_cell_renderer_editing_canceled().
      	Deprecate gtk_cell_renderer_editing_canceled().
      
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done):
      	* gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_editing_done):
      	* gtk/gtktreeview.c (gtk_tree_view_stop_editing):
      	Use gtk_cell_renderer_stop_editing().
      788bec83
  19. 16 Nov, 2004 1 commit
    • Matthias Clasen's avatar
      Don't use the foreground color for selected cells, Don't use the · e23cf636
      Matthias Clasen authored
      2004-11-16  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkcellrenderertext.c (get_layout): Don't use the foreground
      	color for selected cells, Don't use the background color
      	in unfocused selected cells. Also avoid creating two PangoLayouts
      	per render call.  (#154615, #154611, Billy Biggs)
      e23cf636
  20. 20 Oct, 2004 1 commit
  21. 01 Oct, 2004 1 commit
    • Matthias Clasen's avatar
      Fix bug #150790: · a263e056
      Matthias Clasen authored
      2004-10-01  Matthias Clasen  <mclasen@redhat.com>
      
      	Fix bug #150790:
      
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): Fix the
      	calculation of x_offset when ellipsized and in RTL mode.
      	(gtk_cell_renderer_text_render): Fix the calculation of the layout
      	width when ellipsized.
      a263e056
  22. 17 Sep, 2004 1 commit
    • Matthias Clasen's avatar
      Remove leftover debug code. · 350559de
      Matthias Clasen authored
      2004-09-17  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): Remove
      	leftover debug code.
      
      	Improve the behaviour of the file chooser in save mode. Fixes bugs
      	#151031, #151608, #151994 reported by Owen Taylor and Alexander
      	Larsson.
      
      	* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_set_property):
      	(location_entry_create): Propagate the action to the file
      	chooser entries.
      	(gtk_file_chooser_default_should_respond): Switch folders if
      	the user enters a directory name in the entry and clear the entry
      	after switching folders.
      	(gtk_file_chooser_default_should_respond, shortcuts_row_activated_cb):
      	Move focus to the file list when activating a shortcut.
      	(gtk_file_chooser_default_should_respond): Handle the case where the
      	user clicks on "Save" after selecting a folder in the file list.
      
      	* gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_set_property):
      	Propagate the action to the file chooser entries.
      
      	* gtk/gtkfilechooserentry.h:
      	* gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_set_action):
      	(_gtk_file_chooser_entry_get_action): New functions to propagate
      	the GtkFileChooserAction of the file chooser to the file chooser
      	entry.
      	(check_completion_callback): If we are in save mode, only do
      	inline completion for directories.
      350559de
  23. 16 Sep, 2004 1 commit
    • Jonathan Blandford's avatar
      load images at normal size. · fa3293eb
      Jonathan Blandford authored
      Thu Sep 16 02:07:56 2004  Jonathan Blandford  <jrb@gnome.org>
      
              * docs/tools/widgets.c (create_icon_view): load images at normal
              size.
      
              * docs/reference/gtk/images/*png: Update shots.
      fa3293eb
  24. 31 Aug, 2004 1 commit
    • Jonathan Blandford's avatar
      constrain cell area to passed in cell_area, #147867 · 08bc7206
      Jonathan Blandford authored
      Tue Aug 31 17:07:41 2004  Jonathan Blandford  <jrb@redhat.com>
      
              * gtk/gtktreeviewcolumn.c
              (gtk_tree_view_column_cell_process_action): constrain cell area to
              passed in cell_area, #147867
      
              * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): if
              ellipsizing, get_size is only 3 chars wide.
      
              * docs/tree-column-sizing.png: Add Matthias's excellent image.
      08bc7206
  25. 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
  26. 23 Jul, 2004 1 commit
  27. 22 Jul, 2004 1 commit
    • Matthias Clasen's avatar
      Add a new :ellipsize property which controls ellipsization of the rendered · f0d8fe3a
      Matthias Clasen authored
      Thu Jul 22 01:42:16 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
      	Add a new :ellipsize property which controls ellipsization of the
      	rendered text.  (#144835, Vincent Untz, patch by Jonathan Blandford
      	and Anders Carlsson
      
      	* gtk/gtkfilechooserdefault.c (create_file_list): Use ellipsization
      	for the name column.
      f0d8fe3a
  28. 07 Jun, 2004 1 commit
    • Matthias Clasen's avatar
      Make the entry context menu work in editable text cells. The changes are · e387e7e6
      Matthias Clasen authored
      Sun Jun  6 23:57:21 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Make the entry context menu work in editable text cells. The changes are
      	based on a patch by Kristian Rietveld, which implemented an approach outlined
      	by Owen Taylor.  (#50075)
      
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_focus_out_event): Ignore
      	focus out if the entry menu is posted.
      	(gtk_cell_renderer_text_populate_popup): Mark the entry menu as posted, and
      	set up a signal handler to clear the flag if the menu is unmapped.
      	(gtk_cell_renderer_text_popup_unmap): Clear the in_entry_menu flag, set up
      	a timeout to stop editing if the focus is lost.
      	(popdown_timeout): Stop editing if the entry doesn't have focus any more.
      	(gtk_cell_renderer_text_start_editing): Connect to the populate_popup signal
      	on the entry and keep a pointer to the entry.
      	(gtk_cell_renderer_text_editing_done): Disconnect from popuplate_popup, clear
      	the pointer to the entry.
      e387e7e6
  29. 27 May, 2004 1 commit
  30. 14 Apr, 2004 1 commit
    • Matthias Clasen's avatar
      Make the arrow and separator regular children of an hbox inside the · b18a684f
      Matthias Clasen authored
      2004-04-14  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkcombobox.c: Make the arrow and separator regular
      	children of an hbox inside the button, and propagate state
      	changes from the button to the cell view.  (part of the fix
      	for #138650, should also fix #137535)
      
      	* gtk/gtkcellview.c (gtk_cell_view_expose): Pass the PRELIT
      	state to gtk_cell_renderer_render() when prelighted. (part
      	of the fix for #138650)
      
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
      	Use PRELIGHT state when appropriate.  (part of the fix for
      	#138650)
      b18a684f
  31. 15 Mar, 2004 1 commit
  32. 06 Mar, 2004 1 commit
  33. 03 Feb, 2004 1 commit
    • Matthias Clasen's avatar
      Clip narrow columns in rtl-oriented tree views (#128089, · 6c935950
      Matthias Clasen authored
      Tue Feb  3 01:38:06 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Clip narrow columns in rtl-oriented tree views (#128089,
      	chinen@jp.ibm.com):
      
      	* gtk/gtkstyle.c (gtk_default_draw_option):
      	* gtk/gtkstyle.c (gtk_default_draw_check): Clip to the
      	given area.
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
      	Use the right clip area when calling gtk_cell_renderer_render().
      	* gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_cell_draw_focus):
      	Use the right clip area when calling gtk_paint_focus().
      	* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
      	Use the right clip area when calling gtk_paint_toggle() or
      	gtk_paint_check().
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
      	Clip to the expose_area when drawing the background rectangle.
      6c935950
  34. 29 Jan, 2004 1 commit
    • Richard Hult's avatar
      Free font_desc. Fixes #132805. · 25d649ab
      Richard Hult authored
      2004-01-28  Richard Hult  <richard@imendio.com>
      
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size):
      	Free font_desc.  Fixes #132805.
      25d649ab
  35. 16 Jan, 2004 2 commits
    • 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
    • Federico Mena Quintero's avatar
      Fix #130969. · fb526d23
      Federico Mena Quintero authored
      2004-01-16  Federico Mena Quintero  <federico@ximian.com>
      
      	Fix #130969.
      
      	* gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): Added an
      	editing_canceled signal.
      
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Create the
      	"editing-canceled" signal.
      	(gtk_cell_renderer_editing_canceled): New function.
      
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done):
      	Call gtk_cell_renderer_editing_canceled().
      fb526d23
  36. 20 Dec, 2003 1 commit
  37. 18 Dec, 2003 1 commit