LXDE: add parcellite clipboard manager, gpicview image viewer; libfm, pcmanfm, lxpanel update.

This commit is contained in:
uglyside
2025-06-12 18:10:42 +03:00
parent 1f45adb968
commit a00ff8e3e8
28 changed files with 789 additions and 812 deletions
+5 -19
View File
@@ -6,30 +6,16 @@
from pisi.actionsapi import autotools, pisitools, get
t = ''.join([
'netstatus ',
'netstat ',
'volume ',
'deskno ',
'kbled ',
'batt ',
'xkb ',
'cpufreq ',
'monitors ',
'indicator'
])
def setup():
pisitools.cflags.add("-fcommon -Wno-deprecated-declarations")
autotools.configure("--enable-gtk3 --with-plugins='%s'" % t)
autotools.configure("--enable-gtk3")
pisitools.dosed("libtool", " -shared ", " -Wl,-O2,--as-needed -shared ")
pisitools.dosed("libtool", " -shared ", " -Wl,-O2,--as-needed -shared ")
def build():
autotools.make()
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("AUTHORS", "ChangeLog", "README", "TODO")
pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "TODO")
@@ -1,22 +0,0 @@
From 8a408946dfd2e69ae2cb1066c7fa31f8b7ecc445 Mon Sep 17 00:00:00 2001
From: Ben Walsh <b@wumpster.com>
Date: Mon, 7 Feb 2022 07:02:05 +0000
Subject: [PATCH] Correct icon-grid width under GTK3. Fixes Github #29.
---
src/icon-grid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/icon-grid.c b/src/icon-grid.c
index 2177971e..5948fee6 100644
--- a/src/icon-grid.c
+++ b/src/icon-grid.c
@@ -392,7 +392,7 @@ static void panel_icon_grid_get_preferred_width(GtkWidget *widget,
}
panel_icon_grid_size_request(widget, &requisition);
if (minimal_width)
- *minimal_width = requisition.width;
+ *minimal_width = ig->constrain_width ? 2 : requisition.width;
if (natural_width)
*natural_width = requisition.width;
}
@@ -1,34 +0,0 @@
From 12576de7b83c634437217e23d74954070a1be2d5 Mon Sep 17 00:00:00 2001
From: Ben Walsh <b@wumpster.com>
Date: Sat, 6 Jun 2020 10:38:15 +0100
Subject: [PATCH] Correct panel size under GTK3. Fixes Sourceforge #773.
---
src/panel.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/panel.c b/src/panel.c
index 45188dbe..2b5fc9be 100644
--- a/src/panel.c
+++ b/src/panel.c
@@ -293,6 +293,12 @@ lxpanel_get_preferred_height (GtkWidget *widget,
if (natural_height)
*natural_height = requisition.height;
}
+
+static GtkSizeRequestMode
+lxpanel_get_request_mode (GtkWidget *widget)
+{
+ return GTK_SIZE_REQUEST_CONSTANT_SIZE;
+}
#endif
static void lxpanel_size_allocate(GtkWidget *widget, GtkAllocation *a)
@@ -413,6 +419,7 @@ static void lxpanel_class_init(PanelToplevelClass *klass)
#if GTK_CHECK_VERSION(3, 0, 0)
widget_class->get_preferred_width = lxpanel_get_preferred_width;
widget_class->get_preferred_height = lxpanel_get_preferred_height;
+ widget_class->get_request_mode = lxpanel_get_request_mode;
#else
widget_class->size_request = lxpanel_size_request;
#endif
@@ -1,31 +0,0 @@
diff -ru a/plugins/volumealsa/volumealsa.c b/plugins/volumealsa/volumealsa.c
--- a/plugins/volumealsa/volumealsa.c 2021-01-29 23:33:27.000000000 +0100
+++ b/plugins/volumealsa/volumealsa.c 2021-03-21 13:49:00.124807793 +0100
@@ -794,10 +794,25 @@
gdouble val = gtk_range_get_value(GTK_RANGE(vol->volume_scale));
/* Dispatch on scroll direction to update the value. */
- if ((evt->direction == GDK_SCROLL_UP) || (evt->direction == GDK_SCROLL_LEFT))
+ switch (evt->direction)
+ {
+ case GDK_SCROLL_UP: ;
+ case GDK_SCROLL_LEFT: ;
val += 2;
- else
+ break;
+ case GDK_SCROLL_DOWN: ;
+ case GDK_SCROLL_RIGHT: ;
val -= 2;
+ break;
+ case GDK_SCROLL_SMOOTH: ;
+ gdouble delta_x;
+ gdouble delta_y;
+ gdk_event_get_scroll_deltas(evt, &delta_x, &delta_y);
+ if (delta_y > 0)
+ val -= 2;
+ else
+ val += 2;
+ }
/* Reset the state of the vertical scale. This provokes a "value_changed" event. */
gtk_range_set_value(GTK_RANGE(vol->volume_scale), CLAMP((int)val, 0, 100));
@@ -1,20 +0,0 @@
--- lxpanel-0.10.1/plugins/task-button.c 2021-01-29 23:28:51.000000000 +0100
+++ lxpanel-0.10.1/plugins/task-button.c.new 2022-09-08 12:08:46.579475426 +0200
@@ -487,6 +487,9 @@ static void task_raise_window(TaskButton
if ((tk->desktop != ALL_WORKSPACES) && (tk->desktop != tb->desktop))
Xclimsgx(xscreen, RootWindowOfScreen(xscreen), a_NET_CURRENT_DESKTOP, tk->desktop, 0, 0, 0, 0);
+#if GTK_CHECK_VERSION(3, 0, 0)
+ Xclimsgx(xscreen, tk->win, a_NET_ACTIVE_WINDOW, 2, time, 0, 0, 0);
+#else
/* Raise the window. We can use NET_ACTIVE_WINDOW if the window manager supports it.
* Otherwise, do it the old way with XMapRaised and XSetInputFocus. */
if (tb->flags.use_net_active)
@@ -510,6 +513,7 @@ static void task_raise_window(TaskButton
if (attr.map_state == IsViewable)
XSetInputFocus(xdisplay, tk->win, RevertToNone, time);
}
+#endif
/* Change viewport if needed. */
XWindowAttributes xwa;
@@ -1,6 +1,6 @@
diff -Naurp lxpanel-0.10.1.orig/plugins/batt/batt.c lxpanel-0.10.1/plugins/batt/batt.c
--- lxpanel-0.10.1.orig/plugins/batt/batt.c 2019-03-01 00:31:41.000000000 +0100
+++ lxpanel-0.10.1/plugins/batt/batt.c 2022-10-14 11:14:57.009987046 +0200
--- lxpanel-0.10.1.orig/plugins/batt/batt.c 2019-03-01 00:31:41.000000000 +0100
+++ lxpanel-0.10.1/plugins/batt/batt.c 2022-10-14 11:14:57.009987046 +0200
@@ -446,6 +446,23 @@ static void updateSizes(lx_battery *b)
b->width = b->length;
}
@@ -37,8 +37,8 @@ diff -Naurp lxpanel-0.10.1.orig/plugins/batt/batt.c lxpanel-0.10.1/plugins/batt/
}
diff -Naurp lxpanel-0.10.1.orig/plugins/launch-button.c lxpanel-0.10.1/plugins/launch-button.c
--- lxpanel-0.10.1.orig/plugins/launch-button.c 2019-01-13 22:35:07.000000000 +0100
+++ lxpanel-0.10.1/plugins/launch-button.c 2022-10-14 11:14:57.009987046 +0200
--- lxpanel-0.10.1.orig/plugins/launch-button.c 2019-01-13 22:35:07.000000000 +0100
+++ lxpanel-0.10.1/plugins/launch-button.c 2022-10-14 11:14:57.009987046 +0200
@@ -39,6 +39,24 @@ struct _LaunchButton
};
@@ -75,8 +75,8 @@ diff -Naurp lxpanel-0.10.1.orig/plugins/launch-button.c lxpanel-0.10.1/plugins/l
}
diff -Naurp lxpanel-0.10.1.orig/plugins/monitors/monitors.c lxpanel-0.10.1/plugins/monitors/monitors.c
--- lxpanel-0.10.1.orig/plugins/monitors/monitors.c 2019-01-13 22:37:42.000000000 +0100
+++ lxpanel-0.10.1/plugins/monitors/monitors.c 2022-10-14 11:14:57.010987046 +0200
--- lxpanel-0.10.1.orig/plugins/monitors/monitors.c 2019-01-13 22:37:42.000000000 +0100
+++ lxpanel-0.10.1/plugins/monitors/monitors.c 2022-10-14 11:14:57.010987046 +0200
@@ -220,6 +220,24 @@ monitor_set_foreground_color(MonitorsPlu
* End of monitor functions *
******************************************************************************/
@@ -123,8 +123,8 @@ diff -Naurp lxpanel-0.10.1.orig/plugins/monitors/monitors.c lxpanel-0.10.1/plugi
}
}
diff -Naurp lxpanel-0.10.1.orig/plugins/netstat/statusicon.c lxpanel-0.10.1/plugins/netstat/statusicon.c
--- lxpanel-0.10.1.orig/plugins/netstat/statusicon.c 2019-01-13 22:35:07.000000000 +0100
+++ lxpanel-0.10.1/plugins/netstat/statusicon.c 2022-10-14 11:23:56.563275687 +0200
--- lxpanel-0.10.1.orig/plugins/netstat/statusicon.c 2019-01-13 22:35:07.000000000 +0100
+++ lxpanel-0.10.1/plugins/netstat/statusicon.c 2022-10-14 11:23:56.563275687 +0200
@@ -26,6 +26,24 @@
#include "statusicon.h"
#include "misc.h"
@@ -162,8 +162,8 @@ diff -Naurp lxpanel-0.10.1.orig/plugins/netstat/statusicon.c lxpanel-0.10.1/plug
}
diff -Naurp lxpanel-0.10.1.orig/plugins/task-button.c lxpanel-0.10.1/plugins/task-button.c
--- lxpanel-0.10.1.orig/plugins/task-button.c 2022-10-12 13:07:42.368701277 +0200
+++ lxpanel-0.10.1/plugins/task-button.c 2022-10-14 11:17:37.905073119 +0200
--- lxpanel-0.10.1.orig/plugins/task-button.c 2022-10-12 13:07:42.368701277 +0200
+++ lxpanel-0.10.1/plugins/task-button.c 2022-10-14 11:17:37.905073119 +0200
@@ -1135,6 +1135,24 @@ static void task_update_icon(TaskButton
task, NULL);
}
@@ -212,8 +212,8 @@ diff -Naurp lxpanel-0.10.1.orig/plugins/task-button.c lxpanel-0.10.1/plugins/tas
}
diff -Naurp lxpanel-0.10.1.orig/plugins/weather/weatherwidget.c lxpanel-0.10.1/plugins/weather/weatherwidget.c
--- lxpanel-0.10.1.orig/plugins/weather/weatherwidget.c 2019-02-22 22:21:13.000000000 +0100
+++ lxpanel-0.10.1/plugins/weather/weatherwidget.c 2022-10-14 11:14:57.011987047 +0200
--- lxpanel-0.10.1.orig/plugins/weather/weatherwidget.c 2019-02-22 22:21:13.000000000 +0100
+++ lxpanel-0.10.1/plugins/weather/weatherwidget.c 2022-10-14 11:14:57.011987047 +0200
@@ -452,6 +452,24 @@ gtk_weather_size_allocate(GtkWidget * wi
gtk_widget_size_allocate(GTK_WIDGET(priv->hbox), &box_allocation);
}
@@ -251,8 +251,8 @@ diff -Naurp lxpanel-0.10.1.orig/plugins/weather/weatherwidget.c lxpanel-0.10.1/p
}
diff -Naurp lxpanel-0.10.1.orig/src/misc.c lxpanel-0.10.1/src/misc.c
--- lxpanel-0.10.1.orig/src/misc.c 2019-01-13 22:35:07.000000000 +0100
+++ lxpanel-0.10.1/src/misc.c 2022-10-14 11:55:44.518153250 +0200
--- lxpanel-0.10.1.orig/src/misc.c 2019-01-13 22:35:07.000000000 +0100
+++ lxpanel-0.10.1/src/misc.c 2022-10-14 11:55:44.518153250 +0200
@@ -1258,6 +1258,11 @@ static gboolean fb_button_enter(GtkImage
/* Handler for "leave-notify-event" signal on image that has highlighting requested. */
static gboolean fb_button_leave(GtkImage * widget, GdkEventCrossing * event, gpointer user_data)
@@ -266,8 +266,8 @@ diff -Naurp lxpanel-0.10.1.orig/src/misc.c lxpanel-0.10.1/src/misc.c
{
ImgData * data = (ImgData *) g_object_get_qdata(G_OBJECT(widget), img_data_id);
diff -Naurp lxpanel-0.10.1.orig/src/panel.c lxpanel-0.10.1/src/panel.c
--- lxpanel-0.10.1.orig/src/panel.c 2022-10-12 13:07:42.360701278 +0200
+++ lxpanel-0.10.1/src/panel.c 2022-10-14 11:14:57.012987047 +0200
--- lxpanel-0.10.1.orig/src/panel.c 2022-10-12 13:07:42.360701278 +0200
+++ lxpanel-0.10.1/src/panel.c 2022-10-14 11:14:57.012987047 +0200
@@ -401,6 +401,14 @@ static gboolean lxpanel_button_press(Gtk
return FALSE;
}
@@ -292,8 +292,8 @@ diff -Naurp lxpanel-0.10.1.orig/src/panel.c lxpanel-0.10.1/src/panel.c
signals[ICON_SIZE_CHANGED] =
g_signal_new("icon-size-changed",
diff -Naurp lxpanel-0.10.1.orig/src/plugin.c lxpanel-0.10.1/src/plugin.c
--- lxpanel-0.10.1.orig/src/plugin.c 2021-01-29 23:28:51.000000000 +0100
+++ lxpanel-0.10.1/src/plugin.c 2022-10-14 11:14:57.012987047 +0200
--- lxpanel-0.10.1.orig/src/plugin.c 2021-01-29 23:28:51.000000000 +0100
+++ lxpanel-0.10.1/src/plugin.c 2022-10-14 11:14:57.012987047 +0200
@@ -499,6 +499,24 @@ static void on_size_allocate(GtkWidget *
// _queue_panel_calculate_size(p);
}
+98 -96
View File
@@ -1,104 +1,106 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>lxpanel</Name>
<Homepage>https://www.lxde.org/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPL-2</License>
<IsA>app:gui</IsA>
<PartOf>desktop.lxde</PartOf>
<Summary>Lightweight X11 desktop panel for LXDE.</Summary>
<Description>lxpanel is a lightweight X11 desktop panel for LXDE.</Description>
<Archive sha1sum="393b78dbbb76518a99549411131c35da5bfed0fa" type="tarxz">
mirrors://sourceforge/lxde/lxpanel-0.10.1.tar.xz
</Archive>
<BuildDependencies>
<Dependency>intltool</Dependency>
<Dependency>atk-devel</Dependency>
<Dependency>gtk3-devel</Dependency>
<Dependency>curl-devel</Dependency>
<Dependency>cairo-devel</Dependency>
<Dependency>pango-devel</Dependency>
<Dependency>libxml2-devel</Dependency>
<Dependency>alsa-lib-devel</Dependency>
<Dependency>libwnck3-devel</Dependency>
<Dependency>keybinder-devel</Dependency>
<Dependency>fontconfig-devel</Dependency>
<Dependency>menu-cache-devel</Dependency>
<Dependency>gdk-pixbuf-devel</Dependency>
<Dependency>wireless-tools-devel</Dependency>
<Dependency>libfm-devel</Dependency>
<Dependency>libfm-extra-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">Correct_panel_size_under_GTK3.patch</Patch>
<Patch level="1">Correct_icon_grid_width_under_GTK3.patch</Patch>
<Patch level="1">mageia/mga-fix-deiconify.patch</Patch>
<Patch level="1">mageia/mga-partial-workaround-for-issue-41.patch</Patch>
<Patch level="1">lxpanel-0.10.1-volume-plugin-fix-mouse-scrolling.patch</Patch>
</Patches>
</Source>
<Source>
<Name>lxpanel</Name>
<Homepage>https://github.com/lxde/lxpanel</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPL-2</License>
<IsA>app:gui</IsA>
<PartOf>desktop.lxde</PartOf>
<Summary>Lightweight X11 desktop panel for LXDE.</Summary>
<Description>lxpanel is a lightweight X11 desktop panel for LXDE.</Description>
<Archive sha1sum="59d2eb0df9e4fedbf7e8e34f70fdcf34d750d17f" type="tarxz">https://github.com/lxde/releases/raw/master/releases/lxpanel-0.11.1.tar.xz</Archive>
<BuildDependencies>
<Dependency>intltool</Dependency>
<Dependency>atk-devel</Dependency>
<Dependency>gtk3-devel</Dependency>
<Dependency>curl-devel</Dependency>
<Dependency>cairo-devel</Dependency>
<Dependency>pango-devel</Dependency>
<Dependency>libxml2-devel</Dependency>
<Dependency>alsa-lib-devel</Dependency>
<Dependency>libwnck3-devel</Dependency>
<Dependency>keybinder-devel</Dependency>
<Dependency>fontconfig-devel</Dependency>
<Dependency>menu-cache-devel</Dependency>
<Dependency>gdk-pixbuf-devel</Dependency>
<Dependency>wireless-tools-devel</Dependency>
<Dependency>libfm-devel</Dependency>
<Dependency>libfm-extra-devel</Dependency>
</BuildDependencies>
<Patches>
<!-- <Patch level="1"></Patch> -->
<Patch level="1">mga-partial-workaround-for-issue-41.patch</Patch>
</Patches>
</Source>
<Package>
<Name>lxpanel</Name>
<RuntimeDependencies>
<Dependency>atk</Dependency>
<Dependency>gtk3</Dependency>
<Dependency>curl</Dependency>
<Dependency>glib2</Dependency>
<Dependency>cairo</Dependency>
<Dependency>pango</Dependency>
<Dependency>libX11</Dependency>
<Dependency>libxml2</Dependency>
<Dependency>alsa-lib</Dependency>
<Dependency>libwnck3</Dependency>
<Dependency>keybinder</Dependency>
<Dependency>menu-cache</Dependency>
<Dependency>gdk-pixbuf</Dependency>
<Dependency>fontconfig</Dependency>
<Dependency>lxmenu-data</Dependency>
<Dependency>wireless-tools</Dependency>
<Dependency>libfm</Dependency>
<Dependency>libfm-extra</Dependency>
<Dependency>network-manager-applet</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc/xdg/lxpanel</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="data">/usr/share</Path>
<Path fileType="localedata">/usr/share/locale</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<Package>
<Name>lxpanel</Name>
<RuntimeDependencies>
<Dependency>atk</Dependency>
<Dependency>gtk3</Dependency>
<Dependency>curl</Dependency>
<Dependency>glib2</Dependency>
<Dependency>cairo</Dependency>
<Dependency>pango</Dependency>
<Dependency>libX11</Dependency>
<Dependency>libxml2</Dependency>
<Dependency>alsa-lib</Dependency>
<Dependency>libwnck3</Dependency>
<Dependency>keybinder</Dependency>
<Dependency>menu-cache</Dependency>
<Dependency>gdk-pixbuf</Dependency>
<Dependency>fontconfig</Dependency>
<Dependency>lxmenu-data</Dependency>
<Dependency>wireless-tools</Dependency>
<Dependency>libfm</Dependency>
<Dependency>libfm-extra</Dependency>
<Dependency>network-manager-applet</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc/xdg/lxpanel</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="data">/usr/share</Path>
<Path fileType="localedata">/usr/share/locale</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<Package>
<Name>lxpanel-devel</Name>
<RuntimeDependencies>
<Dependency release="current">lxpanel</Dependency>
<Dependency>gtk3-devel</Dependency>
<Dependency>glib2-devel</Dependency>
<Dependency>libfm-devel</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
</Files>
</Package>
<Package>
<Name>lxpanel-devel</Name>
<RuntimeDependencies>
<Dependency release="current">lxpanel</Dependency>
<Dependency>gtk3-devel</Dependency>
<Dependency>glib2-devel</Dependency>
<Dependency>libfm-devel</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2022-11-16</Date>
<Version>0.10.1</Version>
<Comment>First build.</Comment>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Update>
</History>
<History>
<Update release="2">
<Date>2025-06-12</Date>
<Version>0.11.1</Version>
<Comment>Version bump.</Comment>
<Name>Kamil Atlı</Name>
<Email>suvari@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2022-11-16</Date>
<Version>0.10.1</Version>
<Comment>First build.</Comment>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Update>
</History>
</PISI>