29
29
* gimp_fonts_popup:
30
30
* @font_callback: The callback PDB proc to call when font selection is made.
31
* @popup_title: Title to give the font popup window.
31
* @popup_title: Title of the font selection dialog.
32
32
* @initial_font: The name of the font to set as the first selected.
34
34
* Invokes the Gimp font selection.
36
* This procedure popups the font selection dialog.
36
* This procedure opens the font selection dialog.
38
38
* Returns: TRUE on success.
41
41
gimp_fonts_popup (const gchar *font_callback,
42
const gchar *popup_title,
43
const gchar *initial_font)
42
const gchar *popup_title,
43
const gchar *initial_font)
45
45
GimpParam *return_vals;
47
47
gboolean success = TRUE;
49
return_vals = gimp_run_procedure ("gimp_fonts_popup",
51
GIMP_PDB_STRING, font_callback,
52
GIMP_PDB_STRING, popup_title,
53
GIMP_PDB_STRING, initial_font,
49
return_vals = gimp_run_procedure ("gimp-fonts-popup",
51
GIMP_PDB_STRING, font_callback,
52
GIMP_PDB_STRING, popup_title,
53
GIMP_PDB_STRING, initial_font,
56
56
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
64
64
* gimp_fonts_close_popup:
65
* @font_callback: The name of the callback registered for this popup.
65
* @font_callback: The name of the callback registered for this pop-up.
67
* Popdown the Gimp font selection.
67
* Close the font selection dialog.
69
69
* This procedure closes an opened font selection dialog.
78
78
gboolean success = TRUE;
80
return_vals = gimp_run_procedure ("gimp_fonts_close_popup",
82
GIMP_PDB_STRING, font_callback,
80
return_vals = gimp_run_procedure ("gimp-fonts-close-popup",
82
GIMP_PDB_STRING, font_callback,
85
85
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
93
93
* gimp_fonts_set_popup:
94
* @font_callback: The name of the callback registered for this popup.
94
* @font_callback: The name of the callback registered for this pop-up.
95
95
* @font_name: The name of the font to set as selected.
97
* Sets the current font selection in a popup.
97
* Sets the current font in a font selection dialog.
99
* Sets the current font selection in a popup.
99
* Sets the current font in a font selection dialog.
101
101
* Returns: TRUE on success.
104
104
gimp_fonts_set_popup (const gchar *font_callback,
105
const gchar *font_name)
105
const gchar *font_name)
107
107
GimpParam *return_vals;
108
108
gint nreturn_vals;
109
109
gboolean success = TRUE;
111
return_vals = gimp_run_procedure ("gimp_fonts_set_popup",
113
GIMP_PDB_STRING, font_callback,
114
GIMP_PDB_STRING, font_name,
111
return_vals = gimp_run_procedure ("gimp-fonts-set-popup",
113
GIMP_PDB_STRING, font_callback,
114
GIMP_PDB_STRING, font_name,
117
117
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;