aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-07-30 04:24:23 +0800
committerChristian Persch <chpe@src.gnome.org>2005-07-30 04:24:23 +0800
commite2cbc7c8a624845a93289945243348762c1b2893 (patch)
treea635a3354ef195c9ff19fa61a93541a243d3af8d
parent0a2e055b95b09abf340f5a011ec01af55b401b13 (diff)
downloadgsoc2013-epiphany-e2cbc7c8a624845a93289945243348762c1b2893.tar
gsoc2013-epiphany-e2cbc7c8a624845a93289945243348762c1b2893.tar.gz
gsoc2013-epiphany-e2cbc7c8a624845a93289945243348762c1b2893.tar.bz2
gsoc2013-epiphany-e2cbc7c8a624845a93289945243348762c1b2893.tar.lz
gsoc2013-epiphany-e2cbc7c8a624845a93289945243348762c1b2893.tar.xz
gsoc2013-epiphany-e2cbc7c8a624845a93289945243348762c1b2893.tar.zst
gsoc2013-epiphany-e2cbc7c8a624845a93289945243348762c1b2893.zip
Add accessor functions for those instead of relying on using the struct
2005-07-29 Christian Persch <chpe@cvs.gnome.org> * src/ephy-statusbar.c: (ephy_statusbar_get_tooltips), (ephy_statusbar_get_security_frame): * src/ephy-statusbar.h: Add accessor functions for those instead of relying on using the struct members directly.
-rw-r--r--ChangeLog9
-rwxr-xr-xsrc/ephy-statusbar.c29
-rw-r--r--src/ephy-statusbar.h4
3 files changed, 42 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a106ca5b1..767fe8ff0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2005-07-29 Christian Persch <chpe@cvs.gnome.org>
+ * src/ephy-statusbar.c: (ephy_statusbar_get_tooltips),
+ (ephy_statusbar_get_security_frame):
+ * src/ephy-statusbar.h:
+
+ Add accessor functions for those instead of relying
+ on using the struct members directly.
+
+2005-07-29 Christian Persch <chpe@cvs.gnome.org>
+
* data/epiphany.schemas.in:
Remove long description where it differed from the short
diff --git a/src/ephy-statusbar.c b/src/ephy-statusbar.c
index 85ea0581e..a01b81920 100755
--- a/src/ephy-statusbar.c
+++ b/src/ephy-statusbar.c
@@ -345,3 +345,32 @@ ephy_statusbar_remove_widget (EphyStatusbar *statusbar,
gtk_container_remove (GTK_CONTAINER (statusbar->priv->icon_container),
widget);
}
+
+
+/**
+ * ephy_statusbar_get_tooltips:
+ * @statusbar: an #EphyStatusbar
+ *
+ * Return value: the statusbar's #GtkTooltips object
+ */
+GtkTooltips *
+ephy_statusbar_get_tooltips (EphyStatusbar *statusbar)
+{
+ g_return_val_if_fail (EPHY_IS_STATUSBAR (statusbar), NULL);
+
+ return statusbar->tooltips;
+}
+
+/**
+ * ephy_statusbar_get_security_frame:
+ * @statusbar: an #EphyStatusbar
+ *
+ * Return value: the statusbar's lock icon frame
+ */
+GtkWidget *
+ephy_statusbar_get_security_frame (EphyStatusbar *statusbar)
+{
+ g_return_val_if_fail (EPHY_IS_STATUSBAR (statusbar), NULL);
+
+ return statusbar->security_frame;
+}
diff --git a/src/ephy-statusbar.h b/src/ephy-statusbar.h
index 209d8ceb7..92ceb3b5f 100644
--- a/src/ephy-statusbar.h
+++ b/src/ephy-statusbar.h
@@ -61,6 +61,10 @@ GType ephy_statusbar_get_type (void);
GtkWidget *ephy_statusbar_new (void);
+GtkTooltips *ephy_statusbar_get_tooltips (EphyStatusbar *statusbar);
+
+GtkWidget *ephy_statusbar_get_security_frame (EphyStatusbar *statusbar);
+
void ephy_statusbar_set_security_state (EphyStatusbar *statusbar,
const char *stock_id,
const char *tooltip);