diff options
author | Phil Jones <philj56@gmail.com> | 2021-11-14 20:33:35 +0000 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2021-11-14 20:33:35 +0000 |
commit | 929bca3f70c6406e7edbaf42804d8e1d1d9958e2 (patch) | |
tree | 997cb414f93906f9bdae501fe0c5d5ea77206cb0 /src/entry.c | |
parent | 9a0ee7624c19acf7fabb311e6c01c45cc72a1da3 (diff) |
Rename main struct to tofi.
Diffstat (limited to 'src/entry.c')
-rw-r--r-- | src/entry.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/entry.c b/src/entry.c index b08623c..9a92311 100644 --- a/src/entry.c +++ b/src/entry.c @@ -4,7 +4,6 @@ #include <pango/pangocairo.h> #include <pango/pango.h> #include <wchar.h> -#include "client.h" #include "entry.h" #include "log.h" #include "nelem.h" @@ -13,26 +12,6 @@ #define TWO_PI 6.283185307179586f #endif -void entry_preload(void) -{ - cairo_surface_t *surface = cairo_image_surface_create( - CAIRO_FORMAT_ARGB32, - 10, - 10 - ); - cairo_t *cr = cairo_create(surface); - - PangoContext *context = pango_cairo_create_context(cr); - PangoLayout *layout = pango_layout_new(context); - pango_layout_set_text(layout, "test", -1); - pango_cairo_update_layout(cr, layout); - pango_cairo_show_layout(cr, layout); - g_object_unref(layout); - g_object_unref(context); - cairo_destroy(cr); - cairo_surface_destroy(surface); -} - void entry_init(struct entry *entry, uint32_t scale) { /* Calculate the size of the entry from our font and various widths. */ @@ -200,7 +179,6 @@ void entry_update(struct entry *entry) pango_cairo_update_layout(cr, entry->pango.entry_layout); pango_cairo_show_layout(cr, entry->pango.entry_layout); - log_debug("%zu\n", entry->results.count); for (size_t i = 0; i < 5; i++) { cairo_translate(cr, 0, 50); PangoLayout *layout = entry->pango.result_layouts[i]; |