summaryrefslogtreecommitdiff
path: root/gtk/gtkfontchooser.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-06-12 23:55:30 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-06-13 00:00:51 -0400
commit6f955a7df67222b6ee4b2502eb5e1428f9c91d20 (patch)
treec7ede1be96862e105dde7a169f1b0e03c00a0cd0 /gtk/gtkfontchooser.h
parent8c6130e68a6e62980251cb19a0fbcd50505700f1 (diff)
downloadgtk+-6f955a7df67222b6ee4b2502eb5e1428f9c91d20.tar.gz
Redo font map support in GtkFontChooser
We can't add properties to the interface, since it breaks 3rd party implementations of the GtkFontChooser interface. These exist, for example in gnumeric. So, instead of a new property, add getter/setter vfuncs.
Diffstat (limited to 'gtk/gtkfontchooser.h')
-rw-r--r--gtk/gtkfontchooser.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/gtkfontchooser.h b/gtk/gtkfontchooser.h
index 84693c1fe4..98e3baf7e2 100644
--- a/gtk/gtkfontchooser.h
+++ b/gtk/gtkfontchooser.h
@@ -70,8 +70,13 @@ struct _GtkFontChooserIface
void (* font_activated) (GtkFontChooser *chooser,
const gchar *fontname);
+ /* More methods */
+ void (* set_font_map) (GtkFontChooser *fontchooser,
+ PangoFontMap *map);
+ PangoFontMap * (* get_font_map) (GtkFontChooser *fontchooser);
+
/* Padding */
- gpointer padding[12];
+ gpointer padding[10];
};
GDK_AVAILABLE_IN_3_2