summaryrefslogtreecommitdiff
path: root/gtk/gtkfontchooser.h
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2011-09-05 22:45:44 +0200
committerChristian Persch <chpe@gnome.org>2011-09-13 12:55:22 +0200
commit0b7db6888a5377e0635449fa79d88df1df22a7b4 (patch)
treebaf99d11eaeeba767cc6374a0409ac6d6167d7b7 /gtk/gtkfontchooser.h
parentcf1486861929e9ed46e5161ecab6f2eeeaecf457 (diff)
downloadgtk+-0b7db6888a5377e0635449fa79d88df1df22a7b4.tar.gz
Setters should not return a boolean
The setter for the "font" property returned a boolean that indicated whether the given font has been found. Instead, fall back to the default font name when the given font doesn't exist.
Diffstat (limited to 'gtk/gtkfontchooser.h')
-rw-r--r--gtk/gtkfontchooser.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkfontchooser.h b/gtk/gtkfontchooser.h
index 39c503ce48..8573f8ccf2 100644
--- a/gtk/gtkfontchooser.h
+++ b/gtk/gtkfontchooser.h
@@ -60,7 +60,7 @@ struct _GtkFontChooserIface
/* Methods */
gchar * (* get_font) (GtkFontChooser *chooser);
- gboolean (* set_font) (GtkFontChooser *chooser,
+ void (* set_font) (GtkFontChooser *chooser,
const gchar *fontname);
PangoFontFamily * (* get_font_family) (GtkFontChooser *chooser);
PangoFontFace * (* get_font_face) (GtkFontChooser *chooser);
@@ -85,7 +85,7 @@ PangoFontFace *gtk_font_chooser_get_face (GtkFontChooser *fo
gint gtk_font_chooser_get_size (GtkFontChooser *fontchooser);
gchar* gtk_font_chooser_get_font (GtkFontChooser *fontchooser);
-gboolean gtk_font_chooser_set_font (GtkFontChooser *fontchooser,
+void gtk_font_chooser_set_font (GtkFontChooser *fontchooser,
const gchar *font_name);
gchar* gtk_font_chooser_get_preview_text (GtkFontChooser *fontchooser);
void gtk_font_chooser_set_preview_text (GtkFontChooser *fontchooser,