Back to index

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