[geany/geany] 6792bf: Simplify some code a little
Colomban Wendling
git-noreply at xxxxx
Fri Jun 12 16:54:34 UTC 2015
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Fri, 12 Jun 2015 16:54:34 UTC
Commit: 6792bf0db761332742c133b93419d10a18fb9316
https://github.com/geany/geany/commit/6792bf0db761332742c133b93419d10a18fb9316
Log Message:
-----------
Simplify some code a little
Modified Paths:
--------------
src/symbols.c
Modified: src/symbols.c
8 lines changed, 1 insertions(+), 7 deletions(-)
===================================================================
@@ -568,20 +568,14 @@ tag_list_add_groups(GtkTreeStore *tree_store, ...)
gchar *title = va_arg(args, gchar*);
GdkPixbuf *icon = va_arg(args, gchar *);
- if (icon)
- g_object_ref(icon);
-
g_assert(title != NULL);
g_ptr_array_add(top_level_iter_names, title);
if (!find_toplevel_iter(tree_store, iter, title))
gtk_tree_store_append(tree_store, iter, NULL);
- if (G_IS_OBJECT(icon))
- {
+ if (icon)
gtk_tree_store_set(tree_store, iter, SYMBOLS_COLUMN_ICON, icon, -1);
- g_object_unref(icon);
- }
gtk_tree_store_set(tree_store, iter, SYMBOLS_COLUMN_NAME, title, -1);
}
va_end(args);
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list