File: ui.override

package info (click to toggle)
libdesktop-agnostic 0.3.90-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,004 kB
  • ctags: 4,635
  • sloc: ansic: 30,148; python: 1,069; makefile: 24; xml: 12
file content (54 lines) | stat: -rw-r--r-- 1,801 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
%%
headers
/*
 * Copyright (c) 2009 Mark Lee <libdesktop-agnostic@lazymalevolence.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
*/

#ifdef HAVE_BUILD_CONFIG_H
#include "build-config.h"
#endif
#include <pygobject.h>
#include <libdesktop-agnostic/ui.h>
%%
modulename desktopagnostic.ui
%%
import gobject.GObject as PyGObject_Type
import desktopagnostic.Color as PyDesktopAgnosticColor_Type
import desktopagnostic.vfs.File as PyDesktopAgnosticVFSFile_Type
import gtk.Button as PyGtkButton_Type
import gtk.ColorButton as PyGtkColorButton_Type
import gtk.Dialog as PyGtkDialog_Type
%%
ignore-glob
  *_get_type
  *_error_quark
  *_construct*
  *_new_*
%%
define DesktopAgnosticUIColorButton.with_color onearg staticmethod
static PyObject *
_wrap_desktop_agnostic_u_i_color_button_with_color (PyObject *self,
                                                    PyGObject *color)
{
    DesktopAgnosticUIColorButton *ret;

    ret = desktop_agnostic_ui_color_button_new_with_color (DESKTOP_AGNOSTIC_COLOR(color->obj));

    /* pygobject_new handles NULL checking */
    return pygobject_new((GObject *)ret);
}