Репозиторий Sisyphus
Последнее обновление: 20 сентября 2019 | Пакетов: 17474 | Посещений: 15133143
en ru br
Репозитории ALT

Группа :: Графические оболочки/Window Maker
Пакет: wmfishtime

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

Патч: wmfishtime-1.24-gtk.patch
Скачать


diff -ur wmfishtime-1.24.orig/fishmon.c wmfishtime-1.24/fishmon.c
--- wmfishtime-1.24.orig/fishmon.c	2004-05-13 02:55:59.000000000 +0300
+++ wmfishtime-1.24/fishmon.c	2008-01-12 16:19:34.000000000 +0200
@@ -648,6 +648,7 @@
 
     /* make a copy for the iconwin - parameters are the same */
     memcpy(&attri, &attr, sizeof(GdkWindowAttr));
+    attri.window_type = GDK_WINDOW_CHILD;
 
     sizehints.flags = USSize;
     sizehints.width = 64;
@@ -679,7 +680,6 @@
     wmhints.window_group = win;
     wmhints.flags =
 	StateHint | IconWindowHint | IconPositionHint | WindowGroupHint;
-    XSetWMHints(GDK_WINDOW_XDISPLAY(bm.win), win, &wmhints);
 
     bm.gc = gdk_gc_new(bm.win);
 
@@ -693,6 +693,8 @@
 
     gdk_window_show(bm.win);
 
+    XSetWMHints(GDK_WINDOW_XDISPLAY(bm.win), win, &wmhints);
+
 #undef MASK
 }				/* make_new_fishmon_dockapp */
 
diff -ur wmfishtime-1.24.orig/Makefile wmfishtime-1.24/Makefile
--- wmfishtime-1.24.orig/Makefile	2001-05-26 23:49:41.000000000 +0300
+++ wmfishtime-1.24/Makefile	2008-01-12 16:22:30.000000000 +0200
@@ -2,11 +2,11 @@
 DESTDIR =
 
 # where to install this program
-PREFIX = $(DESTDIR)/usr/X11R6
+PREFIX = $(DESTDIR)/usr
 
 # no user serviceable parts below this line
 # optimization cflags
-CFLAGS = -O3 -Wall `gtk-config --cflags` ${EXTRA}
+CFLAGS += -Wall `pkg-config gtk+-2.0 --cflags` ${EXTRA}
 # profiling cflags
 # CFLAGS=-ansi -pedantic -Wall -pg -O3 `gtk-config --cflags` ${EXTRA} -DPRO
 # test coverage cflags
@@ -16,7 +16,7 @@
 CC = gcc
 SHELL = sh
 OBJS = fishmon.o
-LIBS = `gtk-config --libs | sed "s/-lgtk//g"`
+LIBS = `pkg-config gtk+-2.0 --libs` -lX11 -lm
 INSTALL = -m 755
 
 all: wmfishtime
@@ -30,4 +30,4 @@
 # You're going to have to be root to do this!
 install:
 	install $(INSTALL) wmfishtime $(PREFIX)/bin
-	install $(INSTALL) wmfishtime.1 $(PREFIX)/man/man1
+	install $(INSTALL) wmfishtime.1 $(PREFIX)/share/man/man1
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin