summaryrefslogtreecommitdiff
path: root/gtk/gtkclist.h
diff options
context:
space:
mode:
authorLars Hamann <lars@gtk.org>1998-12-02 00:52:14 +0000
committerLars Hamann <lars@src.gnome.org>1998-12-02 00:52:14 +0000
commit4ebc61c067af80a3cd24f1cfd79ec6b6be80e350 (patch)
tree9113164bd41b9a111b0a0512bda4eca1a4491ee0 /gtk/gtkclist.h
parent70784023413b1e6fb748ad5e51d8d311ed651f0f (diff)
downloadgtk+-4ebc61c067af80a3cd24f1cfd79ec6b6be80e350.tar.gz
new class method/signal row_move. new public function. emit a row_move
Tue Dec 1 22:45:58 1998 Lars Hamann <lars@gtk.org> * gtk/gtkclist.h (struct _GtkCListClass): new class method/signal row_move. * gtk/gtkclist.c (gtk_clist_row_move): new public function. emit a row_move signal (real_row_move): move source_row to dest_row (gtk_clist_swap_rows): use gtk_clist_row_move calls. (gtk_clist_columns_autosize): resize all columns to their optimal width * gtk/gtkctree.c (real_row_move): use gtk_ctree_move to move entire sub-tree. * gtk/gtknotebook.c (gtk_notebook_nth_page): get nth page widget.
Diffstat (limited to 'gtk/gtkclist.h')
-rw-r--r--gtk/gtkclist.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk/gtkclist.h b/gtk/gtkclist.h
index f62e38155d..fb79d82fc7 100644
--- a/gtk/gtkclist.h
+++ b/gtk/gtkclist.h
@@ -201,6 +201,9 @@ struct _GtkCListClass
gint row,
gint column,
GdkEvent *event);
+ void (*row_move) (GtkCList *clist,
+ gint source_row,
+ gint dest_row);
void (*click_column) (GtkCList *clist,
gint column);
void (*resize_column) (GtkCList *clist,
@@ -464,6 +467,8 @@ void gtk_clist_set_column_auto_resize (GtkCList *clist,
gint column,
gboolean auto_resize);
+gint gtk_clist_columns_autosize (GtkCList *clist);
+
/* return the optimal column width, i.e. maximum of all cell widths */
gint gtk_clist_optimal_column_width (GtkCList *clist,
gint column);
@@ -681,6 +686,11 @@ void gtk_clist_swap_rows (GtkCList *clist,
gint row1,
gint row2);
+/* move row from source_row position to dest_row position */
+void gtk_clist_row_move (GtkCList *clist,
+ gint source_row,
+ gint dest_row);
+
/* sets a compare function different to the default */
void gtk_clist_set_compare_func (GtkCList *clist,
GtkCListCompareFunc cmp_func);