Back to index

im-sdk  12.3.91
Functions | Variables
palette_main.c File Reference
#include <stdio.h>
#include <gdk/gdkx.h>
#include <gtk/gtk.h>
#include "palette_aux.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)

Variables

palette_window_tpalette_window

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 14 of file palette_main.c.

{
    gtk_init(&argc, &argv);

    palette_window = (palette_window_t *) palette_window_new();

    gdk_window_add_filter(palette_window->window->window,
                       xaux_ext_event_handler, 0);

    if (xaux_ext_register_classes(palette_window->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;
}

Variable Documentation

Definition at line 12 of file palette_main.c.