diff options
author | Kristian Rietveld <kris@gtk.org> | 2002-04-13 20:48:31 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2002-04-13 20:48:31 +0000 |
commit | 2666ab462e01c0c0895d70c71282917b7e0101a5 (patch) | |
tree | 5efd2d039bbd4488abf7c9f69417b02197078120 /gtk/gtkcellrenderertext.c | |
parent | 0a4977915beb136ca1b0fa735fc4e1304fbb0b0f (diff) | |
download | gdk-pixbuf-2666ab462e01c0c0895d70c71282917b7e0101a5.tar.gz |
Fixes #75510
Sat Apr 13 22:49:45 2002 Kristian Rietveld <kris@gtk.org>
Fixes #75510
* gtk/gtktreeselection.c (gtk_tree_selection_get_selected): make this
function work correctly and more sane
* gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): remove
node->children from rbtree before emitting GtkTreeSelection::changed
Sat Apr 13 17:15:12 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_init): dont set
the mode to GTK_CELL_RENDERER_MODE_EDITABLE by default,
(gtk_cell_renderer_text_class_init): for some reason our default for
editable was TRUE, of course this is FALSE.
(gtk_cell_renderer_text_set_property): update mode when editable
has been changed.
Diffstat (limited to 'gtk/gtkcellrenderertext.c')
-rw-r--r-- | gtk/gtkcellrenderertext.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/gtkcellrenderertext.c b/gtk/gtkcellrenderertext.c index b64a0e0db..19619cad4 100644 --- a/gtk/gtkcellrenderertext.c +++ b/gtk/gtkcellrenderertext.c @@ -146,7 +146,6 @@ gtk_cell_renderer_text_init (GtkCellRendererText *celltext) GTK_CELL_RENDERER (celltext)->yalign = 0.5; GTK_CELL_RENDERER (celltext)->xpad = 2; GTK_CELL_RENDERER (celltext)->ypad = 2; - GTK_CELL_RENDERER (celltext)->mode = GTK_CELL_RENDERER_MODE_EDITABLE; celltext->fixed_height_rows = -1; celltext->font = pango_font_description_new (); } @@ -230,7 +229,7 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class) g_param_spec_boolean ("editable", _("Editable"), _("Whether the text can be modified by the user"), - TRUE, + FALSE, G_PARAM_READABLE | G_PARAM_WRITABLE)); g_object_class_install_property (object_class, @@ -979,6 +978,10 @@ gtk_cell_renderer_text_set_property (GObject *object, case PROP_EDITABLE: celltext->editable = g_value_get_boolean (value); celltext->editable_set = TRUE; + if (celltext->editable) + GTK_CELL_RENDERER (celltext)->mode = GTK_CELL_RENDERER_MODE_EDITABLE; + else + GTK_CELL_RENDERER (celltext)->mode = GTK_CELL_RENDERER_MODE_INERT; g_object_notify (object, "editable_set"); break; |