summaryrefslogtreecommitdiff
path: root/gtk/gtkfontchooser.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2011-09-05 22:55:05 +0200
committerChristian Persch <chpe@gnome.org>2011-09-13 12:55:22 +0200
commit1b818f2e461dd85a7feed925334ad7b37498392c (patch)
treee477e016af226a86c70a31decc8a2910e4a803a7 /gtk/gtkfontchooser.c
parent0b7db6888a5377e0635449fa79d88df1df22a7b4 (diff)
downloadgtk+-1b818f2e461dd85a7feed925334ad7b37498392c.tar.gz
Remove GtkFontChooser:[sg]et_font
Now that the setter doesn't return a value anymore, we can just use g_object_[sg]et instead of having these vfuncs.
Diffstat (limited to 'gtk/gtkfontchooser.c')
-rw-r--r--gtk/gtkfontchooser.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gtk/gtkfontchooser.c b/gtk/gtkfontchooser.c
index c83174f4ca..dc7d2ec6ee 100644
--- a/gtk/gtkfontchooser.c
+++ b/gtk/gtkfontchooser.c
@@ -186,9 +186,14 @@ gtk_font_chooser_get_size (GtkFontChooser *fontchooser)
gchar *
gtk_font_chooser_get_font (GtkFontChooser *fontchooser)
{
+ gchar *fontname;
+
g_return_val_if_fail (GTK_IS_FONT_CHOOSER (fontchooser), NULL);
- return GTK_FONT_CHOOSER_GET_IFACE (fontchooser)->get_font (fontchooser);
+ g_object_get (fontchooser, "font", &fontname, NULL);
+
+
+ return fontname;
}
/**
@@ -207,8 +212,7 @@ gtk_font_chooser_set_font (GtkFontChooser *fontchooser,
g_return_if_fail (GTK_IS_FONT_CHOOSER (fontchooser));
g_return_if_fail (fontname != NULL);
- GTK_FONT_CHOOSER_GET_IFACE (fontchooser)->set_font (fontchooser,
- fontname);
+ g_object_set (fontchooser, "font", fontname, NULL);
}
/**