I just recently decided to try some 'programming' in GLADE. I built a
simple app with just 2 buttons and a 'GTK entry' window. One button
is used to clear the display and the other to output a phrase to the
display. Here is the callback file which needs to be edited by hand.
Obviously, the main problem I'm having is attaching the output phrases
to the display. I'm sure there isn't much which needs to be done
here. Possibly the signal 'on_entry_button_press_event' is
incorrect for the display. Any help would be appreciated. Thanks!
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <gnome.h>
#include "callbacks.h"
#include "interface.h"
#include "support.h"
gboolean
on_entry1_button_press_event (GtkWidget *widget,
GdkEventButton *event,
gpointer user_data)
{
return FALSE;
voidQuote:}
on_buttonPress_clicked (GtkButton *button,
gpointer user_data)
{
printf"You pressed the button";
return 0;
voidQuote:}
on_buttona_clicked (GtkButton *button,
gpointer user_data)
{
printf" ";
return 0;
Quote:}