|
[vinagre] Use the new vinagre_plugin_get_icon() in bookmarks side bar.: msg#08219svn-commits-list
commit 46c694da7a470a1fb9ec070597d78e2fa813b2bb Author: Jonh Wendell <jwendell@xxxxxxxxx> Date: Fri Jul 31 20:12:37 2009 -0300 Use the new vinagre_plugin_get_icon() in bookmarks side bar. vinagre/vinagre-fav.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) --- diff --git a/vinagre/vinagre-fav.c b/vinagre/vinagre-fav.c index 1878c2f..cf65d30 100644 --- a/vinagre/vinagre-fav.c +++ b/vinagre/vinagre-fav.c @@ -29,6 +29,8 @@ #include "vinagre-bookmarks.h" #include "vinagre-window-private.h" #include "vinagre-bookmarks-entry.h" +#include "vinagre-plugin.h" +#include "vinagre-plugins-engine.h" #ifdef VINAGRE_ENABLE_AVAHI #include "vinagre-mdns.h" @@ -774,6 +776,8 @@ vinagre_fav_fill_bookmarks (GtkTreeStore *store, GSList *list, GtkTreeIter *pare VinagreBookmarksEntry *entry; GSList *l; GtkTreeIter iter; + VinagreConnection *conn; + VinagrePlugin *plugin; for (l = list; l; l = l->next) { @@ -804,8 +808,12 @@ vinagre_fav_fill_bookmarks (GtkTreeStore *store, GSList *list, GtkTreeIter *pare break; case VINAGRE_BOOKMARKS_ENTRY_NODE_CONN: - name = vinagre_connection_get_best_name (vinagre_bookmarks_entry_get_conn (entry)); - pixbuf = vinagre_connection_get_icon (vinagre_bookmarks_entry_get_conn (entry)); + conn = vinagre_bookmarks_entry_get_conn (entry); + name = vinagre_connection_get_best_name (conn); + plugin = vinagre_plugins_engine_get_plugin_by_protocol (vinagre_plugins_engine_get_default (), + vinagre_connection_get_protocol (conn)); + + pixbuf = vinagre_plugin_get_icon (plugin, 16); gtk_tree_store_append (store, &iter, parent_iter); gtk_tree_store_set (store, &iter, _______________________________________________ SVN-commits-list mailing list (read only) http://mail.gnome.org/mailman/listinfo/svn-commits-list Want to limit the commits to a few modules? Go to above URL, log in to edit your options and select the modules ('topics') you want.
|
|
||||||||||||||||||||||||||
|
|
|
| News | Mail Home | sitemap | FAQ | advertise |