xpra icon
Bug tracker and wiki

Ticket #476: global-menu.patch

File global-menu.patch, 1.1 KB (added by Antoine Martin, 4 years ago)

cython file for linking with libdbusmenu

  • setup.py

     
    15881588                    ["xpra/x11/gtk_x11/gdk_bindings.pyx"],
    15891589                    **pkgconfig(*GDK_BINDINGS_PACKAGES)
    15901590                    ))
     1591        cython_add(Extension("xpra.x11.gtk_x11.global_menu",
     1592                    ["xpra/x11/gtk_x11/global_menu.pyx"],
     1593                    **pkgconfig("dbusmenu-glib-0.4", "glib-2.0")
     1594                    ))
    15911595
    15921596
    15931597add_packages("xpra.codecs.argb")
  • xpra/x11/gtk_x11/global_menu.pyx

     
     1# This file is part of Xpra.
     2# Copyright (C) 2014 Antoine Martin <antoine@devloop.org.uk>
     3# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
     4# later version. See the file COPYING for details.
     5
     6import os
     7import time
     8import gobject
     9
     10from xpra.log import Logger
     11log = Logger("gtk", "x11")
     12
     13
     14cdef extern from "libdbusmenu-glib/types.h":
     15    pass
     16