#include <gtk/gtk.h>
#include <gdk/gdk.h>

Go to the source code of this file.
Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.
<File description>="">
Definition in file gtkSettingItemTextEntry.h.
| #define GTK_SETTINGITEM_TEXTENTRY | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_SETTINGITEM_TEXTENTRY_TYPE, GtkSettingItemTextEntry)) |
Definition at line 57 of file gtkSettingItemTextEntry.h.
| #define GTK_SETTINGITEM_TEXTENTRY_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_SETTINGITEM_TEXTENTRY_TYPE, GtkSettingItemTextEntryClass)) |
Definition at line 58 of file gtkSettingItemTextEntry.h.
| #define GTK_SETTINGITEM_TEXTENTRY_TYPE (gtk_settingitem_textentry_get_type()) |
Definition at line 56 of file gtkSettingItemTextEntry.h.
| #define IS_GTK_SETTINGITEM_TEXTENTRY | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_SETTINGITEM_TEXTENTRY_TYPE)) |
Definition at line 59 of file gtkSettingItemTextEntry.h.
| #define IS_GTK_SETTINGITEM_TEXTENTRY_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_SETTINGITEM_TEXTENTRY_TYPE)) |
Definition at line 60 of file gtkSettingItemTextEntry.h.
| #define SETTINGITEMTEXT_BORDER_BOTTOM 0 |
Definition at line 35 of file gtkSettingItemTextEntry.h.
| #define SETTINGITEMTEXT_BORDER_LEFT 13 |
Definition at line 36 of file gtkSettingItemTextEntry.h.
| #define SETTINGITEMTEXT_BORDER_RIGHT 13 |
Definition at line 37 of file gtkSettingItemTextEntry.h.
| #define SETTINGITEMTEXT_BORDER_TOP 0 |
Definition at line 34 of file gtkSettingItemTextEntry.h.
| #define SETTINGITEMTEXT_ENTRY_HEIGHT 30 |
Definition at line 46 of file gtkSettingItemTextEntry.h.
| #define SETTINGITEMTEXT_ENTRY_WIDTH 400 |
Definition at line 47 of file gtkSettingItemTextEntry.h.
| #define SETTINGITEMTEXT_HBOX_SPACING 15 |
Definition at line 39 of file gtkSettingItemTextEntry.h.
| #define SETTINGITEMTEXT_LABEL_HEIGHT 50 |
Definition at line 44 of file gtkSettingItemTextEntry.h.
| #define SETTINGITEMTEXT_REQ_HEIGHT 115 |
Definition at line 42 of file gtkSettingItemTextEntry.h.
| #define SETTINGITEMTEXT_REQ_WIDTH 640 |
Definition at line 41 of file gtkSettingItemTextEntry.h.
| typedef struct _GtkSettingItemTextEntry GtkSettingItemTextEntry |
Definition at line 62 of file gtkSettingItemTextEntry.h.
| typedef struct _GtkSettingItemTextEntryClass GtkSettingItemTextEntryClass |
Definition at line 63 of file gtkSettingItemTextEntry.h.
| typedef void on_textentry_button_press_t(GtkWidget *item) |
Definition at line 66 of file gtkSettingItemTextEntry.h.
| typedef void on_textentry_changed_t(GtkWidget *item, const gchar *text) |
Definition at line 65 of file gtkSettingItemTextEntry.h.
| typedef void on_textentry_validate_t(GtkWidget *item, const gchar *text, gchar **new_text) |
Definition at line 67 of file gtkSettingItemTextEntry.h.
| void gtk_settingitem_textentry_callback_on_button_press | ( | GtkSettingItemTextEntry * | item, | |
| on_textentry_button_press_t * | callback | |||
| ) |
Definition at line 234 of file gtkSettingItemTextEntry.c.
00235 { 00236 item->callback_on_button_press = callback; 00237 }
| void gtk_settingitem_textentry_callback_on_changed | ( | GtkSettingItemTextEntry * | item, | |
| on_textentry_changed_t * | callback | |||
| ) |
Definition at line 229 of file gtkSettingItemTextEntry.c.
00230 { 00231 item->callback_on_changed = callback; 00232 }
| void gtk_settingitem_textentry_callback_on_validate | ( | GtkSettingItemTextEntry * | item, | |
| on_textentry_validate_t * | callback | |||
| ) |
Definition at line 239 of file gtkSettingItemTextEntry.c.
00240 { 00241 item->callback_on_validate = callback; 00242 }
| GType gtk_settingitem_textentry_get_type | ( | void | ) |
Definition at line 75 of file gtkSettingItemTextEntry.c.
00076 { 00077 static GType settingitem_textentry_type = 0; 00078 00079 if (!settingitem_textentry_type) 00080 { 00081 static const GTypeInfo settingitem_textentry_info = { 00082 sizeof(GtkSettingItemTextEntryClass), 00083 NULL, /* base_init */ 00084 NULL, /* base_finalize */ 00085 (GClassInitFunc) gtk_settingitem_textentry_class_init, 00086 NULL, /* class_finalize */ 00087 NULL, /* class_data */ 00088 sizeof(GtkSettingItemTextEntry), 00089 0, /* n_preallocs */ 00090 (GInstanceInitFunc) gtk_settingitem_textentry_init, 00091 }; 00092 00093 settingitem_textentry_type = g_type_register_static(GTK_TYPE_EVENT_BOX, "SettingItemTextEntry", &settingitem_textentry_info, 0); 00094 } 00095 return settingitem_textentry_type; 00096 }

| const gchar* gtk_settingitem_textentry_gettext | ( | GtkSettingItemTextEntry * | item | ) |
Definition at line 214 of file gtkSettingItemTextEntry.c.
00215 { 00216 return gtk_entry_get_text(GTK_ENTRY(item->entry)); 00217 }
| void gtk_settingitem_textentry_grabfocus | ( | GtkSettingItemTextEntry * | item | ) |
Definition at line 244 of file gtkSettingItemTextEntry.c.
00245 { 00246 ST_LOGPRINTF("entry"); 00247 gtk_widget_grab_focus(item->entry); 00248 }
| GtkWidget* gtk_settingitem_textentry_new | ( | void | ) |
Definition at line 65 of file gtkSettingItemTextEntry.c.
00066 { 00067 GtkSettingItemTextEntry *settingItem; 00068 00069 settingItem = (GtkSettingItemTextEntry *) g_object_new(GTK_SETTINGITEM_TEXTENTRY_TYPE, NULL); 00070 00071 return GTK_WIDGET(settingItem); 00072 }
| void gtk_settingitem_textentry_setentrywidth | ( | GtkSettingItemTextEntry * | item, | |
| guint | width | |||
| ) |
Definition at line 224 of file gtkSettingItemTextEntry.c.
00225 { 00226 gtk_widget_set_size_request(GTK_WIDGET(item->entry), width, SETTINGITEMTEXT_ENTRY_HEIGHT); 00227 }
| void gtk_settingitem_textentry_setinfo | ( | GtkSettingItemTextEntry * | item, | |
| const gchar * | text | |||
| ) |
Definition at line 203 of file gtkSettingItemTextEntry.c.
00204 { 00205 gtk_label_set_text(GTK_LABEL(item->entry_info), text); 00206 }
| void gtk_settingitem_textentry_setlabel | ( | GtkSettingItemTextEntry * | item, | |
| const gchar * | text | |||
| ) |
| void gtk_settingitem_textentry_settext | ( | GtkSettingItemTextEntry * | item, | |
| const gchar * | text | |||
| ) |
Definition at line 208 of file gtkSettingItemTextEntry.c.
00209 { 00210 gtk_entry_set_text(GTK_ENTRY(item->entry), text); 00211 on_validate(item); 00212 }

| void gtk_settingitem_textentry_setvisibility | ( | GtkSettingItemTextEntry * | item, | |
| gboolean | visible | |||
| ) |
Definition at line 219 of file gtkSettingItemTextEntry.c.
00220 { 00221 gtk_entry_set_visibility(GTK_ENTRY(item->entry), visible); 00222 }
1.5.6