]> Pileus Git - ~andy/gtk/commitdiff
[gtk] Add gtk_font_selection_dialog_get_font_selection()
authorJavier Jardón <jjardon@gnome.org>
Tue, 22 Jun 2010 23:28:35 +0000 (01:28 +0200)
committerJavier Jardón <jjardon@gnome.org>
Tue, 22 Jun 2010 23:28:51 +0000 (01:28 +0200)
This is needed to access the fontsel sealed member.

gtk/gtk.symbols
gtk/gtkfontsel.c
gtk/gtkfontsel.h

index 92df5684b67eeb74f00de9c4e42ba591c3653024..becdd71b6ec075a25c2bb046766e56eb3990c23a 100644 (file)
@@ -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
index e22a87f96ba70cb4a89ca9d8b1abe5f84242d8d8..cf4108c9e7508af0b9f043ce329b7955a2771c3a 100644 (file)
@@ -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
index 5b1b2ceb6306b09864111f86f93bca457d4b1ecf..3a37f65932dc88e01a67de051f58a02346762423 100644 (file)
@@ -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