Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vraious TreeBrowser fixes #46

Merged
merged 4 commits into from
Jun 21, 2012
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
treebrowser: Don't user deprecated functions
b4n committed Jun 20, 2012
commit 8877f91f511f5e8fae5fd669cb97b6618be13e2f
5 changes: 4 additions & 1 deletion treebrowser/src/treebrowser.c
Original file line number Diff line number Diff line change
@@ -640,13 +640,16 @@ treebrowser_load_bookmarks(void)
{
if (g_file_test(path_full, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR))
{
gchar *file_name = g_path_get_basename(path_full);

gtk_tree_store_append(treestore, &iter, &bookmarks_iter);
icon = CONFIG_SHOW_ICONS ? utils_pixbuf_from_stock(GTK_STOCK_DIRECTORY) : NULL;
gtk_tree_store_set(treestore, &iter,
TREEBROWSER_COLUMN_ICON, icon,
TREEBROWSER_COLUMN_NAME, g_basename(path_full),
TREEBROWSER_COLUMN_NAME, file_name,
TREEBROWSER_COLUMN_URI, path_full,
-1);
g_free(file_name);
if (icon)
g_object_unref(icon);
gtk_tree_store_append(treestore, &iter, &iter);