wmcliphist: Add version 2.0 to repository.
[dockapps.git] / wmcliphist / foodock / example.c
blob1b9369d4837c15c152c91c148f892f47f44671c0
1 /*
2 * File: example.c
4 * This file is a part of foodock library
6 * (c) 2000 Alexey Vyskubov <alexey@pepper.spb.ru>
7 */
9 #include <gtk/gtk.h>
10 #include <gdk/gdk.h>
11 #include <gdk/gdkx.h>
13 #include "foodock.h"
15 int main( int argc, char *argv[] ) {
17 GtkWidget *gtkiw;
18 GtkWidget *box;
19 GtkWidget *button;
21 gtk_init(&argc, &argv);
23 gtkiw = gtk_window_new(GTK_WINDOW_TOPLEVEL);
24 gtk_widget_realize(gtkiw);
26 box = foo_create_main_icon_window(gtkiw, 56, argc, argv);
28 button = gtk_button_new_with_label ("FOO");
30 gtk_container_add (GTK_CONTAINER (box), button);
32 gtk_widget_show(button);
33 gtk_widget_show(box);
34 gtk_widget_show(gtkiw);
36 gtk_main ();
38 return(0);