logo       

[vinagre] Dropped icon stuff from connection. It's more apropriated for plu: msg#08217

svn-commits-list

Subject: [vinagre] Dropped icon stuff from connection. It's more apropriated for plugins.

commit 6a07fa5fed640f585f5cf700208b40d15b188fee
Author: Jonh Wendell <jwendell@xxxxxxxxx>
Date: Fri Jul 31 19:43:55 2009 -0300

Dropped icon stuff from connection. It's more apropriated for plugins.

vinagre/vinagre-connection.c | 36 ------------------------------------
vinagre/vinagre-connection.h | 3 ---
2 files changed, 0 insertions(+), 39 deletions(-)
---
diff --git a/vinagre/vinagre-connection.c b/vinagre/vinagre-connection.c
index 818b9a5..020ac09 100644
--- a/vinagre/vinagre-connection.c
+++ b/vinagre/vinagre-connection.c
@@ -50,7 +50,6 @@ enum
PROP_PASSWORD,
PROP_NAME,
PROP_BEST_NAME,
- PROP_ICON,
PROP_FULLSCREEN
};

@@ -162,10 +161,6 @@ vinagre_connection_get_property (GObject *object, guint
prop_id, GValue *value,
g_value_set_string (value, conn->priv->password);
break;

- case PROP_ICON:
- g_value_set_object (value, vinagre_connection_get_icon (conn));
- break;
-
case PROP_FULLSCREEN:
g_value_set_boolean (value, conn->priv->fullscreen);
break;
@@ -338,16 +333,6 @@ vinagre_connection_class_init (VinagreConnectionClass
*klass)
G_PARAM_STATIC_BLURB));

g_object_class_install_property (object_class,
- PROP_ICON,
- g_param_spec_object ("icon",
- "icon",
- "icon of this
connection",
- GDK_TYPE_PIXBUF,
- G_PARAM_READABLE |
- G_PARAM_STATIC_NICK |
- G_PARAM_STATIC_NAME |
- G_PARAM_STATIC_BLURB));
- g_object_class_install_property (object_class,
PROP_FULLSCREEN,
g_param_spec_boolean ("fullscreen",
"Full screen
connection",
@@ -478,27 +463,6 @@ vinagre_connection_get_name (VinagreConnection *conn)
return conn->priv->name;
}

-GdkPixbuf *
-vinagre_connection_get_icon (VinagreConnection *conn)
-{
- GdkPixbuf *pixbuf;
- GtkIconTheme *icon_theme;
- gchar *icon_name;
-
- g_return_val_if_fail (VINAGRE_IS_CONNECTION (conn), NULL);
-
- icon_name = g_strdup_printf ("application-x-%s", conn->priv->protocol);
- icon_theme = gtk_icon_theme_get_default ();
- pixbuf = gtk_icon_theme_load_icon (icon_theme,
- icon_name,
- 16,
- 0,
- NULL);
-
- g_free (icon_name);
- return pixbuf;
-}
-
/**
* vinagre_connection_split_string:
* @uri: The URI to be splitted.
diff --git a/vinagre/vinagre-connection.h b/vinagre/vinagre-connection.h
index dd8c20e..0979eac 100644
--- a/vinagre/vinagre-connection.h
+++ b/vinagre/vinagre-connection.h
@@ -24,7 +24,6 @@

#include <glib.h>
#include <gtk/gtk.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
#include <libxml/xmlwriter.h>

G_BEGIN_DECLS
@@ -102,8 +101,6 @@ gboolean vinagre_connection_split_string (const
gchar *uri,
gchar* vinagre_connection_get_string_rep (VinagreConnection
*conn,
gboolean has_protocol);

-GdkPixbuf* vinagre_connection_get_icon
(VinagreConnection *conn);
-
/* Methods that can be overrided */

/* vinagre_connection_fill_writer(): Used to fill a xml writer when saving
bookmarks.
_______________________________________________
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.

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise