aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ui-tests/store_listing.c
blob: 1eee7412867905f850316da0cdfa384a11d9ecb7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* Bertrand.Guiheneuf@aful.org                                               */



/* 
   gcc -o store_listing `gnome-config --cflags gnomeui libglade` \
   store_listing.c `gnome-config --libs gnomeui libglade`
*/
/******************************************************************************/


#include <gnome.h>
#include <glade/glade.h>


static GladeXML *xml;


void
on_exit1_activate (GtkWidget *widget, void *data)
{
  gtk_main_quit ();
}


void
on_about1_activate (GtkWidget *widget, void *data)
{
   GtkWidget *about_widget;
   
   about_widget = glade_xml_get_widget (xml, "about_widget");
   gtk_widget_show (about_widget);
}




int
main(int argc, char *argv[])
{
 
  gnome_init ("store_listing", "1.0", argc, argv);

  glade_gnome_init();

  xml = glade_xml_new ("store_listing.glade", NULL);
  if (xml) glade_xml_signal_autoconnect (xml);

  
  gtk_main ();
  
  return 0;
}