Example #1
0
static VALUE
iview_unselect_path(VALUE self, VALUE path)
{
    G_CHILD_UNSET(self, id_select_path);
    gtk_icon_view_unselect_path(_SELF(self), RVAL2GTKTREEPATH(path));
    return self;
}
Example #2
0
JNIEXPORT void JNICALL
Java_org_gnome_gtk_GtkIconView_gtk_1icon_1view_1unselect_1path
(
	JNIEnv* env,
	jclass cls,
	jlong _self,
	jlong _path
)
{
	GtkIconView* self;
	GtkTreePath* path;

	// convert parameter self
	self = (GtkIconView*) _self;

	// convert parameter path
	path = (GtkTreePath*) _path;

	// call function
	gtk_icon_view_unselect_path(self, path);

	// cleanup parameter self

	// cleanup parameter path
}
static void
attachment_icon_view_unselect_path (EAttachmentView *view,
                                    GtkTreePath *path)
{
	GtkIconView *icon_view;

	icon_view = GTK_ICON_VIEW (view);

	gtk_icon_view_unselect_path (icon_view, path);
}
Example #4
0
/**
 * gimp_page_selector_unselect_page:
 * @selector: Pointer to a #GimpPageSelector.
 * @page_no: The number of the page to unselect.
 *
 * Removes a page from the selection.
 *
 * Since: 2.4
 **/
void
gimp_page_selector_unselect_page (GimpPageSelector *selector,
                                  gint              page_no)
{
    GimpPageSelectorPrivate *priv;
    GtkTreeIter              iter;
    GtkTreePath             *path;

    g_return_if_fail (GIMP_IS_PAGE_SELECTOR (selector));

    priv = GIMP_PAGE_SELECTOR_GET_PRIVATE (selector);

    g_return_if_fail (page_no >= 0 && page_no < priv->n_pages);

    gtk_tree_model_iter_nth_child (GTK_TREE_MODEL (priv->store),
                                   &iter, NULL, page_no);
    path = gtk_tree_model_get_path (GTK_TREE_MODEL (priv->store), &iter);

    gtk_icon_view_unselect_path (GTK_ICON_VIEW (priv->view), path);

    gtk_tree_path_free (path);
}