From 43ed28de5288e85ec0ed59ba8e5db6b39c6e6f03 Mon Sep 17 00:00:00 2001 From: arcan1s Date: Sun, 10 Aug 2014 16:17:00 +0400 Subject: [PATCH] allow applet to move into notifications area --- PKGBUILD | 2 +- sources/plasmoid/netctl.cpp | 1 + sources/plasmoid/plasma-applet-netctl.desktop | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 47056dd..46f6a0a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -13,7 +13,7 @@ license=('GPL3') makedepends=('automoc4' 'cmake' 'kdelibs' 'qt5-base' 'qt5-tools') source=("https://github.com/arcan1s/netctl-gui/releases/download/V.${pkgver}/${pkgbase}-${pkgver}-src.tar.xz") install="${pkgbase}.install" -md5sums=('fe694c52999c0470f5afbab16fc1e6c6') +md5sums=('9a47346e890e7c4458602d47751adf17') prepare() { diff --git a/sources/plasmoid/netctl.cpp b/sources/plasmoid/netctl.cpp index 2612995..7c86822 100644 --- a/sources/plasmoid/netctl.cpp +++ b/sources/plasmoid/netctl.cpp @@ -70,6 +70,7 @@ Netctl::Netctl(QObject *parent, const QVariantList &args) debug = false; setBackgroundHints(DefaultBackground); + setAspectRatioMode(Plasma::IgnoreAspectRatio); setHasConfigurationInterface(true); connect(this, SIGNAL(activate()), this, SLOT(showGui())); // text format init diff --git a/sources/plasmoid/plasma-applet-netctl.desktop b/sources/plasmoid/plasma-applet-netctl.desktop index 543c0e0..ef2656a 100644 --- a/sources/plasmoid/plasma-applet-netctl.desktop +++ b/sources/plasmoid/plasma-applet-netctl.desktop @@ -5,7 +5,7 @@ Comment=Plasmoid for netctl Type=Service Icon=netctl-gui-widget -X-KDE-ServiceTypes=Plasma/Applet +X-KDE-ServiceTypes=Plasma/Applet,Plasma/PopupApplet X-KDE-Library=plasma_applet_netctl X-KDE-PluginInfo-Author=Evgeniy Alekseev aka arcanis @@ -17,3 +17,4 @@ X-KDE-PluginInfo-Category=Network X-KDE-PluginInfo-Depends= X-KDE-PluginInfo-License=GPLv3 X-KDE-PluginInfo-EnabledByDefault=true +X-Plasma-NotificationArea=true