[gtk+/gtk-2-22] [gtk] Add gtk_font_selection_dialog_get_font_selection()
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-22] [gtk] Add gtk_font_selection_dialog_get_font_selection()
- Date: Wed, 23 Jun 2010 00:06:15 +0000 (UTC)
commit c0c4ab09465e31315a90e9a3a4f50edd0578ffd4
Author: Javier Jardón <jjardon gnome org>
Date: Wed Jun 23 01:38:36 2010 +0200
[gtk] Add gtk_font_selection_dialog_get_font_selection()
This is needed to access the fontsel sealed member.
gtk/gtk.symbols | 1 +
gtk/gtkfontsel.c | 18 ++++++++++++++++++
gtk/gtkfontsel.h | 1 +
3 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols
index 7a450f0..30241ff 100644
--- a/gtk/gtk.symbols
+++ b/gtk/gtk.symbols
@@ -1749,6 +1749,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 3eb3d45..eeeb4ac 100644
--- a/gtk/gtkfontsel.c
+++ b/gtk/gtkfontsel.c
@@ -1675,6 +1675,24 @@ 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 6cf9735..18453b9 100644
--- a/gtk/gtkfontsel.h
+++ b/gtk/gtkfontsel.h
@@ -180,6 +180,7 @@ GtkWidget *gtk_font_selection_dialog_get_ok_button (GtkFontSelectionDialog *
GtkWidget *gtk_font_selection_dialog_get_apply_button (GtkFontSelectionDialog *fsd);
#endif
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]