From bbdf90ff4685eb630b2dfd80fd6a5866d469954d Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Tue, 9 Aug 2005 20:26:06 +0000 Subject: Make tab icon address setter public. 2005-08-09 Christian Persch * src/ephy-tab.c: (ephy_tab_set_property): * src/ephy-tab.h: * src/epiphany.defs: Make tab icon address setter public. --- src/ephy-tab.c | 8 ++++---- src/ephy-tab.h | 3 +++ src/epiphany.defs | 9 +++++++++ 3 files changed, 16 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/ephy-tab.c b/src/ephy-tab.c index 051a77f88..75956e946 100644 --- a/src/ephy-tab.c +++ b/src/ephy-tab.c @@ -145,8 +145,6 @@ typedef struct static GObjectClass *parent_class = NULL; /* internal functions, accessible only from this file */ -static void ephy_tab_set_icon_address (EphyTab *tab, - const char *location); static void ephy_tab_set_load_status (EphyTab *tab, gboolean status); static void ephy_tab_set_link_message (EphyTab *tab, @@ -226,10 +224,12 @@ ephy_tab_set_property (GObject *object, case PROP_POPUPS_ALLOWED: ephy_tab_set_popups_allowed (tab, g_value_get_boolean (value)); break; + case PROP_ICON_ADDRESS: + ephy_tab_set_icon_address (tab, g_value_get_string (value)); + break; case PROP_ADDRESS: case PROP_DOCUMENT_TYPE: case PROP_ICON: - case PROP_ICON_ADDRESS: case PROP_LOAD_PROGRESS: case PROP_LOAD_STATUS: case PROP_MESSAGE: @@ -1202,7 +1202,7 @@ ephy_tab_icon_cache_changed_cb (EphyFaviconCache *cache, } } -static void +void ephy_tab_set_icon_address (EphyTab *tab, const char *address) { diff --git a/src/ephy-tab.h b/src/ephy-tab.h index 479a3b04c..ac39899ce 100644 --- a/src/ephy-tab.h +++ b/src/ephy-tab.h @@ -74,6 +74,9 @@ GdkPixbuf *ephy_tab_get_icon (EphyTab *tab); const char *ephy_tab_get_icon_address (EphyTab *tab); +void ephy_tab_set_icon_address (EphyTab *tab, + const char *address); + gboolean ephy_tab_get_load_status (EphyTab *tab); const char *ephy_tab_get_link_message (EphyTab *tab); diff --git a/src/epiphany.defs b/src/epiphany.defs index 5925d1075..338e88b46 100644 --- a/src/epiphany.defs +++ b/src/epiphany.defs @@ -3061,6 +3061,15 @@ (return-type "const-char*") ) +(define-method set_icon_address + (of-object "EphyTab") + (c-name "ephy_tab_set_icon_address") + (return-type "none") + (parameters + '("const-char*" "address") + ) +) + (define-method get_load_status (of-object "EphyTab") (c-name "ephy_tab_get_load_status") -- cgit v1.2.3