diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-03-30 16:52:04 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-03-30 16:52:04 +0800 |
commit | 0e347fdbe179247d7e641af57bb6046477fe5449 (patch) | |
tree | e424cb5bb32a85e6bde18d93bd571ec194c63c69 /widgets/table/e-table-group-leaf.c | |
parent | e0ba87c430049a2f18464abcdf091af4a5010957 (diff) | |
download | gsoc2013-evolution-0e347fdbe179247d7e641af57bb6046477fe5449.tar gsoc2013-evolution-0e347fdbe179247d7e641af57bb6046477fe5449.tar.gz gsoc2013-evolution-0e347fdbe179247d7e641af57bb6046477fe5449.tar.bz2 gsoc2013-evolution-0e347fdbe179247d7e641af57bb6046477fe5449.tar.lz gsoc2013-evolution-0e347fdbe179247d7e641af57bb6046477fe5449.tar.xz gsoc2013-evolution-0e347fdbe179247d7e641af57bb6046477fe5449.tar.zst gsoc2013-evolution-0e347fdbe179247d7e641af57bb6046477fe5449.zip |
Changed the signal "table_selection_model" to just be "selection_model"
2001-03-30 Christopher James Lahey <clahey@ximian.com>
* e-table-group-container.c, e-table-group-container.h,
e-table-group-leaf.c, e-table-group-leaf.h, e-table-item.c,
e-table-item.h, e-table.c, e-tree.c: Changed the signal
"table_selection_model" to just be "selection_model" everywhere
and made it be ESelectionModels instead of ETableSelectionModels
for generality.
* e-table-item.c (eti_event): Make right arrow and left arrow
accessible as events that can be caught.
* e-tree-sorted.c, e-tree-sorted.h (e_tree_sorted_orig_position):
Added this function.
svn path=/trunk/; revision=9041
Diffstat (limited to 'widgets/table/e-table-group-leaf.c')
-rw-r--r-- | widgets/table/e-table-group-leaf.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/widgets/table/e-table-group-leaf.c b/widgets/table/e-table-group-leaf.c index 314d80e3de..b1a91ad67e 100644 --- a/widgets/table/e-table-group-leaf.c +++ b/widgets/table/e-table-group-leaf.c @@ -34,7 +34,7 @@ enum { ARG_TABLE_DRAW_FOCUS, ARG_CURSOR_MODE, ARG_LENGTH_THRESHOLD, - ARG_TABLE_SELECTION_MODEL, + ARG_SELECTION_MODEL, }; static void etgl_set_arg (GtkObject *object, GtkArg *arg, guint arg_id); @@ -48,8 +48,8 @@ etgl_destroy (GtkObject *object) gtk_object_unref (GTK_OBJECT(etgl->ets)); if (etgl->item) gtk_object_destroy (GTK_OBJECT(etgl->item)); - if (etgl->table_selection_model) - gtk_object_unref (GTK_OBJECT(etgl->table_selection_model)); + if (etgl->selection_model) + gtk_object_unref (GTK_OBJECT(etgl->selection_model)); if (GTK_OBJECT_CLASS (etgl_parent_class)->destroy) GTK_OBJECT_CLASS (etgl_parent_class)->destroy (object); } @@ -182,7 +182,7 @@ etgl_realize (GnomeCanvasItem *item) "cursor_mode", etgl->cursor_mode, "minimum_width", etgl->minimum_width, "length_threshold", etgl->length_threshold, - "table_selection_model", etgl->table_selection_model, + "selection_model", etgl->selection_model, NULL)); gtk_signal_connect (GTK_OBJECT(etgl->item), "cursor_change", @@ -325,15 +325,15 @@ etgl_set_arg (GtkObject *object, GtkArg *arg, guint arg_id) NULL); } break; - case ARG_TABLE_SELECTION_MODEL: - if (etgl->table_selection_model) - gtk_object_unref(GTK_OBJECT(etgl->table_selection_model)); - etgl->table_selection_model = E_TABLE_SELECTION_MODEL(GTK_VALUE_OBJECT (*arg)); - if (etgl->table_selection_model) - gtk_object_ref(GTK_OBJECT(etgl->table_selection_model)); + case ARG_SELECTION_MODEL: + if (etgl->selection_model) + gtk_object_unref(GTK_OBJECT(etgl->selection_model)); + etgl->selection_model = E_SELECTION_MODEL(GTK_VALUE_OBJECT (*arg)); + if (etgl->selection_model) + gtk_object_ref(GTK_OBJECT(etgl->selection_model)); if (etgl->item) { gnome_canvas_item_set (GNOME_CANVAS_ITEM(etgl->item), - "table_selection_model", etgl->table_selection_model, + "selection_model", etgl->selection_model, NULL); } @@ -438,8 +438,8 @@ etgl_class_init (GtkObjectClass *object_class) GTK_ARG_WRITABLE, ARG_CURSOR_MODE); gtk_object_add_arg_type ("ETableGroupLeaf::length_threshold", GTK_TYPE_INT, GTK_ARG_WRITABLE, ARG_LENGTH_THRESHOLD); - gtk_object_add_arg_type ("ETableGroupLeaf::table_selection_model", GTK_TYPE_OBJECT, - GTK_ARG_WRITABLE, ARG_TABLE_SELECTION_MODEL); + gtk_object_add_arg_type ("ETableGroupLeaf::selection_model", E_SELECTION_MODEL_TYPE, + GTK_ARG_WRITABLE, ARG_SELECTION_MODEL); gtk_object_add_arg_type ("ETableGroupLeaf::height", GTK_TYPE_DOUBLE, GTK_ARG_READABLE, ARG_HEIGHT); @@ -469,7 +469,7 @@ etgl_init (GtkObject *object) etgl->cursor_mode = E_CURSOR_SIMPLE; etgl->length_threshold = -1; - etgl->table_selection_model = NULL; + etgl->selection_model = NULL; e_canvas_item_set_reflow_callback (GNOME_CANVAS_ITEM(object), etgl_reflow); } |