Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 81231
Collapse All | Expand All

(-)PyPanel-2.2.orig/ppmodule.c (+9 lines)
Lines 22-27 Link Here
22
#include <X11/Xlib.h>
22
#include <X11/Xlib.h>
23
#include <X11/Xutil.h>
23
#include <X11/Xutil.h>
24
#include <Imlib2.h>
24
#include <Imlib2.h>
25
#include <dlfcn.h>
25
26
26
typedef unsigned long CARD32;
27
typedef unsigned long CARD32;
27
28
Lines 229-234 Link Here
229
static PyObject * _ppinit(PyObject *self, PyObject *args) { 
230
static PyObject * _ppinit(PyObject *self, PyObject *args) { 
230
/*--------------------------------------------------------*/
231
/*--------------------------------------------------------*/
231
    Window panel;
232
    Window panel;
233
    void *handle;
232
    XGCValues gcv;
234
    XGCValues gcv;
233
    char *font, *icon;
235
    char *font, *icon;
234
    Imlib_Load_Error rc;
236
    Imlib_Load_Error rc;
Lines 246-251 Link Here
246
    imlib_context_set_visual(DefaultVisual(dsp, scr));
248
    imlib_context_set_visual(DefaultVisual(dsp, scr));
247
    imlib_context_set_colormap(DefaultColormap(dsp, scr));
249
    imlib_context_set_colormap(DefaultColormap(dsp, scr));
248
    imlib_context_set_dither(1);
250
    imlib_context_set_dither(1);
251
252
    /* Attempt to call dlopen from C rather than Python */
253
    handle = dlopen("/usr/lib/libImlib2.so", RTLD_NOW|RTLD_GLOBAL);
254
255
    if (!handle) {
256
	    printf("dlopen failed: %s\n", dlerror());
257
    }
249
    
258
    
250
    dflt_icon = imlib_load_image_with_error_return(icon, &rc); 
259
    dflt_icon = imlib_load_image_with_error_return(icon, &rc); 
251
    if (!dflt_icon)
260
    if (!dflt_icon)

Return to bug 81231