summaryrefslogtreecommitdiff
path: root/gtk/gtkcellview.c
Commit message (Collapse)AuthorAgeFilesLines
* Add model property for GtkCellView, part of #172535.Henrique Romano2006-05-241-2/+24
| | | | | | | | 2006-05-24 Henrique Romano <henrique@async.com.br> * gtk/gtkcellview.c: (gtk_cell_view_class_init), (gtk_cell_view_get_property), (gtk_cell_view_set_property): Add model property for GtkCellView, part of #172535.
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Boilerplate reductionMatthias Clasen2006-05-021-44/+4
|
* deprecated floating/sink API and implemented it in terms of the GObjectTim Janik2005-11-231-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Intern some more strings.Matthias Clasen2005-09-011-1/+1
| | | | | | | | | 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().
* 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-15/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Use canonical names for g_object_notify() as well.Matthias Clasen2005-03-261-3/+3
| | | | | | | | 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-3/+4
| | | | | | | | | | | | 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/+16
| | | | | | | | | | | | | | | | | | 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.
* More canonical property names.Matthias Clasen2005-03-091-2/+2
|
* Use _gtk_menu_item_popup_submenu() to make keynav into submenus workMatthias Clasen2004-12-151-53/+8
| | | | | | | | | | | | | | 2004-12-15 Matthias Clasen <mclasen@redhat.com> * gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first) (gtk_real_menu_shell_activate_current): Use _gtk_menu_item_popup_submenu() to make keynav into submenus work instantaneously, independent of the popup delay. (#161140) * gtk/gtkmenuitem.[hc]: _-prefix gtk_menu_item_popup_submenu() and make it non-static. * gtk/gtkmenuitem.c (gtk_menu_item_paint): Remove unused variables.
* Fix a typo in last commitMarco Pesenti Gritti2004-12-071-1/+1
| | | | | | | | 2004-12-07 Marco Pesenti Gritti <marco@gnome.org> * gtk/gtkcellview.c: (gtk_cell_view_set_background_color): Fix a typo in last commit
* Queue a redraw. (#160679, Damon Chaplin)Matthias Clasen2004-12-071-0/+2
| | | | | | | 2004-12-07 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcellview.c (gtk_cell_view_set_background_color): Queue a redraw. (#160679, Damon Chaplin)
* Don't call gtk_cell_view_set_cell_data() from here.Matthias Clasen2004-11-291-1/+4
| | | | | | | | | | | | | | | | 2004-11-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcombobox.c (cell_view_is_sensitive): Don't call gtk_cell_view_set_cell_data() from here. * gtk/gtk.symbols: Remove gtk_cell_view_set_cell_data() * gtk/gtkcellview.c (gtk_cell_view_get_cell_renderers): Call gtk_cell_view_set_cell_data() from here. (gtk_cell_view_set_cell_data): Make static. * gtk/gtkcombobox.c (gtk_combo_box_menu_popup): Make menu mode work better when resizing the combo box.
* gdk/linux-fb/gdkgc-fb.c gdk/win32/gdkgc-win32.cManish Singh2004-11-191-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Nov 19 14:54:09 2004 Manish Singh <yosh@gimp.org> * gdk/linux-fb/gdkgc-fb.c * gdk/win32/gdkgc-win32.c * gdk/win32/gdkwindow-win32.c * gtk/gtkaboutdialog.c * gtk/gtkaction.c * gtk/gtkactiongroup.c * gtk/gtkcellrendererprogress.c * gtk/gtkcellview.c * gtk/gtkcolorbutton.c * gtk/gtkcombobox.c * gtk/gtkcomboboxentry.c * gtk/gtkentrycompletion.c * gtk/gtkfilechooserbutton.c * gtk/gtkmenutoolbutton.c * gtk/gtkrc.c * gtk/gtksettings.c * gtk/gtkstyle.c * gtk/gtktoggletoolbutton.c * gtk/gtktoolbutton.c * gtk/gtktoolitem.c * gtk/gtktreemodelfilter.c * gtk/gtktreeselection.c * gtk/gtktreeviewcolumn.c * gtk/gtkuimanager.c: get rid of unnecessary casts. * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_set_property): cast away the const for g_value_set_enum. This is after the g_warning, so this is a hack to begin with. * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_set_property): add a cast to GTK_FILE_CHOOSER for impl here.
* Fix the doc formatting.Matthias Clasen2004-10-251-18/+18
| | | | | | | | | 2004-10-25 Matthias Clasen <mclasen@redhat.com> * gtk/gtkdialog.c (gtk_dialog_set_alternative_button_order): Fix the doc formatting. * gtk/gtkcellview.[hc]: Make function parameter names consistent.
* Unset GTK_REQUEST_NEEDED before emitting ::size-request, following thisMatthias Clasen2004-10-151-0/+1
| | | | | | | | 2004-10-15 Matthias Clasen <mclasen@redhat.com> * gtk/gtksizegroup.c (do_size_request): Unset GTK_REQUEST_NEEDED before emitting ::size-request, following this weeks discussion on gtk-devel-list@gnome.org.
* Restore the size info for the current row after measuring another row.Matthias Clasen2004-10-151-0/+3
| | | | | | | | 2004-10-15 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcellview.c (gtk_cell_view_get_size_of_row): Restore the size info for the current row after measuring another row. (#154945, William Jon McCann)
* Add docs.Matthias Clasen2004-10-091-1/+115
| | | | | | 2004-10-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcellview.c: Add docs.
* Silently ignore info being NULL. This is unavoidable with the currentMatthias Clasen2004-10-011-9/+10
| | | | | | | | | | | 2004-10-01 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_clear_attributes): Silently ignore info being NULL. This is unavoidable with the current design where we have every implementation of layout_clear call layout_clear_attributes, and also delegate calls to dependent cell layouts. (#154191, Martyn Russell)
* 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
* Don't crash if the displayed row is gone.Matthias Clasen2004-08-021-0/+3
| | | | | | | 2004-08-02 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcellview.c (gtk_cell_view_set_cell_data): Don't crash if the displayed row is gone.
* Remove unnecessary checks. (#148175, Morten Welinder)Matthias Clasen2004-07-231-2/+1
| | | | | | | | | | | | Fri Jul 23 10:28:43 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtktreeview.c (gtk_tree_view_finalize): * gtk/gtkradioaction.c (gtk_radio_action_finalize): * gtk/gtkfontsel.c (gtk_font_selection_finalize): * gtk/gtkcellview.c (gtk_cell_view_finalize): * gtk/gtkcalendar.c (gtk_calendar_finalize): * gtk/gtkactiongroup.c (gtk_action_group_finalize): Remove unnecessary checks. (#148175, Morten Welinder)
* Don't leak tree model and tree row reference. (#148125, Crispin Flowerday)Matthias Clasen2004-07-221-1/+9
| | | | | | | Wed Jul 21 22:24:10 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcellview.c (gtk_cell_view_finalize): Don't leak tree model and tree row reference. (#148125, Crispin Flowerday)
* Support insensitive cells in tree views and combo boxes.Matthias Clasen2004-05-271-2/+18
|
* Add a missing cat. (#141070, Chris Sherlock)Matthias Clasen2004-04-291-1/+0
| | | | | | | | | | | | | | | | 2004-04-29 Matthias Clasen <mclasen@redhat.com> * tests/testentrycompletion.c (main): Add a missing cat. (#141070, Chris Sherlock) * gtk/gtkrc.c (gtk_rc_check_pixmap_dir): Remove unused variable. (#141022, Chris Sherlock) * gtk/gtkcombo.c (gtk_combo_popup_list): Add a missing cast. (#141013, Chris Sherlock) * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear): Remove unused variable. (#141011, Chris Sherlock)
* Make the arrow and separator regular children of an hbox inside theMatthias Clasen2004-04-141-2/+8
| | | | | | | | | | | | | | | | | 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)
* Align this function with gtk_tree_view_column_set_cell_data(); call theMatthias Clasen2004-03-141-13/+14
| | | | | | | | | | | | | | Sun Mar 14 01:01:18 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcellview.c (gtk_cell_view_set_cell_data): Align this function with gtk_tree_view_column_set_cell_data(); call the cell data func after setting the attributes. Sun Mar 14 01:00:08 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcellview.c (gtk_cell_view_expose): One more try; make sure not to call gtk_cell_view_set_cell_data() when displayed_row is NULL.
* Support the model-less use of GtkCellView shown in testcombo.c.Matthias Clasen2004-03-131-1/+1
| | | | | | | Sun Mar 14 00:03:18 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcellview.c (gtk_cell_view_expose): Support the model-less use of GtkCellView shown in testcombo.c.
* Don't do anything beyond clearing to the background if there is no activeMatthias Clasen2004-03-131-3/+5
| | | | | | | | Sat Mar 13 21:47:47 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcellview.c (gtk_cell_view_expose): Don't do anything beyond clearing to the background if there is no active row. (#137066, reported by Owen Taylor)
* Keep the cell_list in a consistent state while iterating over it, sinceMatthias Clasen2004-03-101-5/+4
| | | | | | | | Wed Mar 10 22:30:23 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear): Keep the cell_list in a consistent state while iterating over it, since clear_attributes() also iterates over it. (#136585, Morten Welinder)
* Fixes #136082 and #135265, patch by Morten Welinder.Federico Mena Quintero2004-03-061-0/+1
| | | | | | | | | | 2004-03-05 Federico Mena Quintero <federico@ximian.com> Fixes #136082 and #135265, patch by Morten Welinder. * configure.in: Use AC_SYS_LARGEFILE. * */*.c: #include <config.h>
* Always connect to the changed signals on the model, update the active itemOwen Taylor2004-03-021-3/+19
| | | | | | | | | | | | | Tue Mar 2 11:45:50 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtkcombobox.c: Always connect to the changed signals on the model, update the active item as appropriate when rows are inserted/deleted/reordered, re-layout the menu on ::rows-reordered. * gtk/gtkcellview.c (gtk_cell_view_set_displayed_row): Allow %NULL for path to unset and leave no current path.
* Ugh. Don't try to free ints, even if they're stored in pointers.Matthias Clasen2004-02-091-1/+8
| | | | | | | Mon Feb 9 22:22:19 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): Ugh. Don't try to free ints, even if they're stored in pointers.
* Actually free the lists. Pointed out by Morten Welinder.Matthias Clasen2004-02-061-10/+2
| | | | | | | | | Fri Feb 6 23:08:29 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtktextbtree.c (_gtk_text_btree_check): * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes): * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): Actually free the lists. Pointed out by Morten Welinder.
* Fix #105497; constify uses of GdkColor.Federico Mena Quintero2004-01-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-26 Federico Mena Quintero <federico@ximian.com> Fix #105497; constify uses of GdkColor. * gdk/gdkgc.c (gdk_gc_set_rgb_fg_color): Constify. (gdk_gc_set_rgb_bg_color): Constify. (gdk_gc_set_foreground): Constify. * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Constify. * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Constify. * gdk/linux-fb/gdkcursor-fb.c (gdk_cursor_new_from_pixmap): Constify. * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_create_from_data): Constify. * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data): Constify. * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_create_from_data): Constify. * gdk/x11/gdkwindow-x11.c (gdk_window_set_background): Constify. * gdk/win32/gdkwindow-win32.c (gdk_window_set_background): Constify. * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Constify. * gdk/gdkpango.c (gdk_draw_layout_line_with_colors): Constify. (gdk_draw_layout_with_colors): Constify. * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): Constify. (gdk_pixmap_colormap_create_from_xpm): Constify. (gdk_pixmap_create_from_xpm): Constify. (gdk_pixmap_colormap_create_from_xpm_d): Constify. (gdk_pixmap_create_from_xpm_d): Constify. * gtk/gtkcellview.c (gtk_cell_view_set_background_color): Constify. * gtk/gtkclist.c (gtk_clist_set_foreground): Constify. (gtk_clist_set_background): Constify. * gtk/gtkcolorbutton.c (gtk_color_button_new_with_color): Constify. (gtk_color_button_set_color): Constify. * gtk/gtkcolorsel.c (gtk_color_selection_set_current_color): Constify and add a check for color != NULL. (gtk_color_selection_get_current_color): Add a check for color != NULL. (gtk_color_selection_set_previous_color): Constify and add a check for color != NULL. (gtk_color_selection_get_previous_color): Add a check for color != NULL. * gtk/gtkctree.c (gtk_ctree_node_set_foreground): Constify. (gtk_ctree_node_set_background): Constify. * gtk/gtktext.c (gtk_text_insert): Constify. (insert_text_property): Constify. (text_properties_equal): Constify. (new_text_property): Constify. * gtk/gtkwidget.c (gtk_widget_modify_color_component): Constify. (gtk_widget_modify_fg): Constify. (gtk_widget_modify_bg): Constify. (gtk_widget_modify_text): Constify. (gtk_widget_modify_base): Constify.
* The first part of the fix for #114351 (see also gdk-pixbuf/ChangeLog andMatthias Clasen2004-01-161-6/+6
| | | | | | | | | | | | | | | | | | | | 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_().
* Fixes #108458.Kristian Rietveld2003-12-191-0/+32
| | | | | | | | | | | | | | | | | | | | Fri Dec 19 23:36:00 2003 Kristian Rietveld <kris@gtk.org> Fixes #108458. * gtk/gtkcelllayout.[ch]: added a reorder method. * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_init), (gtk_tree_view_column_cell_layout_reorder): implement reorder. * gtk/gtkcellview.c (gtk_cell_view_cell_layout_init), (gtk_cell_view_cell_layout_reorder): ditto. * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_init), (gtk_combo_box_cell_layout_reorder): ditto. * gtk/gtkentrycompletion.c (gtk_entry_completion_cell_layout_init), (gtk_entry_completion_reorder): ditto.
* Combo box flipping support.Kristian Rietveld2003-12-121-3/+12
| | | | | | | | | | | | | | | Fri Dec 12 21:00:12 2003 Kristian Rietveld <kris@gtk.org> Combo box flipping support. * gtk/gtkcombobox.c (gtk_combo_box_menu_position), (gtk_combo_box_size_allocate): support RTL flipping (#126518, patch from Matthias Clasen), (gtk_combo_box_popup): fix popup window alignment if there's a cell view frame visible (#126518, patch from Semion Chichelnitsky). * gtk/gtkcellview.c (gtk_cell_view_expose): support RTL flipping (#128348, patch from Semion Chichelnitsky).
* === Released 2.3.1 ===Owen Taylor2003-12-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Dec 8 10:54:44 2003 Owen Taylor <otaylor@redhat.com> * === Released 2.3.1 === * NEWS: Updates for 2.3.1 * configure.in: Version 2.3.1, interface age 0, binary age 301. * gtk/gtkmenuitem.c (gtk_menu_item_can_activate_accel): Rename from gtk_menu_item_real_can_activate_accel() to match GTK+ convention, improve comment. * gtk/gtkwidget.c: Document gtk_widget_can_activate_accel(), can ::can-activate-accel signal. * gtk/gtkwidget.c (closure_accel_activate): Fix spelling in comment. * gtk/gtkmenu.c (gtk_menu_real_can_activate_accel): Clean up comment. * gtk/gtkcellview{,menuitem}.[ch]: Move GET_PRIVATE() macros into the .c file. Mon Dec 8 12:09:21 2003 Owen Taylor <otaylor@redhat.com> * gtk/gtkicontheme.c (find_builtin_icon): Fix a missing 'else'. (#128816, Jorn Baayen)
* Fixes based on comments from Owen Taylor, #125264.Kristian Rietveld2003-11-181-36/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Nov 18 19:47:59 2003 Kristian Rietveld <kris@gtk.org> Fixes based on comments from Owen Taylor, #125264. * gtk/gtkcellview.[ch] (gtk_cell_view_finalize): remove unused variable, (gtk_cell_view_set_value), (gtk_cell_view_set_displayed_model): queue a resize, (gtk_cell_view_get_size_of_row): new function, (gtk_cell_view_set_value), (gtk_cell_view_set_valuesv), (gtk_cell_view_set_values), (gtk_cell_view_set_model), (gtk_cell_view_set_displayed_row), (gtk_cell_view_get_displayed_row): s/cellview/cell_view/ in the function definitions, so they match with the header file. * gtk/gtkcombobox.c (gtk_combo_box_remeasure): remove the resize flag again (:, and use gtk_cell_view_get_size_of_row instead of the measurer, remove _set_size_request call, (gtk_combo_box_calc_requested_width): use gtk_cell_view_get_size_of_row instead of the measurer, (gtk_combo_box_style_set): queue a resize, (gtk_combo_box_size_request): update of _remeasure call, (gtk_combo_box_init), (gtk_combo_box_cell_layout_pack_start), (gtk_combo_box_cell_layout_pack_end), (gtk_combo_box_cell_layout_clear), (gtk_combo_box_set_model): get rid of the measurer, (gtk_combo_box_cell_layout_add_attribute), (gtk_combo_box_cell_layout_set_cell_data_func), (gtk_combo_box_cell_layout_clear_attributes): ditto and queue a resize instead of calling _remeasure.
* just call gtk_cell_view_cell_layout_clear instead of trying to free theKristian Rietveld2003-11-161-6/+1
| | | | | | | | Sun Nov 16 21:48:40 2003 Kristian Rietveld <kris@gtk.org> * gtk/gtkcellview.c (gtk_cell_view_finalize): just call gtk_cell_view_cell_layout_clear instead of trying to free the structure ourselves here. (#125726, Morten Welinder).
* Fix licensing (I managed to put it under GPL licensing instead ofKristian Rietveld2003-10-241-8/+8
| | | | | | | | | | Fri Oct 24 20:31:35 2003 Kristian Rietveld <kris@gtk.org> * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch], gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch], gtk/gtktreemodelfilter.[ch]: Fix licensing (I managed to put it under GPL licensing instead of LGPL...). (Fixes #125381, Soeren Sandmann).
* Fix includes.Kristian Rietveld2003-10-231-6/+6
| | | | | | | | Thu Oct 23 20:21:16 2003 Kristian Rietveld <kris@gtk.org> * gtk/gtkcelllayout.c, gtk/gtkcellview.c gtk/gtkcellviewmenuitem.c, gtk/gtkcombobox.c, gtk/gtkcomboboxentry.c, gtk/gtkentrycompletion.c, gtk/gtktreemodelfilter.c, gtk/gtkcellrenderertoggle.c: Fix includes.
* implement the GtkCellLayout interface, drop packing/attribute/cell dataKristian Rietveld2003-10-011-150/+212
| | | | | | | | | | | | | | | | | Wed Oct 1 22:43:40 2003 Kristian Rietveld <kris@gtk.org> * gtk/gtkcellview.[ch]: implement the GtkCellLayout interface, drop packing/attribute/cell data functions from the header, (gtk_cell_view_set_cell_data): added support for cell data funcs. * gtk/gtkcombobox.[ch]: implement the GtkCellLayout interface, drop packing/attribute/cell data functions from the header, implemented cell data func support. * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new): updated for the move to GtkCellLayout. * tests/testcombo.c (create_combo_box_grid_demo), (main): ditto.
* Landing the new ComboBox. Note that only gtkcombobox.h andKristian Rietveld2003-09-261-0/+835
Fri Sep 26 23:49:44 2003 Kristian Rietveld <kris@gtk.org> Landing the new ComboBox. Note that only gtkcombobox.h and gtkcomboboxentry.h are public. * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch], gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch]: new files. * gtk/Makefile.am, gtk/gtk.h: adding the new files. * tests/testcombo.c: and a new test. * tests/Makefile.am: adding the new test.