summaryrefslogtreecommitdiff
path: root/gtk/gtkfontchooserwidgetprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-01-02 22:52:05 -0500
committerMatthias Clasen <mclasen@redhat.com>2018-01-03 12:18:18 -0500
commit15f8b2d0ae9df43df6f2ad0b0e0bad8e391caf22 (patch)
tree289eb9f9ebfd6b33b6848d5659097f4ed6f3d07e /gtk/gtkfontchooserwidgetprivate.h
parent70bae02612e290741ffc6f579c872052ad525e34 (diff)
downloadgtk+-15f8b2d0ae9df43df6f2ad0b0e0bad8e391caf22.tar.gz
font chooser: Add a tweak page
Add a button the dialog's header bar that lets us switch to a second page where we can customize the selected font. Make the font chooser widget export an action that the dialog can use for the button. This has some advantages: - we can export not just the toggle state, but also enabled - we can reuse the same enabled state to make the select button insensitive when no font is selected To determine whether a font is selected, listen to changes of the list selection. And ensure that the font chooser is in an initial state when mapped, even if we close the dialog from the tweak page.
Diffstat (limited to 'gtk/gtkfontchooserwidgetprivate.h')
-rw-r--r--gtk/gtkfontchooserwidgetprivate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkfontchooserwidgetprivate.h b/gtk/gtkfontchooserwidgetprivate.h
index f51447e0f1..5abdc5e47b 100644
--- a/gtk/gtkfontchooserwidgetprivate.h
+++ b/gtk/gtkfontchooserwidgetprivate.h
@@ -25,6 +25,8 @@ G_BEGIN_DECLS
gboolean gtk_font_chooser_widget_handle_event (GtkWidget *widget,
GdkEventKey *event);
+GAction *gtk_font_chooser_widget_get_tweak_action (GtkWidget *fontchooser);
+
G_END_DECLS
#endif /* __GTK_FONT_CHOOSER_WIDGET_PRIVATE_H__ */