diff options
author | GMT 1999 Tony Gale <gale@gtk.org> | 1999-11-13 23:06:46 +0000 |
---|---|---|
committer | Tony Gale <gale@src.gnome.org> | 1999-11-13 23:06:46 +0000 |
commit | ee3d13766031e30653d82764aef92ae444015c5e (patch) | |
tree | c0d025531a52bee6a44d65babd111b6d3f04bed7 /examples/entry/entry.c | |
parent | e4df9fa95b83ce233c2129c3098e2727316e982b (diff) | |
download | gdk-pixbuf-ee3d13766031e30653d82764aef92ae444015c5e.tar.gz |
threads example from Erik Mouw. New question on GtkLabel background
Sat Nov 13 22:30:29 GMT 1999 Tony Gale <gale@gtk.org>
* docs/gtkfaq.sgml: threads example from Erik Mouw.
New question on GtkLabel background colors.
* docs/gtk_tut.sgml:
- Correct the example code callback
function definitions.
- Update the gtkdial example code, from Frans van Schaik.
- Update setselection.c to current API.
* examples/Makefile examples/*/*.c: Update to code
listed in tutorial.
Diffstat (limited to 'examples/entry/entry.c')
-rw-r--r-- | examples/entry/entry.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/examples/entry/entry.c b/examples/entry/entry.c index 510f5e216..b53a9f9a3 100644 --- a/examples/entry/entry.c +++ b/examples/entry/entry.c @@ -2,28 +2,30 @@ #include <gtk/gtk.h> -void enter_callback(GtkWidget *widget, GtkWidget *entry) +void enter_callback( GtkWidget *widget, + GtkWidget *entry ) { gchar *entry_text; entry_text = gtk_entry_get_text(GTK_ENTRY(entry)); printf("Entry contents: %s\n", entry_text); } -void entry_toggle_editable (GtkWidget *checkbutton, - GtkWidget *entry) +void entry_toggle_editable( GtkWidget *checkbutton, + GtkWidget *entry ) { gtk_entry_set_editable(GTK_ENTRY(entry), GTK_TOGGLE_BUTTON(checkbutton)->active); } -void entry_toggle_visibility (GtkWidget *checkbutton, - GtkWidget *entry) +void entry_toggle_visibility( GtkWidget *checkbutton, + GtkWidget *entry ) { gtk_entry_set_visibility(GTK_ENTRY(entry), GTK_TOGGLE_BUTTON(checkbutton)->active); } -int main (int argc, char *argv[]) +int main( int argc, + char *argv[] ) { GtkWidget *window; |