Gnome User Interface Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
#include <gnome.h> struct GnomeFontSelector; struct FontInfo; GtkWidget* gnome_font_selector_new (void); gchar* gnome_font_selector_get_selected (GnomeFontSelector *text_tool); gchar* gnome_font_select (void); gchar* gnome_font_select_with_default (const gchar*); |
GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkWindow +----GtkDialog +----GnomeFontSelector |
GtkWidget* gnome_font_selector_new (void); |
Returns : | a newly created font selector widget |
gchar* gnome_font_selector_get_selected (GnomeFontSelector *text_tool); |
text_tool : | a font selector |
Returns : | the name of the font currently selected. The value returned is allocated with g_malloc. The font name is in the format expected by Gdk. |
gchar* gnome_font_select (void); |
Pops up a font selector and lets the user choose the font.
Returns : | A g_malloc()ed string with the X font name that was selected |