*** empty log message ***
authorpcg <pcg>
Wed, 17 Mar 2004 03:47:12 +0000 (03:47 +0000)
committerpcg <pcg>
Wed, 17 Mar 2004 03:47:12 +0000 (03:47 +0000)
src/logging.C
src/menubar.C
src/scrollbar-xterm.C
src/xpm.C

index 1e6efa239ac68dfedfe68c7b7b92a15b5add67bf..f6d19adb30ee15b24b00d3322b8b554502658a11 100644 (file)
@@ -83,7 +83,7 @@ rxvt_term::makeutent (const char *pty, const char *hostname)
 #endif
   else if (STRNCMP (pty, "pty", 3) && STRNCMP (pty, "tty", 3))
     {
-      rxvt_print_error ("can't parse tty name \"%s\"", pty);
+      rxvt_warn ("can't parse tty name \"%s\", not adding utmp entry.\n", pty);
       return;
     }
 
@@ -405,9 +405,10 @@ rxvt_update_lastlog (const char *fname, const char *pty, const char *host)
   pwent = getpwuid (getuid ());
   if (!pwent)
     {
-      rxvt_print_error ("no entry in password file");
+      rxvt_warn ("no entry in password file, not updating lastlog.\n");
       return;
     }
+
   MEMSET (&ll, 0, sizeof (ll));
   ll.ll_time = time (NULL);
   STRNCPY (ll.ll_line, pty, sizeof (ll.ll_line));
index 75c95811a1856a98b72830ffb6fafa1c288f0ecc..f7f42d36490098d16ef0e046bc176a36effb1689 100644 (file)
@@ -1848,7 +1848,7 @@ rxvt_term::menubar_dispatch (char *str)
                 if (name == NULL || str == NULL || str <= (name + 1)
                     || (name > path && name[-1] != '/'))
                   {
-                    rxvt_print_error ("menu error <%s>\n", path);
+                    rxvt_warn ("menu error A<%s>, continuing.\n", path);
                     break;
                   }
                 if (str[1] == MENUITEM_BEG)
@@ -1858,7 +1858,7 @@ rxvt_term::menubar_dispatch (char *str)
 
                     if (str == NULL)
                       {
-                        rxvt_print_error ("menu error <%s>\n", path);
+                        rxvt_warn ("menu error B<%s>, continuing.\n", path);
                         break;
                       }
                     name2[-2] = '\0';  /* remove prev MENUITEM_END */
index 9c490ce99bd9c85ec8724a8a5183528934f9e76c..150a80bbbb20a45e6f3b077b287e5888be0aafeb 100644 (file)
@@ -46,10 +46,8 @@ rxvt_term::scrollbar_show_xterm (int update __attribute__ ((unused)), int last_t
                                               (char *)x_stp_bits, x_stp_width,
                                               x_stp_height);
       if (!gcvalue.stipple)
-        {
-          rxvt_print_error ("can't create bitmap");
-          exit (EXIT_FAILURE);
-        }
+        rxvt_fatal ("can't create bitmap");
+
       gcvalue.fill_style = FillOpaqueStippled;
       gcvalue.foreground = PixColors[Color_fg];
       gcvalue.background = PixColors[Color_bg];
index 5f2f436e88a0311913e0db297dfee10b39844229..3f2ab8d31e2345b29ca8d2217b62f97b5c22a375 100644 (file)
--- a/src/xpm.C
+++ b/src/xpm.C
@@ -1,7 +1,7 @@
 /*--------------------------------*-C-*---------------------------------*
  * File:       xpm.c
  *----------------------------------------------------------------------*
- * $Id: xpm.C,v 1.9 2004-02-13 12:16:21 pcg Exp $
+ * $Id: xpm.C,v 1.10 2004-03-17 03:47:14 pcg Exp $
  *
  * All portions of code are copyright by their respective author/s.
  * Copyright (c) 1997      Carsten Haitzler <raster@zip.com.au>
@@ -377,17 +377,18 @@ rxvt_term::set_bgPixmap (const char *file)
                                  &bgPixmap.pixmap, NULL,
                                  &xpmAttr))
         {
-          char           *p;
+          char *p;
 
           /* semi-colon delimited */
           if ((p = STRCHR (file, ';')) == NULL)
             p = STRCHR (file, '\0');
 
-          rxvt_print_error ("couldn't load XPM file \"%.*s\"", (p - file),
-                           file);
+          rxvt_warn ("couldn't load XPM file \"%.*s\", ignoring.", (p - file), file);
         }
+
       free (f);
     }
+
   resize_pixmap ();
   return bgPixmap.pixmap;
 }