diff options
author | Miguel de Icaza <miguel@nuclecu.unam.mx> | 1998-03-10 05:25:15 +0000 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-03-10 05:25:15 +0000 |
commit | 23a7e9c93ea2ca7ef3b31f4bc2942cfbf60ccd0b (patch) | |
tree | 1df91da7a656bc997bc7c4b4c717997c3735e42e | |
parent | 0db2549361345c9dd62cbcfbf1f36eaea2a8f020 (diff) | |
download | gdk-pixbuf-23a7e9c93ea2ca7ef3b31f4bc2942cfbf60ccd0b.tar.gz |
Export functionality.
Mon Mar 9 23:24:42 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtk/gtkclist.c (gtk_clist_get_selection_info): Export
functionality.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-0 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-2 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-4 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 5 | ||||
-rw-r--r-- | gtk/gtkclist.c | 23 |
8 files changed, 52 insertions, 6 deletions
@@ -1,3 +1,8 @@ +Mon Mar 9 23:24:42 1998 Miguel de Icaza <miguel@nuclecu.unam.mx> + + * gtk/gtkclist.c (gtk_clist_get_selection_info): Export + functionality. + Tue Mar 10 05:42:34 1998 Tim Janik <timj@gimp.org> * configure.in: Bumped version number to 0.99.5. diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index c59d59499..dea5983e6 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +Mon Mar 9 23:24:42 1998 Miguel de Icaza <miguel@nuclecu.unam.mx> + + * gtk/gtkclist.c (gtk_clist_get_selection_info): Export + functionality. + Tue Mar 10 05:42:34 1998 Tim Janik <timj@gimp.org> * configure.in: Bumped version number to 0.99.5. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index c59d59499..dea5983e6 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Mon Mar 9 23:24:42 1998 Miguel de Icaza <miguel@nuclecu.unam.mx> + + * gtk/gtkclist.c (gtk_clist_get_selection_info): Export + functionality. + Tue Mar 10 05:42:34 1998 Tim Janik <timj@gimp.org> * configure.in: Bumped version number to 0.99.5. diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index c59d59499..dea5983e6 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +Mon Mar 9 23:24:42 1998 Miguel de Icaza <miguel@nuclecu.unam.mx> + + * gtk/gtkclist.c (gtk_clist_get_selection_info): Export + functionality. + Tue Mar 10 05:42:34 1998 Tim Janik <timj@gimp.org> * configure.in: Bumped version number to 0.99.5. diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index c59d59499..dea5983e6 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +Mon Mar 9 23:24:42 1998 Miguel de Icaza <miguel@nuclecu.unam.mx> + + * gtk/gtkclist.c (gtk_clist_get_selection_info): Export + functionality. + Tue Mar 10 05:42:34 1998 Tim Janik <timj@gimp.org> * configure.in: Bumped version number to 0.99.5. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index c59d59499..dea5983e6 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Mon Mar 9 23:24:42 1998 Miguel de Icaza <miguel@nuclecu.unam.mx> + + * gtk/gtkclist.c (gtk_clist_get_selection_info): Export + functionality. + Tue Mar 10 05:42:34 1998 Tim Janik <timj@gimp.org> * configure.in: Bumped version number to 0.99.5. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index c59d59499..dea5983e6 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Mon Mar 9 23:24:42 1998 Miguel de Icaza <miguel@nuclecu.unam.mx> + + * gtk/gtkclist.c (gtk_clist_get_selection_info): Export + functionality. + Tue Mar 10 05:42:34 1998 Tim Janik <timj@gimp.org> * configure.in: Bumped version number to 0.99.5. diff --git a/gtk/gtkclist.c b/gtk/gtkclist.c index 00e40d9a9..be32f889c 100644 --- a/gtk/gtkclist.c +++ b/gtk/gtkclist.c @@ -194,12 +194,6 @@ static void real_unselect_row (GtkCList * clist, gint column, GdkEventButton * event); -static gint get_selection_info (GtkCList * clist, - gint x, - gint y, - gint * row, - gint * column); - /* Resize Columns */ static void draw_xor_line (GtkCList * clist); static gint new_column_width (GtkCList * clist, @@ -2340,6 +2334,15 @@ gtk_clist_size_allocate (GtkWidget * widget, adjust_scrollbars (clist); } +gint +gtk_clist_row_from_ypixel (GtkCList *clist, gint y) +{ + g_return_val_if_fail (GTK_IS_CLIST (clist), 0); + g_return_val_if_fail (y >= 0, 0); + + return ROW_FROM_YPIXEL (clist, y); +} + /* * GTKCONTAINER * gtk_clist_foreach @@ -3075,6 +3078,14 @@ get_selection_info (GtkCList * clist, return 1; } +gint +gtk_clist_get_selection_info (GtkCList *clist, gint x, gint y, gint *row, gint *column) +{ + g_return_val_if_fail (clist != NULL, 0); + g_return_val_if_fail (GTK_IS_CLIST (clist), 0); + return get_selection_info (clist, x, y, row, column); +} + /* * RESIZE COLUMNS * draw_xor_line |