Remove unnecessary ttk library references
This commit is contained in:
parent
8f412f4172
commit
e6c3f3d055
@ -28,11 +28,20 @@
|
||||
#include "lib/toaru_auth.h"
|
||||
#include "lib/confreader.h"
|
||||
|
||||
#include "gui/ttk/ttk.h"
|
||||
|
||||
#include "lib/trace.h"
|
||||
#define TRACE_APP_NAME "glogin"
|
||||
|
||||
static void cairo_rounded_rectangle(cairo_t * cr, double x, double y, double width, double height, double radius) {
|
||||
double degrees = M_PI / 180.0;
|
||||
|
||||
cairo_new_sub_path(cr);
|
||||
cairo_arc (cr, x + width - radius, y + radius, radius, -90 * degrees, 0 * degrees);
|
||||
cairo_arc (cr, x + width - radius, y + height - radius, radius, 0 * degrees, 90 * degrees);
|
||||
cairo_arc (cr, x + radius, y + height - radius, radius, 90 * degrees, 180 * degrees);
|
||||
cairo_arc (cr, x + radius, y + radius, radius, 180 * degrees, 270 * degrees);
|
||||
cairo_close_path(cr);
|
||||
}
|
||||
|
||||
static sprite_t logo;
|
||||
|
||||
static gfx_context_t * ctx;
|
||||
|
@ -5,13 +5,6 @@ import yutani
|
||||
decorations = None
|
||||
_windows = {}
|
||||
|
||||
ttk_lib = None
|
||||
|
||||
def init_ttk():
|
||||
global ttk_lib
|
||||
from ctypes import CDLL
|
||||
ttk_lib = CDLL("libtoaru-ttk.so")
|
||||
|
||||
def rgb(r,g,b):
|
||||
return yutani.yutani_gfx_lib.rgb(r,g,b)
|
||||
|
||||
@ -94,8 +87,6 @@ def main():
|
||||
else:
|
||||
pass
|
||||
|
||||
init_ttk()
|
||||
|
||||
if __name__ == '__main__':
|
||||
w = Window()
|
||||
w.show()
|
||||
|
Loading…
x
Reference in New Issue
Block a user