[vinagre] Added vinagre_plugin_get_icon_name()
- From: Jonh Wendell <jwendell src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vinagre] Added vinagre_plugin_get_icon_name()
- Date: Fri, 31 Jul 2009 23:24:38 +0000 (UTC)
commit 311336a75f7467d770a9664b1f80c14b0177f510
Author: Jonh Wendell <jwendell gnome org>
Date: Fri Jul 31 20:22:56 2009 -0300
Added vinagre_plugin_get_icon_name()
vinagre/vinagre-plugin.c | 13 +++++++++++++
vinagre/vinagre-plugin.h | 2 +-
2 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/vinagre/vinagre-plugin.c b/vinagre/vinagre-plugin.c
index fc62d06..eb23e30 100644
--- a/vinagre/vinagre-plugin.c
+++ b/vinagre/vinagre-plugin.c
@@ -571,4 +571,17 @@ vinagre_plugin_get_icon (VinagrePlugin *plugin, gint size)
NULL);
}
+const gchar *
+vinagre_plugin_get_icon_name (VinagrePlugin *plugin)
+{
+ VinagrePluginInfo *info;
+
+ g_return_val_if_fail (VINAGRE_IS_PLUGIN (plugin), NULL);
+
+ info = g_object_get_data (G_OBJECT (plugin), "info");
+ g_return_val_if_fail (info != NULL, NULL);
+
+ return vinagre_plugin_info_get_icon_name (info);
+}
+
/* vim: set ts=8: */
diff --git a/vinagre/vinagre-plugin.h b/vinagre/vinagre-plugin.h
index 49fa05f..def7300 100644
--- a/vinagre/vinagre-plugin.h
+++ b/vinagre/vinagre-plugin.h
@@ -145,7 +145,7 @@ GtkFileFilter *vinagre_plugin_get_file_filter (VinagrePlugin *plugin);
GdkPixbuf *vinagre_plugin_get_icon (VinagrePlugin *plugin,
gint size);
-
+const gchar *vinagre_plugin_get_icon_name (VinagrePlugin *plugin);
/**
* VINAGRE_PLUGIN_REGISTER_TYPE_WITH_CODE(PluginName, plugin_name, CODE):
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]