summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrenderertext.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix the default value for the wrap-mode and font-scale properties.Matthias Clasen2007-12-281-1/+3
| | | | | | | | | | | 2007-12-27 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcellrenderertext.c: Fix the default value for the wrap-mode and font-scale properties. svn path=/trunk/; revision=19256
* Add more documentation.Matthias Clasen2007-07-121-3/+6
| | | | svn path=/trunk/; revision=18453
* transform the ink_rect using pango_extents_to_pixels to avoid roundingKristian Rietveld2007-05-311-1/+2
| | | | | | | | | | | 2007-06-01 Kristian Rietveld <kris@gtk.org> * gtk/gtkcellrenderertext.c (get_size): transform the ink_rect using pango_extents_to_pixels to avoid rounding errors. (Fixes #430218, Shlomi Israel). svn path=/trunk/; revision=17996
* Don't copy PangoLanguage. (#340031, Morten Welinder)Matthias Clasen2007-03-121-1/+1
| | | | | | | | | | | 2007-03-12 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property): Don't copy PangoLanguage. (#340031, Morten Welinder) svn path=/trunk/; revision=17489
* Remove unnecessary NULL checks before g_free(). (#369666, Morten Welinder,Matthias Clasen2007-03-091-6/+3
| | | | | | | | | | | | | 2007-03-09 Matthias Clasen <mclasen@redhat.com> * Everywhere: Remove unnecessary NULL checks before g_free(). (#369666, Morten Welinder, Djihed Afifi) * configure.in: Check for ftw.h svn path=/trunk/; revision=17444
* be a little more helpful with the docs on GtkCellRendererText:alignment.Mariano Suárez-Alvarez2007-02-021-1/+5
| | | | | | | | | | | | 2007-02-02 Mariano Suárez-Alvarez <mariano@gnome.org> * gtk/gtkcellrenderertext.c(gtk_cell_renderer_text_class_init): be a little more helpful with the docs on GtkCellRendererText:alignment. Bug #403409. svn path=/trunk/; revision=17250
* Use word wrapping by default, and center multiline labels. (#318763, RossMatthias Clasen2006-12-291-6/+0
| | | | | | | | | | 2006-12-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtkiconview.c: Use word wrapping by default, and center multiline labels. (#318763, Ross Burton) * gtk/gtkcellrenderertext.c (get_layout): Remove a special case for single-line layouts.
* Replace a lot of idle and timeout calls by the new gdk_threads api.Matthias Clasen2006-12-221-5/+1
| | | | | | | 2006-12-22 Matthias Clasen <mclasen@redhat.com> * *.c: Replace a lot of idle and timeout calls by the new gdk_threads api.
* Undo bogus commit.Benjamin Berg2006-12-141-4/+1
|
* - Remove unused code/options from the code. Warn about their usage whileBenjamin Berg2006-12-131-1/+4
| | | | | | | | | | | | | | | | | | | | | 2006-12-13 Benjamin Berg <benjamin@sipsolutions.net> * engines/clearlooks/src/clearlooks_rc_style.c: (clearlooks_rc_style_init), (clearlooks_gtk2_rc_parse_dummy), (clearlooks_rc_style_parse), (clearlooks_rc_style_merge): * engines/clearlooks/src/clearlooks_rc_style.h: * engines/clearlooks/src/clearlooks_style.c: (clearlooks_style_draw_box), (clearlooks_style_init_from_rc), (clearlooks_style_copy): * engines/clearlooks/src/clearlooks_style.h: * engines/clearlooks/src/clearlooks_types.h: - Remove unused code/options from the code. Warn about their usage while parsing. * themes/Clearlooks/gtk-2.0/gtkrc: - Remove options that don't have any effect.
* cancel editing (ie. don't accept changes) when the entry loses focus.Kristian Rietveld2006-12-101-1/+3
| | | | | | | | 2006-12-10 Kristian Rietveld <kris@gtk.org> * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_focus_out_event): cancel editing (ie. don't accept changes) when the entry loses focus. (Fixes #164494, reported by Chris Rouch).
* Make sure [xy]_offset are always being initialized, fix pixbuf rendererKristian Rietveld2006-12-031-0/+5
| | | | | | | | | | | | | | | | | 2006-12-03 Kristian Rietveld <kris@gtk.org> Make sure [xy]_offset are always being initialized, fix pixbuf renderer padding. (#108235, Sven Neuman). * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size), (gtk_cell_renderer_pixbuf_render): add padding in _render instead of _get_size. * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size): always initialize [xy]_offset. * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto. * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size): ditto.
* add gtk-doc blurb on GtkCellRendererText::edited (#376094)Mariano Suárez-Alvarez2006-11-161-0/+8
| | | | | | | 2006-11-16 Mariano Suárez-Alvarez <mariano@gnome.org> * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): add gtk-doc blurb on GtkCellRendererText::edited (#376094)
* actually add align-set property to the API (left-over patch from #157439).Kristian Rietveld2006-09-241-1/+15
| | | | | | | | 2006-09-24 Kristian Rietveld <kris@gtk.org> * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init), (gtk_cell_renderer_text_[sg]et_property): actually add align-set property to the API (left-over patch from #157439).
* add align_set field to keep track whether the align property was set byKristian Rietveld2006-07-191-1/+16
| | | | | | | | | | 2006-07-19 Kristian Rietveld <kris@imendio.com> * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_init), (gtk_cell_renderer_text_[gs]et_property), (get_layout): add align_set field to keep track whether the align property was set by the user, if not we will use the alignment by looking at the direction of the widget. (#157439)
* oooops.Kristian Rietveld2006-07-181-2/+19
| | | | | | | 2006-07-18 Kristian Rietveld <kris@imendio.com> * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing): oooops.
* Fix for #335012, reported by Matteo Nastasi.Kristian Rietveld2006-07-181-0/+10
| | | | | | | | | | | | | | 2006-07-18 Kristian Rietveld <kris@imendio.com> Fix for #335012, reported by Matteo Nastasi. * gtk/gtktreeview.c (gtk_tree_view_real_start_editing): if the requested space of the editable is smaller than the cell area, put it up above the middle of the cell area. * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing): configure the inner border to cover the cell area if the entry requisition is smaller than the cell_area.
* Improve consistency of signal and property namesMatthias Clasen2006-07-061-2/+2
|
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Boilerplate reductionMatthias Clasen2006-05-021-34/+2
|
* Use _static variants when copying and merging short-lived Pango layouts.Matthias Clasen2006-04-291-2/+2
| | | | | | | 2006-04-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcellrenderertext.c (get_size): Use _static variants when copying and merging short-lived Pango layouts. (#340033, Morten Welinder)
* add missing ')'.Michael Natterer2006-03-271-1/+1
| | | | | | | 2006-03-27 Michael Natterer <mitch@imendio.com> * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property): add missing ')'.
* Small optimizationMatthias Clasen2006-03-261-8/+1
|
* Add test cases for alignment.Matthias Clasen2006-03-141-2/+30
| | | | | | | | | | | 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)
* Use connect_after to connect to the focus_out event. This ensures that theMatthias Clasen2005-09-091-3/+3
| | | | | | | * 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)
* Stylistic improvements and clarifications for some blurbs. (#315520,Matthias Clasen2005-09-091-1/+1
| | | | | | | | | | | | 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)
* Intern some more strings.Matthias Clasen2005-09-011-3/+3
| | | | | | | | | 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().
* Also intern static strings passed to g_object_set_data()Matthias Clasen2005-08-311-1/+1
|
* Intern type names in code generated by glib-mkenums, too.Matthias Clasen2005-08-311-1/+1
| | | | | | | | | | | | | 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.
* Use a GtkAlignment rather than a GtkDrawingArea to draw the swatch in toOwen Taylor2005-05-111-22/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Forgotten fileMatthias Clasen2005-05-041-3/+3
|
* Return a sufficient width for cases where pango_layout_get_pixel_extents()Matthias Clasen2005-05-021-7/+6
| | | | | | | | 2005-05-02 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcellrenderertext.c (get_size): Return a sufficient width for cases where pango_layout_get_pixel_extents() returns a rectangle with nonzero x.
* Use canonical names for g_object_notify() as well.Matthias Clasen2005-03-261-24/+24
| | | | | | | | 2005-03-26 Matthias Clasen <mclasen@redhat.com> * gtk/*.c: * gdk/gdkdisplaymanager.c: Use canonical names for g_object_notify() as well.
* Define macros GTK_PARAM_READABLE, GTK_PARAM_WRITABLE, GTK_PARAM_READWRITEMatthias Clasen2005-03-221-32/+33
| | | | | | | | | | | | 2005-03-21 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE, GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like their G_ counterparts, but also mark the name, nick and blurb as static. * gtk/*.c: Mark param spec strings as static, using the new macros.
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-1/+4
| | | | | | | | | | | | | | | | | | 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.
* xMatthias Clasen2005-03-091-23/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Forgotten file, ChangeLog from 2005-01-27Matthias Clasen2005-02-011-6/+4
|
* Support wrapping in GtkCellRendererText (#163608):Matthias Clasen2005-01-201-10/+104
| | | | | | | | | | | | | 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.
* Don't pass NULL to pango_context_get_metrics. UseAnders Carlsson2005-01-091-1/+1
| | | | | | | | | | 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.
* Use g_value_get_boolean() for ellipsize_set. (#162447, Brian Tarricone)Matthias Clasen2004-12-301-1/+1
| | | | | | | | 2004-12-30 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property): Use g_value_get_boolean() for ellipsize_set. (#162447, Brian Tarricone)
* Add a width-chars property like GtkLabel has. (#160496, James M. Cape)Matthias Clasen2004-12-131-4/+41
| | | | | | | 2004-12-13 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcellrenderertext.c: Add a width-chars property like GtkLabel has. (#160496, James M. Cape)
* Fix #145463, reported by Michael Natterer.Matthias Clasen2004-12-091-4/+3
| | | | | | | | | | | | | | | | | | | 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().
* Don't use the foreground color for selected cells, Don't use theMatthias Clasen2004-11-161-13/+31
| | | | | | | | | 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)
* Fix a wrong blurb. (#155838, Morten Welinder)Matthias Clasen2004-10-201-1/+1
| | | | | | | 2004-10-20 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): Fix a wrong blurb. (#155838, Morten Welinder)
* Fix bug #150790:Matthias Clasen2004-10-011-5/+8
| | | | | | | | | | | 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.
* Remove leftover debug code.Matthias Clasen2004-09-171-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* load images at normal size.Jonathan Blandford2004-09-161-0/+12
| | | | | | | | | 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.
* constrain cell area to passed in cell_area, #147867Jonathan Blandford2004-08-311-3/+23
| | | | | | | | | | | | | 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.
* Add hidden aliases for exported symbols which are used internally in orderMatthias Clasen2004-08-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* align the entry in the same way as the cell. (#136749)Matthias Clasen2004-07-231-0/+1
| | | | | | | Fri Jul 23 11:11:10 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing): align the entry in the same way as the cell. (#136749)