mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
[gtk] Add gtk_font_selection_dialog_get_font_selection()
This is needed to access the fontsel sealed member.
This commit is contained in:
parent
626240b0fe
commit
cb21d4473e
@ -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
|
||||
|
@ -1656,6 +1656,25 @@ gtk_font_selection_dialog_new (const gchar *title)
|
||||
return GTK_WIDGET (fontseldiag);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user