[anjuta] project-wizard: set text and pixbuf column to display project icons
- From: Johannes Schmid <jhs src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [anjuta] project-wizard: set text and pixbuf column to display project icons
- Date: Sat, 26 Sep 2009 11:00:47 +0000 (UTC)
commit 71a97a9be05f96279e9df9b1201d8ab9512cc96d
Author: Johannes Schmid <jhs gnome org>
Date: Sat Sep 26 13:00:07 2009 +0200
project-wizard: set text and pixbuf column to display project icons
Seems some recent change in the UI file broke this. Aynway, seems more save to do this in code!
plugins/project-wizard/druid.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/project-wizard/druid.c b/plugins/project-wizard/druid.c
index c617caf..70be364 100644
--- a/plugins/project-wizard/druid.c
+++ b/plugins/project-wizard/druid.c
@@ -279,6 +279,7 @@ cb_druid_insert_project_icon (gpointer data, gpointer user_data)
DESC_COLUMN, _(npw_header_get_description (header)),
DATA_COLUMN, header,
-1);
+
g_object_unref (pixbuf);
}
@@ -311,6 +312,8 @@ cb_druid_insert_project_page (gpointer value, gpointer user_data)
/* Fill icon view */
view = GTK_ICON_VIEW (gtk_builder_get_object (builder, PROJECT_LIST));
+ gtk_icon_view_set_pixbuf_column (view, PIXBUF_COLUMN);
+ gtk_icon_view_set_markup_column (view, TEXT_COLUMN);
store = gtk_list_store_new (4, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_POINTER);
g_list_foreach (template_list, cb_druid_insert_project_icon, store);
gtk_icon_view_set_model (view, GTK_TREE_MODEL (store));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]