[gtk+/gtk-3-22] font button: Some followup cleanups
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] font button: Some followup cleanups
- Date: Thu, 21 Dec 2017 16:42:55 +0000 (UTC)
commit 6fa63bd92cc4d75e9efab8a118dcbf75d32ca547
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Dec 21 11:32:24 2017 -0500
font button: Some followup cleanups
Don't refer to the font-name property in docs either, and
don't use deprecated API internally.
gtk/gtkfontbutton.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c
index 3cf5da3..55150c5 100644
--- a/gtk/gtkfontbutton.c
+++ b/gtk/gtkfontbutton.c
@@ -572,7 +572,7 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
*
* Note that this signal is only emitted when the user
* changes the font. If you need to react to programmatic font changes
- * as well, use the notify::font-name signal.
+ * as well, use the notify::font signal.
*
* Since: 2.4
*/
@@ -710,7 +710,7 @@ gtk_font_button_get_property (GObject *object,
break;
case GTK_FONT_CHOOSER_PROP_FONT:
case PROP_FONT_NAME:
- g_value_set_string (value, gtk_font_button_get_font_name (font_button));
+ g_value_set_string (value, font_button->priv->fontname);
break;
case PROP_USE_FONT:
g_value_set_boolean (value, gtk_font_button_get_use_font (font_button));
@@ -759,7 +759,7 @@ gtk_font_button_new (void)
GtkWidget *
gtk_font_button_new_with_font (const gchar *fontname)
{
- return g_object_new (GTK_TYPE_FONT_BUTTON, "font-name", fontname, NULL);
+ return g_object_new (GTK_TYPE_FONT_BUTTON, "font", fontname, NULL);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]