[gtk+/icon-view-refactor: 7/12] Added gtk_icon_view_new_with_area()
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/icon-view-refactor: 7/12] Added gtk_icon_view_new_with_area()
- Date: Tue, 21 Dec 2010 12:48:20 +0000 (UTC)
commit e9fcc080c15d6c576667086a9b594cba033fe823
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Mon Dec 13 15:54:02 2010 +0900
Added gtk_icon_view_new_with_area()
docs/reference/gtk/gtk3-sections.txt | 1 +
gtk/gtk.symbols | 1 +
gtk/gtkiconview.c | 17 +++++++++++++++++
gtk/gtkiconview.h | 2 ++
4 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/gtk/gtk3-sections.txt b/docs/reference/gtk/gtk3-sections.txt
index 41dbae9..db9edf2 100644
--- a/docs/reference/gtk/gtk3-sections.txt
+++ b/docs/reference/gtk/gtk3-sections.txt
@@ -1619,6 +1619,7 @@ gtk_hseparator_get_type
GtkIconView
GtkIconViewForeachFunc
gtk_icon_view_new
+gtk_icon_view_new_with_area
gtk_icon_view_new_with_model
gtk_icon_view_set_model
gtk_icon_view_get_model
diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols
index 3c768c4..83e4ef6 100644
--- a/gtk/gtk.symbols
+++ b/gtk/gtk.symbols
@@ -1231,6 +1231,7 @@ gtk_icon_view_get_type G_GNUC_CONST
gtk_icon_view_get_visible_range
gtk_icon_view_item_activated
gtk_icon_view_new
+gtk_icon_view_new_with_area
gtk_icon_view_new_with_model
gtk_icon_view_path_is_selected
gtk_icon_view_scroll_to_path
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 2fc13b3..e4b7f6e 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -4161,6 +4161,23 @@ gtk_icon_view_new (void)
}
/**
+ * gtk_icon_view_new_with_area:
+ * @area: the #GtkCellArea to use to layout cells
+ *
+ * Creates a new #GtkIconView widget using the
+ * specified @area to layout cells inside the icons.
+ *
+ * Return value: A newly created #GtkIconView widget
+ *
+ * Since: 3.0
+ **/
+GtkWidget *
+gtk_icon_view_new_with_area (GtkCellArea *area)
+{
+ return g_object_new (GTK_TYPE_ICON_VIEW, "cell-area", area, NULL);
+}
+
+/**
* gtk_icon_view_new_with_model:
* @model: The model.
*
diff --git a/gtk/gtkiconview.h b/gtk/gtkiconview.h
index cf769b6..bac6218 100644
--- a/gtk/gtkiconview.h
+++ b/gtk/gtkiconview.h
@@ -27,6 +27,7 @@
#include <gtk/gtkcontainer.h>
#include <gtk/gtktreemodel.h>
#include <gtk/gtkcellrenderer.h>
+#include <gtk/gtkcellarea.h>
#include <gtk/gtkselection.h>
#include <gtk/gtktooltip.h>
@@ -112,6 +113,7 @@ struct _GtkIconViewClass
GType gtk_icon_view_get_type (void) G_GNUC_CONST;
GtkWidget * gtk_icon_view_new (void);
+GtkWidget * gtk_icon_view_new_with_area (GtkCellArea *area);
GtkWidget * gtk_icon_view_new_with_model (GtkTreeModel *model);
void gtk_icon_view_set_model (GtkIconView *icon_view,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]