Help w/ simple GLADE callback file

Help w/ simple GLADE callback file

Post by john bro » Sun, 29 Dec 2002 04:33:03



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;

Quote:}

void
on_buttonPress_clicked                 (GtkButton       *button,
                                        gpointer         user_data)
{
printf"You pressed the button";
return 0;

Quote:}

void
on_buttona_clicked                     (GtkButton       *button,
                                        gpointer         user_data)
{
printf"          ";
return 0;
Quote:}

 
 
 

1. Help w/ Glade callback file

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;

void
on_buttonPress_clicked                 (GtkButton       *button,
                                        gpointer         user_data)
{
printf"You pressed the button";
return 0;

void
on_buttona_clicked                     (GtkButton       *button,
                                        gpointer         user_data)
{
printf"          ";
return 0;

2. ipchains, squid and socks5

3. Glade: Getting Widget info from callbacks

4. Solaris 2.5 upgrade and SSA

5. Callback and simple dial-in, PPPD options file?

6. NLB on linux

7. trying to get plug & play soundcard to work...

8. Glade, Glade-- and Gladecc

9. Glade, Glade-- and Gnome

10. CALLBACK made simple?

11. callback-2.00 restricted modem access and callback

12. Including header files in Glade