diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-17 02:18:42 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-17 02:18:42 -0500 |
| commit | 7617fe6d425bfb6709b62219fd3b7d13564aaf1a (patch) | |
| tree | b63c1644a49768cc54ad7a91268971920fb0635a /gtkcalls_unix.go | |
| parent | a018dabde9224401b993cae5ef3017e0916d6c4d (diff) | |
Okay, fixed item showing; the GtkTableView column just needed the text attribute. Now I need scrollbars...
Diffstat (limited to 'gtkcalls_unix.go')
| -rw-r--r-- | gtkcalls_unix.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtkcalls_unix.go b/gtkcalls_unix.go index cb48c7d..c17f722 100644 --- a/gtkcalls_unix.go +++ b/gtkcalls_unix.go @@ -8,6 +8,9 @@ import ( "unsafe" ) +// TODOs: +// - document the magic stuff in the listbox code + // #cgo pkg-config: gtk+-3.0 // #include <stdlib.h> // #include <gtk/gtk.h> @@ -17,7 +20,7 @@ import ( // void gtkTreeModelGet(GtkTreeModel *model, GtkTreeIter *iter, gchar **gs) { gtk_tree_model_get(model, iter, 0, gs, -1); } // GtkListStore *gtkListStoreNew(void) { return gtk_list_store_new(1, G_TYPE_STRING); } // void gtkListStoreSet(GtkListStore *ls, GtkTreeIter *iter, char *gs) { gtk_list_store_set(ls, iter, 0, (gchar *) gs, -1); } -// GtkTreeViewColumn *gtkTreeViewColumnNewWithAttributes(GtkCellRenderer *renderer) { return gtk_tree_view_column_new_with_attributes("", renderer, NULL); } +// GtkTreeViewColumn *gtkTreeViewColumnNewWithAttributes(GtkCellRenderer *renderer) { return gtk_tree_view_column_new_with_attributes("", renderer, "text", 0, NULL); } import "C" // BIG TODO reduce the amount of explicit casting |
