diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-06-23 01:28:35 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-06-23 01:28:51 +0200 |
commit | cb21d4473ecd8c221f551faac7e7841e5fd80aca (patch) | |
tree | a3987eb448f199664e31d548155e98aeabae5365 | |
parent | 626240b0fe93f3550d1b99810dfc591faa238ab2 (diff) | |
download | gtk+-cb21d4473ecd8c221f551faac7e7841e5fd80aca.tar.gz |
[gtk] Add gtk_font_selection_dialog_get_font_selection()
This is needed to access the fontsel sealed member.
-rw-r--r-- | gtk/gtk.symbols | 1 | ||||
-rw-r--r-- | gtk/gtkfontsel.c | 19 | ||||
-rw-r--r-- | gtk/gtkfontsel.h | 1 |
3 files changed, 21 insertions, 0 deletions
diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols index 92df5684b6..becdd71b6e 100644 --- a/gtk/gtk.symbols +++ b/gtk/gtk.symbols @@ -1416,6 +1416,7 @@ gtk_font_button_set_use_size #if IN_FILE(__GTK_FONTSEL_C__) gtk_font_selection_dialog_get_cancel_button gtk_font_selection_dialog_get_font_name +gtk_font_selection_dialog_get_font_selection gtk_font_selection_dialog_get_ok_button gtk_font_selection_dialog_get_preview_text gtk_font_selection_dialog_get_type G_GNUC_CONST diff --git a/gtk/gtkfontsel.c b/gtk/gtkfontsel.c index e22a87f96b..cf4108c9e7 100644 --- a/gtk/gtkfontsel.c +++ b/gtk/gtkfontsel.c @@ -1657,6 +1657,25 @@ gtk_font_selection_dialog_new (const gchar *title) } /** + * gtk_font_selection_dialog_get_font_selection: + * @colorsel: a #GtkFontSelectionDialog + * + * Retrieves the #GtkFontSelection widget embedded in the dialog. + * + * Returns: the embedded #GtkFontSelection + * + * Since: 2.22 + **/ +GtkWidget* +gtk_font_selection_dialog_get_font_selection (GtkFontSelectionDialog *fsd) +{ + g_return_val_if_fail (GTK_IS_FONT_SELECTION_DIALOG (fsd), NULL); + + return fsd->fontsel; +} + + +/** * gtk_font_selection_dialog_get_ok_button: * @fsd: a #GtkFontSelectionDialog * diff --git a/gtk/gtkfontsel.h b/gtk/gtkfontsel.h index 5b1b2ceb63..3a37f65932 100644 --- a/gtk/gtkfontsel.h +++ b/gtk/gtkfontsel.h @@ -173,6 +173,7 @@ GtkWidget *gtk_font_selection_dialog_new (const gchar *title); GtkWidget *gtk_font_selection_dialog_get_ok_button (GtkFontSelectionDialog *fsd); GtkWidget *gtk_font_selection_dialog_get_cancel_button (GtkFontSelectionDialog *fsd); +GtkWidget *gtk_font_selection_dialog_get_font_selection (GtkFontSelectionDialog *fsd); /* This returns the X Logical Font Description fontname, or NULL if no font is selected. Note that there is a slight possibility that the font might not |