diff options
author | Michael Jennings <mej@kainx.org> | 2000-10-30 23:05:25 +0000 |
---|---|---|
committer | Michael Jennings <mej@kainx.org> | 2000-10-30 23:05:25 +0000 |
commit | 8138d895fa950e1a10e921985390f9ece8e46a6e (patch) | |
tree | 2c348a5f6eb8e0204c2735f72712a18feb230092 /src/menus.c | |
parent | 536efe1a48cabc3c9ed2bcd671e2eced1177cad5 (diff) | |
download | eterm-8138d895fa950e1a10e921985390f9ece8e46a6e.tar.gz |
Mon Oct 30 07:45:16 PST 2000 Michael Jennings <mej@eterm.org>
Several small changes, like freeing pixmaps which won't be needed
later, reducing the default Imlib2 cache size to 0 bytes (we don't
really use it well), and an image path bugfix spotted by Teodor
Zlatanov <tzz@iglou.com>.
The big change, of course, is the disappearance of libmej and the new
dependency on libast, which is now distributed separately.
SVN revision: 3793
Diffstat (limited to 'src/menus.c')
-rw-r--r-- | src/menus.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/menus.c b/src/menus.c index 32cf530..159fa78 100644 --- a/src/menus.c +++ b/src/menus.c @@ -124,9 +124,9 @@ menu_init(void) return; } gcvalue.foreground = PixColors[menuTopShadowColor]; - topShadowGC = LIBMEJ_X_CREATE_GC(GCForeground, &gcvalue); + topShadowGC = LIBAST_X_CREATE_GC(GCForeground, &gcvalue); gcvalue.foreground = PixColors[menuBottomShadowColor]; - botShadowGC = LIBMEJ_X_CREATE_GC(GCForeground, &gcvalue); + botShadowGC = LIBAST_X_CREATE_GC(GCForeground, &gcvalue); event_register_dispatcher(menu_dispatch_event, menu_event_init_dispatcher); } @@ -428,8 +428,8 @@ menulist_clear(menulist_t *list) menu_delete(list->menus[i]); } FREE(list->menus); - LIBMEJ_X_FREE_GC(topShadowGC); - LIBMEJ_X_FREE_GC(botShadowGC); + LIBAST_X_FREE_GC(topShadowGC); + LIBAST_X_FREE_GC(botShadowGC); FREE(list); } @@ -463,7 +463,7 @@ menu_create(char *title) menu->swin = XCreateWindow(Xdisplay, menu->win, 0, 0, 1, 1, 0, Xdepth, InputOutput, CopyFromParent, CWOverrideRedirect | CWSaveUnder | CWBorderPixel | CWColormap, &xattr); - menu->gc = LIBMEJ_X_CREATE_GC(0, NULL); + menu->gc = LIBAST_X_CREATE_GC(0, NULL); menuitem_clear_current(menu); return menu; @@ -484,10 +484,10 @@ menu_delete(menu_t *menu) FREE(menu->title); } if (menu->bg) { - LIBMEJ_X_FREE_PIXMAP(menu->bg); + LIBAST_X_FREE_PIXMAP(menu->bg); } if (menu->gc) { - LIBMEJ_X_FREE_GC(menu->gc); + LIBAST_X_FREE_GC(menu->gc); } #ifdef MULTI_CHARSET if (menu->fontset) { |