mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
sysutils/gkrellm/plugins/*: call correct API to fix build with llvm22
This commit is contained in:
@@ -2,7 +2,7 @@ COMMENT= GkrellM2 plugin that shows Internet time
|
||||
|
||||
V= 1.0.1
|
||||
DISTNAME= gkrellmitime-${V}
|
||||
REVISION= 20
|
||||
REVISION= 21
|
||||
CATEGORIES= net
|
||||
|
||||
EXTRA_WANTLIB= gthread-2.0
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
--- gkrellm_itime.c.orig Wed Aug 14 12:18:21 2002
|
||||
+++ gkrellm_itime.c Wed Jan 8 22:27:58 2003
|
||||
Index: gkrellm_itime.c
|
||||
--- gkrellm_itime.c.orig
|
||||
+++ gkrellm_itime.c
|
||||
@@ -71,7 +71,8 @@
|
||||
#define gkrellm_panel_bg_image_override gkrellm_panel_bg_piximage_override
|
||||
#define gkrellm_load_image gkrellm_load_piximage
|
||||
@@ -10,3 +11,14 @@
|
||||
#define gkrellm_bg_grid_image gkrellm_bg_grid_piximage
|
||||
#define gkrellm_bg_panel_image gkrellm_bg_panel_piximage
|
||||
#define gkrellm_bg_meter_image gkrellm_bg_meter_piximage
|
||||
@@ -178,8 +179,8 @@ static void update_itime()
|
||||
|
||||
if (g_ticks->second_tick) {
|
||||
getBeats();
|
||||
- w = gdk_string_width(decal_symbol->text_style.font, "@");
|
||||
- w_time = gdk_string_width(decal_text1->text_style.font, s_itime);
|
||||
+ w = gkrellm_gdk_string_width(decal_symbol->text_style.font, "@");
|
||||
+ w_time = gkrellm_gdk_string_width(decal_text1->text_style.font, s_itime);
|
||||
decal_symbol->x_off = ((w + w_time) < decal_symbol->w) ? (decal_text1->w - (w + w_time)) / 2 : 0;
|
||||
decal_text1->x_off = decal_symbol->x_off + w + 2;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ COMMENT= GkrellM2 plugin to monitor multiple mailboxes
|
||||
V= 2.4.3
|
||||
DISTNAME= gkrellm-mailwatch-${V}
|
||||
PKGNAME= gkrellmmailwatch-${V}
|
||||
REVISION= 12
|
||||
REVISION= 13
|
||||
CATEGORIES= mail
|
||||
|
||||
HOMEPAGE= http://gkrellm.luon.net/mailwatch.phtml
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
--- Makefile.orig Tue Dec 24 12:47:34 2002
|
||||
+++ Makefile Tue Dec 24 12:48:21 2002
|
||||
Index: Makefile
|
||||
--- Makefile.orig
|
||||
+++ Makefile
|
||||
@@ -1,18 +1,18 @@
|
||||
# Makefile for the GKrellM mailwatch plugin
|
||||
|
||||
@@ -21,5 +22,5 @@
|
||||
-LFLAGS += -shared
|
||||
+LFLAGS += -shared -pthread
|
||||
|
||||
OBJS = mailwatch.o
|
||||
|
||||
LOCALEDIR := $(DESTDIR)/usr/share/locale
|
||||
PACKAGE ?= gkrellm-mailwatch
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
Index: mailwatch.c
|
||||
--- mailwatch.c.orig
|
||||
+++ mailwatch.c
|
||||
@@ -608,7 +608,7 @@ update_plugin(void) {
|
||||
|
||||
p->statstext->x_off =
|
||||
gkrellm_chart_width() -
|
||||
- gdk_string_width(p->panel->textstyle->font,
|
||||
+ gkrellm_gdk_string_width(p->panel->textstyle->font,
|
||||
buf) -
|
||||
2 * gkrellm_get_style_margins(p->panel->style)->left;
|
||||
|
||||
@@ -3,7 +3,7 @@ COMMENT= GKrellM2 will remind you to do important events
|
||||
V= 2.0.0
|
||||
DISTNAME= gkrellm-reminder-${V}
|
||||
PKGNAME= gkrellmreminder-${V}
|
||||
REVISION= 13
|
||||
REVISION= 14
|
||||
CATEGORIES= misc
|
||||
|
||||
HOMEPAGE= http://members.dslextreme.com/users/billw/gkrellm/Plugins.html\#REMINDER
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
Index: reminder.c
|
||||
|
||||
second, third and fourth chunk: scan/serialize time_t as/into into long
|
||||
long, fixes crashes at runtime due to timestamps corruption.
|
||||
|
||||
Index: reminder.c
|
||||
--- reminder.c.orig
|
||||
+++ reminder.c
|
||||
@@ -87,7 +87,7 @@ static struct reminder_config {
|
||||
@@ -189,3 +188,18 @@ long, fixes crashes at runtime due to timestamps corruption.
|
||||
|
||||
/* delete event from today */
|
||||
num_active--;
|
||||
@@ -3181,12 +3186,12 @@ reminder_draw_panel_text( gint num_active, gint num_to
|
||||
|
||||
ts_old = ts = reminder_text_decal->text_style;
|
||||
|
||||
- w = gdk_string_width( ts.font, buf );
|
||||
+ w = gkrellm_gdk_string_width( ts.font, buf );
|
||||
|
||||
if( w > reminder_text_decal->w )
|
||||
{
|
||||
ts.font = gkrellm_meter_alt_textstyle( style_id )->font;
|
||||
- w = gdk_string_width( ts.font, buf );
|
||||
+ w = gkrellm_gdk_string_width( ts.font, buf );
|
||||
}
|
||||
|
||||
style = gkrellm_meter_style( style_id );
|
||||
|
||||
Reference in New Issue
Block a user