summaryrefslogtreecommitdiff
path: root/gtk/gtklabel.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2000-04-26 22:53:01 +0000
committerHavoc Pennington <hp@src.gnome.org>2000-04-26 22:53:01 +0000
commitec60eb1baf8c1cf1f75c9cc00d5e19e28052c66e (patch)
tree7f6f4e4481e837f2043f87b2e831a88f2f1f6b10 /gtk/gtklabel.c
parent6b4e76ede61f7c04b81eb706df1130cb85b36462 (diff)
downloadgtk+-ec60eb1baf8c1cf1f75c9cc00d5e19e28052c66e.tar.gz
Add this function, replacing the broken gtk_label_get ()
2000-04-26 Havoc Pennington <hp@redhat.com> * gtk/gtklabel.c (gtk_label_get_text): Add this function, replacing the broken gtk_label_get ()
Diffstat (limited to 'gtk/gtklabel.c')
-rw-r--r--gtk/gtklabel.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 697f5e10b0..0f16212b04 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -337,6 +337,15 @@ gtk_label_get (GtkLabel *label,
*str = label->label;
}
+gchar *
+gtk_label_get_text (GtkLabel *label)
+{
+ g_return_val_if_fail (label != NULL, NULL);
+ g_return_val_if_fail (GTK_IS_LABEL (label), NULL);
+
+ return g_strdup (label->label);
+}
+
static void
gtk_label_finalize (GtkObject *object)
{