Dialog for entering single line text. More...
Data Structures | |
struct | _GaminggearTextDialog |
Macros | |
#define | GAMINGGEAR_TEXT_DIALOG_TYPE (gaminggear_text_dialog_get_type()) |
#define | GAMINGGEAR_TEXT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GAMINGGEAR_TEXT_DIALOG_TYPE, GaminggearTextDialog)) |
#define | IS_GAMINGGEAR_TEXT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GAMINGGEAR_TEXT_DIALOG_TYPE)) |
Typedefs | |
typedef struct _GaminggearTextDialog | GaminggearTextDialog |
typedef struct _GaminggearTextDialogPrivate | GaminggearTextDialogPrivate |
Functions | |
GType | gaminggear_text_dialog_get_type (void) |
gchar * | gaminggear_text_dialog (GtkWindow *parent, gchar const *title, gchar const *caption, gchar const *text) |
Get user text. More... | |
gchar * | gaminggear_text_dialog_run (GaminggearTextDialog *text_dialog) |
Run a text dialog. More... | |
GtkWidget * | gaminggear_text_dialog_new (GtkWindow *parent, gchar const *title, gchar const *caption) |
Creates new text dialog. More... | |
gchar * | gaminggear_text_dialog_get_text (GaminggearTextDialog *text_dialog) |
Gets user entered text. More... | |
void | gaminggear_text_dialog_set_text (GaminggearTextDialog *text_dialog, gchar const *text) |
Set text of text dialog. More... | |
void | gaminggear_text_dialog_set_title (GaminggearTextDialog *text_dialog, gchar const *title) |
Set title of text dialog. More... | |
void | gaminggear_text_dialog_set_caption (GaminggearTextDialog *text_dialog, gchar const *caption) |
Set caption of text dialog. More... | |
Dialog for entering single line text.
Pressing enter in text field behaves like pressing OK button.
#define GAMINGGEAR_TEXT_DIALOG | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_CAST((obj), GAMINGGEAR_TEXT_DIALOG_TYPE, GaminggearTextDialog)) |
#define GAMINGGEAR_TEXT_DIALOG_TYPE (gaminggear_text_dialog_get_type()) |
#define IS_GAMINGGEAR_TEXT_DIALOG | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_TYPE((obj), GAMINGGEAR_TEXT_DIALOG_TYPE)) |
typedef struct _GaminggearTextDialog GaminggearTextDialog |
typedef struct _GaminggearTextDialogPrivate GaminggearTextDialogPrivate |
gchar* gaminggear_text_dialog | ( | GtkWindow * | parent, |
gchar const * | title, | ||
gchar const * | caption, | ||
gchar const * | text | ||
) |
Get user text.
Convenience function that creates, runs and destroys a text dialog.
parent | Parent window or NULL . |
title | Title of dialog. |
caption | Caption of dialog. |
text | Text shown in entry field or NULL for empty field. |
text | User entered text that has to be freed with g_free() or NULL . |
gchar* gaminggear_text_dialog_get_text | ( | GaminggearTextDialog * | text_dialog | ) |
Gets user entered text.
text_dialog | A text dialog. |
text | User entered text that has to be freed with g_free() or NULL . |
GType gaminggear_text_dialog_get_type | ( | void | ) |
GtkWidget* gaminggear_text_dialog_new | ( | GtkWindow * | parent, |
gchar const * | title, | ||
gchar const * | caption | ||
) |
Creates new text dialog.
parent | Parent window or NULL . |
title | Title of dialog. |
caption | Caption of dialog. |
widget | The text dialog. |
gchar* gaminggear_text_dialog_run | ( | GaminggearTextDialog * | text_dialog | ) |
Run a text dialog.
text_dialog | A text dialog. |
text | User entered text that has to be freed with g_free() or NULL . |
void gaminggear_text_dialog_set_caption | ( | GaminggearTextDialog * | text_dialog, |
gchar const * | caption | ||
) |
Set caption of text dialog.
text_dialog | A text dialog. |
caption | The new caption text. |
void gaminggear_text_dialog_set_text | ( | GaminggearTextDialog * | text_dialog, |
gchar const * | text | ||
) |
Set text of text dialog.
Presets the text shown in the entry field.
text_dialog | A text dialog. |
text | The new text shown in entry field. |
void gaminggear_text_dialog_set_title | ( | GaminggearTextDialog * | text_dialog, |
gchar const * | title | ||
) |
Set title of text dialog.
text_dialog | A text dialog. |
title | The new title text. |