Back to index

im-sdk  12.3.91
palette_main.c
Go to the documentation of this file.
00001 #include <stdio.h>
00002 
00003 #include <gdk/gdkx.h>
00004 #include <gtk/gtk.h>
00005 
00006 #include "palette_aux.h"
00007 
00008 extern GdkFilterReturn xaux_ext_event_handler(GdkXEvent * gdk_xevent,
00009                                          GdkEvent * event,
00010                                          gpointer user_data);
00011 
00012 palette_window_t *palette_window;
00013 
00014 int main(int argc, char **argv)
00015 {
00016     gtk_init(&argc, &argv);
00017 
00018     palette_window = (palette_window_t *) palette_window_new();
00019 
00020     gdk_window_add_filter(palette_window->window->window,
00021                        xaux_ext_event_handler, 0);
00022 
00023     if (xaux_ext_register_classes(palette_window->window->window) == False)
00024        return False;
00025 
00026     gtk_main();
00027 }