Now you can start your terminal with LC_CTYPE=ja_JP.UTF-8
and still
diff --git a/doc/rxvt.7.man.in b/doc/rxvt.7.man.in
index 778ac620..4465bce5 100644
--- a/doc/rxvt.7.man.in
+++ b/doc/rxvt.7.man.in
@@ -777,7 +777,7 @@ You can specify separate locales for the input method and the rest of the
terminal, using the resource \f(CW\*(C`imlocale\*(C'\fR:
.Sp
.Vb 1
-\& URxvt*imlocale: ja_JP.EUC-JP
+\& URxvt.imlocale: ja_JP.EUC-JP
.Ve
.Sp
Now you can start your terminal with \f(CW\*(C`LC_CTYPE=ja_JP.UTF\-8\*(C'\fR and still
diff --git a/doc/rxvt.7.pod b/doc/rxvt.7.pod
index a1cb4e24..f3a8f0d8 100644
--- a/doc/rxvt.7.pod
+++ b/doc/rxvt.7.pod
@@ -618,7 +618,7 @@ enable freetype autohinting, i.e. like this:
You can specify separate locales for the input method and the rest of the
terminal, using the resource C:
- URxvt*imlocale: ja_JP.EUC-JP
+ URxvt.imlocale: ja_JP.EUC-JP
Now you can start your terminal with C and still
use your input method. Please note, however, that you will not be able to
diff --git a/doc/rxvt.7.txt b/doc/rxvt.7.txt
index 32c0363b..c7657d12 100644
--- a/doc/rxvt.7.txt
+++ b/doc/rxvt.7.txt
@@ -603,7 +603,7 @@ FREQUENTLY ASKED QUESTIONS
You can specify separate locales for the input method and the rest
of the terminal, using the resource "imlocale":
- URxvt*imlocale: ja_JP.EUC-JP
+ URxvt.imlocale: ja_JP.EUC-JP
Now you can start your terminal with "LC_CTYPE=ja_JP.UTF-8" and
still use your input method. Please note, however, that you will not
diff --git a/doc/rxvtperl.3.man.in b/doc/rxvtperl.3.man.in
index d1a5f461..78488f4d 100644
--- a/doc/rxvtperl.3.man.in
+++ b/doc/rxvtperl.3.man.in
@@ -129,7 +129,7 @@
.\" ========================================================================
.\"
.IX Title "rxvt 3"
-.TH rxvt 3 "2006-01-15" "7.0" "RXVT-UNICODE"
+.TH rxvt 3 "2006-01-16" "7.0" "RXVT-UNICODE"
.SH "NAME"
@@RXVT_NAME@@perl \- rxvt\-unicode's embedded perl interpreter
.SH "SYNOPSIS"
diff --git a/src/Makefile.in b/src/Makefile.in
index 5a5f563f..537fabc0 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -11,8 +11,7 @@ basedir = ..
thisdir = src
# for developers: the following debug options may be used
-# -DDEBUG_CMD -DDEBUG_MAIN -DDEBUG_MENU -DDEBUG_MENUARROWS
-# -DDEBUG_MENUBAR_STACKING -DDEBUG_MENU_LAYOUT -DDEBUG_RESOURCES
+# -DDEBUG_CMD -DDEBUG_MAIN -DDEBUG_RESOURCES
# -DDEBUG_SEARCH_PATH -DDEBUG_SIZE -DDEBUG_TTY -DDEBUG_TTYMODE
# -DDEBUG_KEYBOARD
DEBUG=-DDEBUG_STRICT @DEBUG@
diff --git a/src/command.C b/src/command.C
index b12df331..ca38a84c 100644
--- a/src/command.C
+++ b/src/command.C
@@ -921,9 +921,7 @@ rxvt_term::lookup_key (XKeyEvent &ev)
}
/*}}} */
-#if MENUBAR_MAX || defined (KEYSYM_RESOURCE)
-/*{{{ rxvt_cmd_write (), rxvt_cmd_getc () */
-/* attempt to `write' count to the input buffer */
+#if defined (KEYSYM_RESOURCE)
unsigned int
rxvt_term::cmd_write (const char *str, unsigned int count)
{
@@ -1589,10 +1587,6 @@ rxvt_term::x_cb (XEvent &ev)
scrollBar.setIdle ();
scrollbar_show (0);
}
-#ifdef MENUBAR
- if (menubar_visible () && isMenuBarWindow (ev.xany.window))
- menubar_expose ();
-#endif
#ifdef TRANSPARENT
if (am_transparent && ev.xany.window == parent[0])
@@ -1605,13 +1599,6 @@ rxvt_term::x_cb (XEvent &ev)
#ifdef POINTER_BLANK
if (hidden_pointer)
pointer_unblank ();
-#endif
-#if MENUBAR
- if (isMenuBarWindow (ev.xany.window))
- {
- menubar_control (ev.xbutton);
- break;
- }
#endif
if ((priv_modes & PrivMode_mouse_report) && !bypass_keystate)
break;
@@ -2100,14 +2087,6 @@ rxvt_term::button_press (XButtonEvent &ev)
return;
}
-
-#if MENUBAR
- /*
- * Menubar window processing of button press
- */
- if (isMenuBarWindow (ev.window))
- menubar_control (ev);
-#endif
}
void
@@ -2226,10 +2205,6 @@ rxvt_term::button_release (XButtonEvent &ev)
#endif
}
}
-#ifdef MENUBAR
- else if (isMenuBarWindow (ev.window))
- menubar_control (ev);
-#endif
}
#ifdef TRANSPARENT
@@ -3960,12 +3935,6 @@ rxvt_term::process_xterm_seq (int op, const char *str, char resp)
// TODO, when secure mode?
break;
-#ifdef MENUBAR
- case URxvt_Menu:
- if (OPTION (Opt_insecure))
- menubar_dispatch (const_cast(str)); // casting away constness is checked
- break;
-#endif
#if 0
case Rxvt_dumpscreen: /* no error notices */
{
@@ -4092,9 +4061,6 @@ rxvt_term::process_terminal_mode (int mode, int priv __attribute__ ((unused)), u
{ 7, PrivMode_Autowrap },
// 8, bi-directional support mode
{ 9, PrivMode_MouseX10 },
-#ifdef menuBar_esc
- { menuBar_esc, PrivMode_menuBar },
-#endif
// 18, 19 printing-related
{ 25, PrivMode_VisibleCursor },
#ifdef scrollBar_esc
@@ -4199,13 +4165,6 @@ rxvt_term::process_terminal_mode (int mode, int priv __attribute__ ((unused)), u
if (state) /* orthogonal */
priv_modes &= ~PrivMode_MouseX11;
break;
-#ifdef menuBar_esc
- case menuBar_esc:
-#ifdef MENUBAR
- map_menuBar (state);
-#endif
- break;
-#endif
#ifdef scrollBar_esc
case scrollBar_esc:
if (scrollbar_mapping (state))
diff --git a/src/feature.h b/src/feature.h
index 25572037..07acf73f 100644
--- a/src/feature.h
+++ b/src/feature.h
@@ -295,26 +295,6 @@
*/
/* #define SB_BORDER */
-/*------------------------------MENU BAR--------------------------------*/
-/*
- * Choose how many of (experimental) menuBars you want to be able to stack at
- * one time.
- * A value of 1 disables menuBar stacking.
- * A value of 0 disables menuBar all together.
- * Note that the amount of memory overhead is the same for any value >= 2.
- */
-#define MENUBAR_MAX 16
-
-/*
- * Change the default shadow style
- */
-/* #define MENUBAR_SHADOW_IN */
-
-/*
- * Change the default shadow style
- */
-#define MENU_SHADOW_IN
-
/*---------------------------MULTILINGUAL-------------------------------*/
/*
* Allow run-time selection of Meta (Alt) to set the 8th bit on
diff --git a/src/init.C b/src/init.C
index 29a6e24c..77f031f1 100644
--- a/src/init.C
+++ b/src/init.C
@@ -258,13 +258,6 @@ rxvt_term::init_vars ()
last_bot = last_state = -1;
-#ifdef MENUBAR
- menu_readonly = 1;
-# if ! (MENUBAR_MAX > 1)
- CurrentBar = &BarList;
-# endif /* (MENUBAR_MAX > 1) */
-#endif
-
return true;
}
@@ -672,18 +665,12 @@ rxvt_term::init_command (const char *const *argv)
#endif
/* add value for scrollBar */
- if (scrollbar_visible ())
+ if (scrollBar.state)
{
priv_modes |= PrivMode_scrollBar;
SavedModes |= PrivMode_scrollBar;
}
- if (menubar_visible ())
- {
- priv_modes |= PrivMode_menuBar;
- SavedModes |= PrivMode_menuBar;
- }
-
run_command (argv);
}
@@ -759,7 +746,7 @@ rxvt_term::Get_Colours ()
}
/*
- * get scrollBar/menuBar shadow colors
+ * get scrollBar shadow colors
*
* The calculations of topShadow/bottomShadow values are adapted
* from the fvwm window manager.
@@ -1073,8 +1060,8 @@ rxvt_term::create_windows (int argc, const char *const *argv)
/* vt cursor: Black-on-White is standard, but this is more popular */
TermWin_cursor = XCreateFontCursor (disp, XC_xterm);
-#if defined(HAVE_SCROLLBARS) || defined(MENUBAR)
- /* cursor (menuBar/scrollBar): Black-on-White */
+#ifdef HAVE_SCROLLBARS
+ /* cursor scrollBar: Black-on-White */
leftptr_cursor = XCreateFontCursor (disp, XC_left_ptr);
#endif
@@ -1105,32 +1092,6 @@ rxvt_term::create_windows (int argc, const char *const *argv)
vt_ev.start (display, vt);
-#if defined(MENUBAR) && (MENUBAR_MAX > 1)
- if (menuBar_height ())
- {
- menuBar.win = XCreateSimpleWindow (disp, top,
- window_vt_x, 0,
- width,
- menuBar_TotalHeight (),
- 0,
- pix_colors_focused[Color_fg],
- pix_colors_focused[Color_scroll]);
-
-#ifdef DEBUG_X
- XStoreName (disp, menuBar.win, "menubar");
-#endif
-
- menuBar.drawable = new rxvt_drawable (display, menuBar.win);
-
- XDefineCursor (disp, menuBar.win,
- XCreateFontCursor (disp, XC_left_ptr));
-
- XSelectInput (disp, menuBar.win,
- (ExposureMask | ButtonPressMask | ButtonReleaseMask | Button1MotionMask));
- menubar_ev.start (display, menuBar.win);
- }
-#endif
-
#ifdef XPM_BACKGROUND
if (rs[Rs_backgroundPixmap] != NULL
&& ! OPTION (Opt_transparent))
@@ -1158,7 +1119,7 @@ rxvt_term::create_windows (int argc, const char *const *argv)
drawable = new rxvt_drawable (display, vt);
-#if defined(MENUBAR) || defined(RXVT_SCROLLBAR)
+#ifdef RXVT_SCROLLBAR
gcvalue.foreground = pix_colors[Color_topShadow];
topShadowGC = XCreateGC (disp, vt, GCForeground, &gcvalue);
gcvalue.foreground = pix_colors[Color_bottomShadow];
diff --git a/src/main.C b/src/main.C
index 0753ee8c..08b622af 100644
--- a/src/main.C
+++ b/src/main.C
@@ -163,9 +163,6 @@ rxvt_term::rxvt_term ()
#ifdef HAVE_SCROLLBARS
scrollbar_ev (this, &rxvt_term::x_cb),
#endif
-#ifdef MENUBAR
- menubar_ev (this, &rxvt_term::x_cb),
-#endif
#ifdef CURSOR_BLINK
cursor_blink_ev (this, &rxvt_term::cursor_blink_cb),
#endif
@@ -245,9 +242,6 @@ rxvt_term::~rxvt_term ()
#ifdef USE_XIM
im_destroy ();
#endif
-#ifdef MENUBAR
- if (menubarGC) XFreeGC (disp, menubarGC);
-#endif
#ifdef XTERM_SCROLLBAR
if (xscrollbarGC) XFreeGC (disp, xscrollbarGC);
if (ShadowGC) XFreeGC (disp, ShadowGC);
@@ -267,18 +261,13 @@ rxvt_term::~rxvt_term ()
if (upArrowHi) XFreePixmap (disp, upArrowHi);
if (downArrowHi) XFreePixmap (disp, downArrowHi);
#endif
-#if defined(MENUBAR) || defined(RXVT_SCROLLBAR)
+#ifdef RXVT_SCROLLBAR
if (topShadowGC) XFreeGC (disp, topShadowGC);
if (botShadowGC) XFreeGC (disp, botShadowGC);
if (scrollbarGC) XFreeGC (disp, scrollbarGC);
#endif
if (gc) XFreeGC (disp, gc);
-#if defined(MENUBAR) && (MENUBAR_MAX > 1)
- delete menuBar.drawable;
- //if (menuBar.win)
- // XDestroyWindow (disp, menuBar.win);
-#endif
delete drawable;
// destroy all windows
if (parent[0])
@@ -344,9 +333,6 @@ rxvt_term::destroy ()
#if HAVE_SCROLLBARS
scrollbar_ev.stop (display);
#endif
-#if MENUBAR
- menubar_ev.stop (display);
-#endif
#if TRANSPARENT
rootwin_ev.stop (display);
#endif
@@ -494,9 +480,6 @@ rxvt_term::init (int argc, const char *const *argv)
keyboard->register_done ();
#endif
-#if MENUBAR_MAX
- menubar_read (rs[Rs_menu]);
-#endif
#ifdef HAVE_SCROLLBARS
if (OPTION (Opt_scrollBar))
scrollBar.setIdle (); /* set existence for size calculations */
@@ -544,10 +527,6 @@ rxvt_term::init (int argc, const char *const *argv)
if (OPTION (Opt_scrollBar))
resize_scrollbar (); /* create and map scrollbar */
#endif
-#if (MENUBAR_MAX)
- if (menubar_visible ())
- XMapWindow (disp, menuBar.win);
-#endif
#ifdef TRANSPARENT
if (OPTION (Opt_transparent))
{
@@ -764,7 +743,7 @@ void
rxvt_term::window_calc (unsigned int newwidth, unsigned int newheight)
{
short recalc_x, recalc_y;
- int x, y, sb_w, mb_h, flags;
+ int x, y, sb_w, flags;
unsigned int w, h;
unsigned int max_width, max_height;
dDisp;
@@ -835,10 +814,10 @@ rxvt_term::window_calc (unsigned int newwidth, unsigned int newheight)
szHint.base_width = szHint.base_height = 2 * int_bwidth;
- sb_w = mb_h = 0;
+ sb_w = 0;
window_vt_x = window_vt_y = int_bwidth;
- if (scrollbar_visible ())
+ if (scrollBar.state)
{
sb_w = scrollbar_TotalWidth ();
szHint.base_width += sb_w;
@@ -846,13 +825,6 @@ rxvt_term::window_calc (unsigned int newwidth, unsigned int newheight)
window_vt_x += sb_w;
}
- if (menubar_visible ())
- {
- mb_h = menuBar_TotalHeight ();
- szHint.base_height += mb_h;
- window_vt_y += mb_h;
- }
-
szHint.width_inc = fwidth;
szHint.height_inc = fheight;
szHint.min_width = szHint.base_width + szHint.width_inc;
@@ -880,7 +852,7 @@ rxvt_term::window_calc (unsigned int newwidth, unsigned int newheight)
szHint.height = szHint.base_height + height;
}
- if (scrollbar_visible () && OPTION (Opt_scrollBar_right))
+ if (scrollBar.state && OPTION (Opt_scrollBar_right))
window_sb_x = szHint.width - sb_w;
if (recalc_x)
@@ -1245,7 +1217,7 @@ rxvt_term::resize_all_windows (unsigned int newwidth, unsigned int newheight, in
if (fix_screen || newwidth != old_width || newheight != old_height)
{
- if (scrollbar_visible ())
+ if (scrollBar.state)
{
XMoveResizeWindow (disp, scrollBar.win,
window_sb_x, 0,
@@ -1253,11 +1225,6 @@ rxvt_term::resize_all_windows (unsigned int newwidth, unsigned int newheight, in
resize_scrollbar ();
}
- if (menubar_visible ())
- XMoveResizeWindow (disp, menuBar.win,
- window_vt_x, 0,
- width, menuBar_TotalHeight ());
-
XMoveResizeWindow (disp, vt,
window_vt_x, window_vt_y,
width, height);
diff --git a/src/misc.C b/src/misc.C
index 51bcb81e..d2ca864e 100644
--- a/src/misc.C
+++ b/src/misc.C
@@ -440,7 +440,7 @@ rxvt_freecommastring (char **cs)
/* #define DEBUG_SEARCH_PATH */
-#if defined (XPM_BACKGROUND) || (MENUBAR_MAX)
+#ifdef XPM_BACKGROUND
/*
* search for FILE in the current working directory, and within the
* colon-delimited PATHLIST, adding the file extension EXT if required.
@@ -536,7 +536,7 @@ rxvt_File_find (const char *file, const char *ext, const char *path)
return f;
}
-#endif /* defined (XPM_BACKGROUND) || (MENUBAR_MAX) */
+#endif
/*----------------------------------------------------------------------*
* miscellaneous drawing routines
@@ -545,7 +545,7 @@ rxvt_File_find (const char *file, const char *ext, const char *path)
/*
* Draw top/left and bottom/right border shadows around windows
*/
-#if defined(RXVT_SCROLLBAR) || defined(MENUBAR)
+#ifdef RXVT_SCROLLBAR
void
rxvt_Draw_Shadow (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int h)
{
@@ -564,49 +564,6 @@ rxvt_Draw_Shadow (Display *display, Window win, GC topShadow, GC botShadow, int
}
#endif
-/* button shapes */
-#ifdef MENUBAR
-void
-rxvt_Draw_Triangle (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int type)
-{
- switch (type)
- {
- case 'r': /* right triangle */
- XDrawLine (display, win, topShadow, x, y, x, y + w);
- XDrawLine (display, win, topShadow, x, y, x + w, y + w / 2);
- XDrawLine (display, win, botShadow, x, y + w, x + w, y + w / 2);
- break;
-
- case 'l': /* left triangle */
- XDrawLine (display, win, botShadow, x + w, y + w, x + w, y);
- XDrawLine (display, win, botShadow, x + w, y + w, x, y + w / 2);
- XDrawLine (display, win, topShadow, x, y + w / 2, x + w, y);
- break;
-
- case 'd': /* down triangle */
- XDrawLine (display, win, topShadow, x, y, x + w / 2, y + w);
- XDrawLine (display, win, topShadow, x, y, x + w, y);
- XDrawLine (display, win, botShadow, x + w, y, x + w / 2, y + w);
- break;
-
- case 'u': /* up triangle */
- XDrawLine (display, win, botShadow, x + w, y + w, x + w / 2, y);
- XDrawLine (display, win, botShadow, x + w, y + w, x, y + w);
- XDrawLine (display, win, topShadow, x, y + w, x + w / 2, y);
- break;
-#if 0
- case 's': /* square */
- XDrawLine (display, win, topShadow, x + w, y, x, y);
- XDrawLine (display, win, topShadow, x, y, x, y + w);
- XDrawLine (display, win, botShadow, x, y + w, x + w, y + w);
- XDrawLine (display, win, botShadow, x + w, y + w, x + w, y);
- break;
-#endif
-
- }
-}
-#endif
-
// should not be used in interactive programs, for obvious reasons
void rxvt_usleep (int usecs)
{
diff --git a/src/rsinc.h b/src/rsinc.h
index 8105f1e1..36aab7ea 100644
--- a/src/rsinc.h
+++ b/src/rsinc.h
@@ -16,14 +16,9 @@
#endif
def (name)
def (title)
-#if defined (XPM_BACKGROUND) || (MENUBAR_MAX)
- def (path)
-#endif
#ifdef XPM_BACKGROUND
+ def (path)
def (backgroundPixmap)
-#endif
-#if (MENUBAR_MAX)
- def (menu)
#endif
def (loginShell)
def (jumpScroll)
diff --git a/src/rxvt.h b/src/rxvt.h
index 3689b0d6..1158d41a 100644
--- a/src/rxvt.h
+++ b/src/rxvt.h
@@ -160,18 +160,10 @@ inline void set_environ (char **envv)
*/
struct grwin_t;
-/* Sanitize menubar info */
-#ifndef MENUBAR
-# undef MENUBAR_MAX
-#endif
-#ifndef MENUBAR_MAX
-# define MENUBAR_MAX 0
-#endif
-
/* If we're using either the rxvt scrollbar or menu bars, keep the
* scrollColor resource.
*/
-#if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(MENUBAR) || defined(PLAIN_SCROLLBAR)
+#if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(PLAIN_SCROLLBAR)
# define KEEP_SCROLLCOLOR 1
#else
# undef KEEP_SCROLLCOLOR
@@ -262,15 +254,13 @@ typedef struct _mwmhints {
# define EXIT_FAILURE 1 /* exit function failure */
#endif
-#define menuBar_esc 10
#define scrollBar_esc 30
-#define menuBar_margin 2 /* margin below text */
#if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(XTERM_SCROLLBAR) || defined(PLAIN_SCROLLBAR)
# define HAVE_SCROLLBARS 1
#endif
-/* width of scrollBar, menuBar shadow, must be 1 or 2 */
+/* width of scrollBar shadow, must be 1 or 2 */
#ifdef HALFSHADOW
# define MENU_SHADOW 1
#else
@@ -658,14 +648,13 @@ enum {
#define PrivMode_MouseX10 (1UL<<12)
#define PrivMode_MouseX11 (1UL<<13)
#define PrivMode_scrollBar (1UL<<14)
-#define PrivMode_menuBar (1UL<<15)
-#define PrivMode_TtyOutputInh (1UL<<16)
-#define PrivMode_Keypress (1UL<<17)
-#define PrivMode_smoothScroll (1UL<<18)
-#define PrivMode_vt52 (1UL<<19)
-#define PrivMode_LFNL (1UL<<20)
+#define PrivMode_TtyOutputInh (1UL<<15)
+#define PrivMode_Keypress (1UL<<16)
+#define PrivMode_smoothScroll (1UL<<17)
+#define PrivMode_vt52 (1UL<<18)
+#define PrivMode_LFNL (1UL<<19)
/* too annoying to implement X11 highlight tracking */
-/* #define PrivMode_MouseX11Track (1LU<<21) */
+/* #define PrivMode_MouseX11Track (1LU<<20) */
#define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11)
#define PrivMode(test,bit) \
@@ -805,17 +794,6 @@ enum {
#define scrollbar_size() (scrollBar.end - scrollBar.beg \
- scrollbar_minheight ())
-#if (MENUBAR_MAX > 1)
-/* rendition style flags */
-# define menuBar_height() (fheight + MENU_SHADOW)
-# define menuBar_TotalHeight() (menuBar_height() + MENU_SHADOW + menuBar_margin)
-# define isMenuBarWindow(w) ((w) == menuBar.win)
-#else
-# define menuBar_height() (0)
-# define menuBar_TotalHeight() (0)
-# define isMenuBarWindow(w) (0)
-#endif
-
#ifdef XPM_BACKGROUND
# define XPMClearArea(a, b, c, d, e, f, g) XClearArea((a), (b), (c), (d), (e), (f), (g))
#else
@@ -879,10 +857,6 @@ extern void rxvt_pop_locale ();
/****************************************************************************/
-#ifdef MENUBAR
-# include "menubar.h"
-#endif
-
#define BLINK_INTERVAL 0.5
#define TEXT_BLINK_INTERVAL 0.5
@@ -1075,13 +1049,6 @@ struct rxvt_term : zero_initialized, rxvt_vars {
last_top, /* scrollbar last top position */
last_state, /* scrollbar last state */
scrollbar_len,
-#ifdef MENUBAR
- menu_readonly, /* okay to alter menu? */
- Arrows_x,
-#endif
-#if MENUBAR_MAX > 1
- Nbars,
-#endif
window_vt_x,
window_vt_y,
window_sb_x,
@@ -1100,10 +1067,7 @@ struct rxvt_term : zero_initialized, rxvt_vars {
/* ---------- */
Atom xa[NUM_XA];
/* ---------- */
-#ifdef MENUBAR
- GC menubarGC;
-#endif
-#if defined(MENUBAR) || defined(RXVT_SCROLLBAR)
+#ifdef RXVT_SCROLLBAR
GC scrollbarGC,
topShadowGC,
botShadowGC;
@@ -1162,14 +1126,6 @@ struct rxvt_term : zero_initialized, rxvt_vars {
bgPixmap_t bgPixmap;
XpmAttributes xpmAttr; /* originally loaded pixmap and its scaling */
#endif
-#ifdef MENUBAR
- menu_t *ActiveMenu, /* currently active menu */
- *BuildMenu; /* the menu currently being built */
- bar_t *CurrentBar;
-# if ! (MENUBAR_MAX > 1)
- bar_t BarList;
-# endif /* (MENUBAR_MAX > 1) */
-#endif
#if ENABLE_OVERLAY
int ov_x, ov_y, ov_w, ov_h; // overlay dimensions
@@ -1245,9 +1201,6 @@ struct rxvt_term : zero_initialized, rxvt_vars {
#ifdef HAVE_SCROLLBARS
xevent_watcher scrollbar_ev;
#endif
-#ifdef MENUBAR
- xevent_watcher menubar_ev;
-#endif
void check_cb (check_watcher &w); check_watcher check_ev;
void destroy_cb (time_watcher &w); time_watcher destroy_ev;
@@ -1402,39 +1355,6 @@ struct rxvt_term : zero_initialized, rxvt_vars {
int rXParseAllocColor (rxvt_color * screen_in_out, const char *colour);
void set_widthheight (unsigned int newwidth, unsigned int newheight);
-#ifdef MENUBAR
- // menubar.C
- void menuitem_free (menu_t *menu, menuitem_t *item);
- int action_dispatch (action_t *action);
- void menuarrow_free (char name);
- void menuarrow_add (char *string);
- char *menu_find_base (menu_t **menu, char *path);
- menu_t *menu_delete (menu_t *menu);
- menu_t *menu_add (menu_t *parent, char *path);
- void drawbox_menubar (int x, int len, int state);
- void drawtriangle (int x, int y, int state);
- void drawbox_menuitem (int y, int state);
- void menu_show ();
- void menu_display (void (rxvt_term::*update) ());
- void menu_hide_all ();
- void menu_hide ();
- void menu_clear (menu_t *menu);
- void menubar_clear ();
- bar_t *menubar_find (const char *name);
- int menubar_push (const char *name);
- void menubar_remove (const char *name);
- void menubar_dump (FILE *fp);
- void menubar_read (const char *filename);
- void menubar_dispatch (char *str);
- void draw_Arrows (int name, int state);
- void menubar_expose ();
- int menubar_mapping (int map);
- int menu_select (XButtonEvent &ev);
- void menubar_select (XButtonEvent &ev);
- void menubar_control (XButtonEvent &ev);
- void map_menuBar (int map);
-#endif
-
// screen.C
void lalloc (line_t &l) const
diff --git a/src/rxvtlib.h.in b/src/rxvtlib.h.in
index 98145bfa..fdc7d6cd 100644
--- a/src/rxvtlib.h.in
+++ b/src/rxvtlib.h.in
@@ -65,9 +65,6 @@ extern rxvt_t rxvt_current_term;
#define SET_R(r) rxvt_current_term = const_cast(r)
#define GET_R rxvt_current_term
-#define scrollbar_visible() scrollBar.state
-#define menubar_visible() menuBar.state
-
typedef struct {
int row;
int col;
@@ -217,12 +214,6 @@ enum {
/* ------------------------------------------------------------------------- */
-typedef struct {
- short state;
- Window win;
- struct rxvt_drawable *drawable;
-} menuBar_t;
-
typedef struct {
char state; /* scrollbar state */
char init; /* scrollbar has been initialised */
@@ -243,7 +234,6 @@ typedef struct {
struct rxvt_vars : TermWin_t {
scrollBar_t scrollBar;
- menuBar_t menuBar;
uint32_t options;
XSizeHints szHint;
rxvt_display *display;
diff --git a/src/rxvtperl.xs b/src/rxvtperl.xs
index 9486e63e..6cd8dac1 100644
--- a/src/rxvtperl.xs
+++ b/src/rxvtperl.xs
@@ -41,7 +41,7 @@
#include "perlxsi.c"
-#if defined(HAVE_SCROLLBARS) || defined(MENUBAR)
+#ifdef HAVE_SCROLLBARS
# define GRAB_CURSOR THIS->leftptr_cursor
#else
# define GRAB_CURSOR None
diff --git a/src/scrollbar.C b/src/scrollbar.C
index 0a12edf7..941620f0 100644
--- a/src/scrollbar.C
+++ b/src/scrollbar.C
@@ -150,7 +150,7 @@ rxvt_term::scrollbar_show (int update)
#ifdef HAVE_SCROLLBARS
int top, bot, len, adj;
- if (!scrollbar_visible ())
+ if (!scrollBar.state)
return 0;
if (update)
diff --git a/src/xdefaults.C b/src/xdefaults.C
index c265d577..fe3c2bb2 100644
--- a/src/xdefaults.C
+++ b/src/xdefaults.C
@@ -189,14 +189,9 @@ optList[] = {
STRG (Rs_color + Color_pointer_fg, "pointerColor", "pr", "color", "pointer color"),
STRG (Rs_color + Color_pointer_bg, "pointerColor2", "pr2", "color", "pointer bg color"),
STRG (Rs_color + Color_border, "borderColor", "bd", "color", "border color"),
-#if defined (XPM_BACKGROUND) || (MENUBAR_MAX)
- RSTRG (Rs_path, "path", "search path"),
-#endif /* defined (XPM_BACKGROUND) || (MENUBAR_MAX) */
#ifdef XPM_BACKGROUND
+ RSTRG (Rs_path, "path", "search path"),
STRG (Rs_backgroundPixmap, "backgroundPixmap", "pixmap", "file[;geom]", "background pixmap"),
-#endif /* XPM_BACKGROUND */
-#if (MENUBAR_MAX)
- RSTRG (Rs_menu, "menu", "name[;tag]"),
#endif
/* fonts: command-line option = resource name */
STRG (Rs_font, "font", "fn", "fontname", "normal text font"),
@@ -328,9 +323,6 @@ static const char optionsstring[] = "options: "
#if defined(UTMP_SUPPORT)
"utmp,"
#endif
-#if defined(MENUBAR)
- "menubar,"
-#endif
#if defined(USE_XIM)
"XIM,"
#endif
--
2.34.1