From owner-freebsd-ports@FreeBSD.ORG Fri Mar 2 10:21:40 2007 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DD56F16A400 for ; Fri, 2 Mar 2007 10:21:40 +0000 (UTC) (envelope-from lubeg@rootshell.be) Received: from mx.211.ru (mx.211.ru [193.238.131.194]) by mx1.freebsd.org (Postfix) with ESMTP id EF4E713C474 for ; Fri, 2 Mar 2007 10:21:39 +0000 (UTC) (envelope-from lubeg@rootshell.be) Received: from localhost (mx.211.ru [193.238.131.194]) by mx.211.ru (Postfix) with ESMTP id 24B4DEBCB7 for ; Fri, 2 Mar 2007 15:49:40 +0600 (NOVT) Received: from mx.211.ru ([193.238.131.194]) by localhost (mx.211.ru [193.238.131.194]) (amavisd-new, port 10024) with ESMTP id 65181-05 for ; Fri, 2 Mar 2007 15:48:51 +0600 (NOVT) Received: from mail.211.ru (mail [81.1.243.10]) by mx.211.ru (Postfix) with ESMTP id DA913EBC51 for ; Fri, 2 Mar 2007 15:48:51 +0600 (NOVT) Received: from localhost (mail.211.ru [10.5.1.2]) by mail.211.ru (Postfix) with ESMTP id 35C111FFC14 for ; Fri, 2 Mar 2007 15:48:51 +0600 (NOVT) Received: from mail.211.ru ([81.1.243.10]) by localhost (mail.211.ru [10.5.1.2]) (amavisd-new, port 10024) with ESMTP id 82876-01 for ; Fri, 2 Mar 2007 15:48:49 +0600 (NOVT) Received: from ontario (gw-microtest.ll-nsk.zsttk.ru [81.1.255.82]) by mail.211.ru (Postfix) with ESMTP id 379611FFC13 for ; Fri, 2 Mar 2007 15:48:47 +0600 (NOVT) Date: Fri, 2 Mar 2007 15:43:21 +0600 From: Alexey Privalov To: ports@freebsd.org Message-ID: <20070302154321.1110ddf7@ontario> X-Mailer: Claws Mail 2.7.2 (GTK+ 2.10.9; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=MP_BIE0oOfv+9+IglbCEYmZZSs X-Virus-Scanned: amavisd-new at 211.ru Cc: Subject: misc/hotkeys package X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2007 10:21:40 -0000 --MP_BIE0oOfv+9+IglbCEYmZZSs Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, there is a problem with misc/hotkeys package.. while building with XOSD support it doesn't show anything on my desk. xosd_init which is used is deprecated. here is a little patch to fix it. also added some config features. Best regards. --MP_BIE0oOfv+9+IglbCEYmZZSs Content-Type: text/x-patch; name=xosd.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=xosd.patch --- src/conf.c.orig Thu Nov 28 01:30:08 2002 +++ src/conf.c Fri Mar 2 14:53:27 2007 @@ -75,9 +78,14 @@ // "osd_font", "-*-lucidatypewriter-bold-r-normal-*-*-250-*-*-*-*-*-*", "osd_font", "lucidasanstypewriter-bold-24", "osd_color", "LawnGreen", + "osd_shadow_color","Black", + "osd_shadow_offset","3", "osd_timeout", "3", "osd_position", "bottom", - "osd_offset", "25", + "osd_align", "center", + "osd_hoffset", "25", + "osd_voffset", "25", + "osd_bar_length", "25", NULL, NULL }; --- src/hotkeys.c.orig Wed Dec 4 01:26:32 2002 +++ src/hotkeys.c Fri Mar 2 15:04:12 2007 @@ -1435,15 +1450,16 @@ #ifdef HAVE_LIBXOSD if ( osd ) { - osd = xosd_init(xstrdup(getConfig("osd_font")), - /* I dunno why, but you must call strdup here... */ - xstrdup(getConfig("osd_color")), - atoi(getConfig("osd_timeout")), - strncmp(getConfig("osd_position"),"top",3)?XOSD_bottom:XOSD_top, - atoi(getConfig("osd_offset")), - 3 /* shadow offset */, - 3 /* number_lines */ - ); + osd = xosd_create(3); + xosd_set_pos(osd, strncmp(getConfig("osd_position"),"top",3)?XOSD_bottom:XOSD_top); + xosd_set_bar_length(osd, atoi(getConfig("osd_bar_length"))); + xosd_set_colour(osd, xstrdup(getConfig("osd_color"))); + xosd_set_shadow_colour(osd, xstrdup(getConfig("osd_shadow_color"))); + xosd_set_shadow_offset(osd, atoi(getConfig("osd_shadow_offset"))); + xosd_set_horizontal_offset(osd, atoi(getConfig("osd_hoffset"))); + xosd_set_vertical_offset(osd, atoi(getConfig("osd_voffset"))); + xosd_set_font(osd, xstrdup(getConfig("osd_font"))); + xosd_set_align(osd, strncmp(getConfig("osd_align"),"left",4)?((!strncmp(getConfig("osd_align"),"center",6))?XOSD_center:XOSD_right):XOSD_left); } #endif } --MP_BIE0oOfv+9+IglbCEYmZZSs--