Back to index

im-sdk  12.3.91
Functions
aux_manager_main.c File Reference
#include <stdio.h>
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#include "aux_module.h"

Go to the source code of this file.

Functions

GdkFilterReturn xaux_ext_event_handler (GdkXEvent *gdk_xevent, GdkEvent *event, gpointer user_data)
int main (int argc, char **argv)

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 10 of file aux_manager_main.c.

{
       GtkWidget *aux_manager_gtk2_window = NULL;
       gtk_init (&argc, &argv);

       aux_manager_gtk2_window = gtk_window_new (GTK_WINDOW_POPUP);
       gtk_container_set_border_width (GTK_CONTAINER (aux_manager_gtk2_window), 10);

       gtk_widget_realize(aux_manager_gtk2_window);

       aux_manager_init_aux_modules();

       gdk_window_add_filter(aux_manager_gtk2_window->window, xaux_ext_event_handler, 0);
       if (xaux_ext_register_classes(aux_manager_gtk2_window->window) == False)
              return (False);

       gtk_main ();
}

Here is the call graph for this function:

GdkFilterReturn xaux_ext_event_handler ( GdkXEvent *  gdk_xevent,
GdkEvent *  event,
gpointer  user_data 
)

Definition at line 42 of file aux_manager_methods.c.

{
       XEvent *xevent = (XEvent *) gdk_xevent;

       switch (xevent->type) {
              case ClientMessage:
                     xaux_ext_process_client_message((Display *)gDisplay,
                            (XClientMessageEvent *) xevent);
                     break;
              case SelectionClear:
                     break;
       }
       return GDK_FILTER_CONTINUE;
}