* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifndef __GTK_ICON_VIEW_H__
+#define __GTK_ICON_VIEW_H__
+
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
-#ifndef __GTK_ICON_VIEW_H__
-#define __GTK_ICON_VIEW_H__
-
#include <gtk/gtkcontainer.h>
#include <gtk/gtktreemodel.h>
#include <gtk/gtkcellrenderer.h>
+#include <gtk/gtkcellarea.h>
#include <gtk/gtkselection.h>
#include <gtk/gtktooltip.h>
{
GtkContainer parent;
- /* <private> */
+ /*< private >*/
GtkIconViewPrivate *priv;
};
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,
gboolean gtk_icon_view_get_visible_range (GtkIconView *icon_view,
GtkTreePath **start_path,
GtkTreePath **end_path);
+GDK_AVAILABLE_IN_3_8
+void gtk_icon_view_set_activate_on_single_click (GtkIconView *icon_view,
+ gboolean single);
+GDK_AVAILABLE_IN_3_8
+gboolean gtk_icon_view_get_activate_on_single_click (GtkIconView *icon_view);
void gtk_icon_view_selected_foreach (GtkIconView *icon_view,
GtkIconViewForeachFunc func,
gint wy,
gint *bx,
gint *by);
+GDK_AVAILABLE_IN_3_6
+gboolean gtk_icon_view_get_cell_rect (GtkIconView *icon_view,
+ GtkTreePath *path,
+ GtkCellRenderer *cell,
+ GdkRectangle *rect);
void gtk_icon_view_set_tooltip_item (GtkIconView *icon_view,