*** empty log message ***
authorroot <root>
Tue, 31 Jan 2006 19:53:30 +0000 (19:53 +0000)
committerroot <root>
Tue, 31 Jan 2006 19:53:30 +0000 (19:53 +0000)
src/command.C
src/init.C
src/main.C
src/rxvt.h
src/rxvttoolkit.C
src/rxvttoolkit.h
src/scrollbar-plain.C

index 993f8e7f75b0649ab1064fe12a5501380c9d62d5..ace499a51d934680340b2183a99fef347648b810 100644 (file)
@@ -2543,7 +2543,7 @@ rxvt_term::check_our_parents ()
               int shade = rs[Rs_shade] ? atoi (rs[Rs_shade]) : 100;
 
               rgba c;
-              pix_colors_focused [Color_tint].get (this, c);
+              pix_colors_focused [Color_tint].get (c);
 
               ShadeXImage (this, image, shade, c.r, c.g, c.b);
             }
@@ -3721,7 +3721,7 @@ rxvt_term::process_color_seq (int report, int color, const char *str, char resp)
   if (str[0] == '?' && !str[1])
     {
       rgba c;
-      pix_colors_focused[color].get (this, c);
+      pix_colors_focused[color].get (c);
 
 #if XFT
       if (c.a != rgba::MAX_CC)
index 9140de27b03ad51cdcd6cb0fb89e9d954531313f..2ee0016cb5fb30d828c49382b9069bd655a4d468 100644 (file)
@@ -311,12 +311,12 @@ rxvt_term::init_resources (int argc, const char *const *argv)
 
   extract_resources ();
 
+  free (r_argv);
+
   for (int i = NUM_RESOURCES; i--; )
     if (rs [i] == resval_undef)
       rs [i] = 0;
 
-  free (r_argv);
-
 #if ENABLE_PERL
   if (!rs[Rs_perl_ext_1])
     rs[Rs_perl_ext_1] = "default";
index 6de57b8216df0cf0aa6f28c61d56dfd691fa6bde..996562ee43a0c00550afa68bcd60cea486e7132f 100644 (file)
@@ -934,7 +934,7 @@ done:
   if (rs[Rs_fade])
     {
       rgba c;
-      pix_colors [Color_fade].get (this, c);
+      pix_colors [Color_fade].get (c);
       pix_colors_focused [idx].fade (this, atoi (rs[Rs_fade]), pix_colors_unfocused [idx], c);
     }
 #endif
index 11ee312a85b687de317f56a6e658efaf9fe057c1..35747b5edb934bd1f99aebd4e64f6d6645e0b22b 100644 (file)
@@ -890,11 +890,17 @@ extern class rxvt_composite_vec rxvt_composite;
 /****************************************************************************/
 
 #ifdef KEYSYM_RESOURCE
-  class keyboard_manager;
+class keyboard_manager;
 #endif
 
 struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen {
-  log_callback   *log_hook;               // log error messages through this hook, if != 0
+
+  // special markers with magic addresses
+  static const char resval_undef [];    // options specifically unset
+  static const char resval_on [];       // boolean options switched on
+  static const char resval_off [];      // or off
+  
+  log_callback   *log_hook;             // log error messages through this hook, if != 0
   getfd_callback *getfd_hook;           // convert remote to local fd, if != 0
 #if ENABLE_PERL
   rxvt_perl_term  perl;
index 16c7ab565786387dc2f0f196fbda279a968c98c7..01c9dde666c1000f0300579a7adecf7148cf2570 100644 (file)
@@ -721,7 +721,7 @@ rxvt_color::set (rxvt_screen *screen, const rgba &color)
 }
 
 void
-rxvt_color::get (rxvt_screen *screen, rgba &color)
+rxvt_color::get (rgba &color)
 {
 #if XFT
   color.r = c.color.red;
@@ -750,7 +750,7 @@ void
 rxvt_color::fade (rxvt_screen *screen, int percent, rxvt_color &result, const rgba &to)
 {
   rgba c;
-  get (screen, c);
+  get (c);
 
   result.set (
     screen,
index f358dcae96f5852a1c9b537653a92f623f18b809..879c0316a210923acd0f496b1e05d7feff78fc30 100644 (file)
@@ -252,7 +252,7 @@ struct rxvt_color {
   bool alloc (rxvt_screen *screen, const rgba &color);
   void free (rxvt_screen *screen);
 
-  void get (rxvt_screen *screen, rgba &color);
+  void get (rgba &color);
  
   bool set (rxvt_screen *screen, const char *name);
   bool set (rxvt_screen *screen, const rgba &color);
index 262b8569f08f83626f54089287da770b7b8d2904..c236212b29d1ce62de2ba05afb5144c983a15bcc 100644 (file)
@@ -50,12 +50,12 @@ rxvt_term::scrollbar_show_plain (int update, int last_top, int last_bot, int scr
       if (last_top < scrollBar.top)
         XClearArea (xdisp, scrollBar.win,
                     sb_shadow, last_top,
-                    sbwidth + 1, (scrollBar.top - last_top), False);
+                    sbwidth + 1, scrollBar.top - last_top, False);
 
       if (scrollBar.bot < last_bot)
         XClearArea (xdisp, scrollBar.win,
                     sb_shadow, scrollBar.bot,
-                    sbwidth + 1, (last_bot - scrollBar.bot), False);
+                    sbwidth + 1, last_bot - scrollBar.bot, False);
     }
   else
     XClearWindow (xdisp, scrollBar.win);