[Github-comments] [geany/geany-plugins] Workbench (#598)

LarsGit223 notifications at xxxxx
Sat Aug 19 09:06:03 UTC 2017


LarsGit223 commented on this pull request.



> +	icon = g_icon_new_for_string("workbench-bookmark", NULL);
+	for (index = 0 ; index < max ; index++)
+	{
+		gchar *file, *name;
+
+		file = wb_project_get_bookmark_at_index(project, index);
+		name = get_any_relative_path(wb_project_get_filename(project), file);
+		gtk_tree_store_insert_with_values(sidebar.file_store, &iter, parent, *position,
+			FILEVIEW_COLUMN_ICON, icon,
+			FILEVIEW_COLUMN_NAME, name,
+			FILEVIEW_COLUMN_DATA_ID, DATA_ID_PRJ_BOOKMARK,
+			FILEVIEW_COLUMN_ASSIGNED_DATA_POINTER, file,
+			-1);
+		(*position)++;
+	}
+	g_object_unref(icon);

Done.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/598#discussion_r134087184
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170819/f28751d5/attachment.html>


More information about the Github-comments mailing list