Lines 106-111
Link Here
|
106 |
static gint |
106 |
static gint |
107 |
location_of_iter (GtkTreeIter *iter, GtkListStore *model) |
107 |
location_of_iter (GtkTreeIter *iter, GtkListStore *model) |
108 |
{ |
108 |
{ |
|
|
109 |
gint loc; |
109 |
/* Note: in gtk 2.2 we could just do: */ |
110 |
/* Note: in gtk 2.2 we could just do: */ |
110 |
/* gchar* path = gtk_tree_model_get_string_from_iter */ |
111 |
/* gchar* path = gtk_tree_model_get_string_from_iter */ |
111 |
/* (GTK_TREE_MODEL (model), iter); */ |
112 |
/* (GTK_TREE_MODEL (model), iter); */ |
Lines 117-123
Link Here
|
117 |
gtk_tree_path_free (treepath); |
118 |
gtk_tree_path_free (treepath); |
118 |
/* end of gtk 2.0 code */ |
119 |
/* end of gtk 2.0 code */ |
119 |
|
120 |
|
120 |
gint loc = atoi(path); |
121 |
loc = atoi(path); |
121 |
|
122 |
|
122 |
g_free (path); |
123 |
g_free (path); |
123 |
|
124 |
|