Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1574133
 поиск   регистрация   авторизация 
 
Группа :: Мониторинг
Пакет: hot-babe

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Патч: hot-babe-0.2.2-noDock.patch


diff -ruN hot-babe-0.2.2.orig/config.example hot-babe-0.2.2/config.example
--- hot-babe-0.2.2.orig/config.example	2004-12-05 22:11:53 +0700
+++ hot-babe-0.2.2/config.example	2006-02-18 22:26:50 +0700
@@ -1,6 +1,7 @@
 #threshold 3
 incremental
 #noNice
+#noDock
 #nice 5
 #delay 100
 #dir hb01
diff -ruN hot-babe-0.2.2.orig/hot-babe.1 hot-babe-0.2.2/hot-babe.1
--- hot-babe-0.2.2.orig/hot-babe.1	2004-12-06 06:00:40 +0700
+++ hot-babe-0.2.2/hot-babe.1	2006-02-18 22:26:50 +0700
@@ -46,6 +46,9 @@
 .B \-N, \-\-noNice
 Don't consider reniced processes. This is usefull if you use seti@home or distributed.net, which always eat almost all the CPU.
 .TP
+.B \-D,\-\-noDock
+Don't put picture in dock
+.TP
 .B \-n, \-\-nice
 n Put the hot\-babe process in nice n.
 .TP
@@ -87,6 +90,7 @@
 #threshold 30
 incremental
 #noNice
+#noDock
 #nice 5
 #delay 100
 #dir hb01
diff -ruN hot-babe-0.2.2.orig/hot-babe.c hot-babe-0.2.2/hot-babe.c
--- hot-babe-0.2.2.orig/hot-babe.c	2004-12-06 05:59:38 +0700
+++ hot-babe-0.2.2/hot-babe.c	2006-02-18 22:28:35 +0700
@@ -63,6 +63,7 @@
   /* optional stuff */
   gboolean incremental;
   gboolean noNice;
+  gboolean noDock;
   guint    delay;  
 } HotBabeData;
 
@@ -187,7 +188,7 @@
   gdk_window_set_decorations(bm.win, 0);
   gdk_window_set_skip_taskbar_hint(bm.win, TRUE);
   gdk_window_set_skip_pager_hint(bm.win, TRUE); 
-  gdk_window_set_type_hint(bm.win, GDK_WINDOW_TYPE_HINT_DOCK);
+  if (!bm.noDock) {gdk_window_set_type_hint(bm.win, GDK_WINDOW_TYPE_HINT_DOCK);};
 //  gdk_window_set_keep_below(bm.win, TRUE);
 
   gdk_pixbuf_render_pixmap_and_mask( bm.anim.pixbuf[bm.anim.samples-1], &pixmap, &mask, 127 );
@@ -297,6 +298,7 @@
   g_print(" -d, --delay  n       update every n millisecondes.\n");
   g_print(" -h, --help           show this message and exit.\n");
   g_print(" -N, --noNice         don't count nice time in usage.\n");
+  g_print(" -D, --noDock         don't put picture in dock.\n");
   g_print(" -n, --nice  n        set self-nice to n.\n");
   g_print("     --dir directory  use images from directory.\n");
   g_print("     --geometry {+|-}x{+|-}y  position the hot-babe.\n");
@@ -344,6 +346,7 @@
   bm.incremental = FALSE;
   bm.delay       = 15000;
   bm.noNice      = FALSE;
+  bm.noDock      = FALSE;
   bm.x = -1;
   bm.y = -1;
 
@@ -378,6 +381,9 @@
       } else if (!strcmp(line, "noNice") )
       {
         bm.noNice = TRUE;
+      } else if (!strcmp(line, "noDock") )
+      {
+        bm.noDock = TRUE;
       } else if ( sscanf( line, "nice %d", &val) == 1 )
       {
         nice( val );
@@ -419,6 +425,9 @@
     } else if (!strcmp(argv[i], "--noNice") || !strcmp(argv[i], "-N"))
     {
       bm.noNice = TRUE;
+    } else if (!strcmp(argv[i], "--noDock") || !strcmp(argv[i], "-D"))
+    {
+      bm.noDock = TRUE;
     } else if (!strcmp(argv[i], "--nice") || !strcmp(argv[i], "-n"))
     {
       i++;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005