summaryrefslogtreecommitdiff
path: root/gtk/gtkcellview.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-03-20 07:01:23 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-03-20 07:01:23 +0000
commitcca8dd63475ab582d8592039f1f69d7f22a3b928 (patch)
treef800dcc62e1ab8a0010e774a05e669b14c3ff5e1 /gtk/gtkcellview.c
parentb39b0bfc0471258285169113bc176320b0b5ae71 (diff)
downloadgtk+-cca8dd63475ab582d8592039f1f69d7f22a3b928.tar.gz
Make PLT-reduction work with gcc4, and don't include everything in
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.
Diffstat (limited to 'gtk/gtkcellview.c')
-rw-r--r--gtk/gtkcellview.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c
index 1b1d8c2c93..909a1b5a8c 100644
--- a/gtk/gtkcellview.c
+++ b/gtk/gtkcellview.c
@@ -18,7 +18,6 @@
*/
#include <config.h>
-#include "gtkalias.h"
#include "gtkcellview.h"
#include "gtkcelllayout.h"
#include "gtkintl.h"
@@ -26,6 +25,7 @@
#include "gtkcellrenderertext.h"
#include "gtkcellrendererpixbuf.h"
#include <gobject/gmarshal.h>
+#include "gtkalias.h"
typedef struct _GtkCellViewCellInfo GtkCellViewCellInfo;
struct _GtkCellViewCellInfo
@@ -967,6 +967,18 @@ gtk_cell_view_set_displayed_row (GtkCellView *cell_view,
gtk_widget_queue_draw (GTK_WIDGET (cell_view));
}
+/**
+ * gtk_cell_view_get_displayed_row:
+ * @cell_view: a #GtkCellView
+ *
+ * Returns a #GtkTreePath referring to the currently
+ * displayed row. If no row is currently displayed,
+ * %NULL is returned.
+ *
+ * Returns: the currently displayed row or %NULL
+ *
+ * Since: 2.6
+ */
GtkTreePath *
gtk_cell_view_get_displayed_row (GtkCellView *cell_view)
{
@@ -1085,3 +1097,6 @@ gtk_cell_view_get_cell_renderers (GtkCellView *cell_view)
return g_list_reverse (retval);
}
+
+#define __GTK_CELL_VIEW_C__
+#include "gtkaliasdef.c"