[vinagre] Added the 'tooltip' property to VinagreTab



commit 369c3a406eb5ffcf9fe6d15ea96749b93ed65785
Author: Jonh Wendell <jwendell gnome org>
Date:   Sat Aug 1 10:28:32 2009 -0300

    Added the 'tooltip' property to VinagreTab

 vinagre/vinagre-tab.c |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/vinagre/vinagre-tab.c b/vinagre/vinagre-tab.c
index f87941a..d616987 100644
--- a/vinagre/vinagre-tab.c
+++ b/vinagre/vinagre-tab.c
@@ -67,7 +67,8 @@ enum
 {
   PROP_0,
   PROP_CONN,
-  PROP_WINDOW
+  PROP_WINDOW,
+  PROP_TOOLTIP
 };
 
 static guint signals[LAST_SIGNAL] = { 0 };
@@ -136,6 +137,8 @@ vinagre_tab_get_property (GObject    *object,
       case PROP_WINDOW:
         g_value_set_object (value, tab->priv->window);
 	break;
+      case PROP_TOOLTIP:
+	g_value_take_string (value, vinagre_tab_get_tooltip (tab));
       default:
 	G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
 	break;			
@@ -257,6 +260,17 @@ vinagre_tab_class_init (VinagreTabClass *klass)
 							G_PARAM_STATIC_NICK |
 							G_PARAM_STATIC_BLURB));
 
+  g_object_class_install_property (object_class,
+				   PROP_TOOLTIP,
+				   g_param_spec_string ("tooltip",
+							"Tooltip",
+							"The tooltip of this tab",
+							NULL,
+							G_PARAM_READABLE |
+							G_PARAM_STATIC_NAME |
+							G_PARAM_STATIC_NICK |
+							G_PARAM_STATIC_BLURB));
+
   signals[TAB_CONNECTED] =
 		g_signal_new ("tab-connected",
 			      G_OBJECT_CLASS_TYPE (object_class),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]