Dominique Leuenberger 2016-03-07 12:28:23 +00:00 committed by Git OBS Bridge
parent 5183dd5b9b
commit c706290987
5 changed files with 60 additions and 242 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0e0e4994c568f8091c9424e4aab35645436a9ff341c00b1cd1eab0ada0bf61ce
size 316716

View File

@ -1,213 +0,0 @@
From 4655fb0affb4753eade7d6c92bb699e9d7dd3fb5 Mon Sep 17 00:00:00 2001
From: Eike Hein <hein@kde.org>
Date: Mon, 5 Nov 2012 23:06:26 +0100
Subject: [PATCH] Add an option for keeping the window open after the last
session closes.
BUG:308850
---
app/config/behaviorsettings.ui | 107 ++++++++++++++++++++++++-----------------
app/config/yakuake.kcfg | 5 ++
app/mainwindow.cpp | 2 +-
3 files changed, 68 insertions(+), 46 deletions(-)
diff --git a/app/config/behaviorsettings.ui b/app/config/behaviorsettings.ui
index 2fce1c7..3759f7b 100644
--- a/app/config/behaviorsettings.ui
+++ b/app/config/behaviorsettings.ui
@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>364</width>
- <height>308</height>
+ <width>356</width>
+ <height>289</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
@@ -20,31 +20,49 @@
<string comment="@title:group Group box label">General</string>
</property>
<layout class="QGridLayout" name="gridLayout">
- <item row="0" column="0" colspan="2">
- <widget class="QCheckBox" name="kcfg_OpenAfterStart">
+ <item row="6" column="0" colspan="2">
+ <widget class="QCheckBox" name="kcfg_FocusFollowsMouse">
<property name="text">
- <string comment="@option:check">Open window after program start</string>
+ <string comment="@option:check">Focus terminals when the mouse pointer is moved over them</string>
</property>
</widget>
</item>
- <item row="1" column="0" colspan="2">
- <widget class="QCheckBox" name="kcfg_PollMouse">
+ <item row="4" column="1">
+ <widget class="QCheckBox" name="kcfg_ToggleToFocus">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="whatsThis">
- <string comment="@info:whatsthis">If this option is enabled, the window will automatically open when the mouse pointer is moved to the same edge of the screen that it would open on when using the shortcut.</string>
+ <string comment="@info:whatsthis">If this option is enabled, the shortcut normally used to open and retract the window will give it focus, rather than close it, if it has previously lost focus. Unless the window is set to show on all virtual desktops, this may cause the window manager to switch to the virtual desktop it currently resides on.</string>
</property>
<property name="text">
- <string comment="@option:check">Open window when the mouse pointer touches the screen edge</string>
+ <string comment="@option:check">Use Open/Retract action to focus window</string>
</property>
</widget>
</item>
- <item row="2" column="0" colspan="2">
- <widget class="QCheckBox" name="kcfg_KeepOpen">
+ <item row="3" column="1">
+ <widget class="QCheckBox" name="kcfg_KeepAbove">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="text">
- <string comment="@option:check">Keep window open when it loses focus</string>
+ <string comment="@option:check">Keep window above other windows</string>
</property>
</widget>
</item>
- <item row="3" column="0">
+ <item row="4" column="0">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
@@ -60,23 +78,31 @@
</property>
</spacer>
</item>
- <item row="3" column="1">
- <widget class="QCheckBox" name="kcfg_KeepAbove">
- <property name="enabled">
- <bool>false</bool>
+ <item row="0" column="0" colspan="2">
+ <widget class="QCheckBox" name="kcfg_OpenAfterStart">
+ <property name="text">
+ <string comment="@option:check">Open window after program start</string>
</property>
- <property name="sizePolicy">
- <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
+ </widget>
+ </item>
+ <item row="1" column="0" colspan="2">
+ <widget class="QCheckBox" name="kcfg_PollMouse">
+ <property name="whatsThis">
+ <string comment="@info:whatsthis">If this option is enabled, the window will automatically open when the mouse pointer is moved to the same edge of the screen that it would open on when using the shortcut.</string>
</property>
<property name="text">
- <string comment="@option:check">Keep window above other windows</string>
+ <string comment="@option:check">Open window when the mouse pointer touches the screen edge</string>
</property>
</widget>
</item>
- <item row="4" column="0">
+ <item row="2" column="0" colspan="2">
+ <widget class="QCheckBox" name="kcfg_KeepOpen">
+ <property name="text">
+ <string comment="@option:check">Keep window open when it loses focus</string>
+ </property>
+ </widget>
+ </item>
+ <item row="3" column="0">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
@@ -92,29 +118,10 @@
</property>
</spacer>
</item>
- <item row="4" column="1">
- <widget class="QCheckBox" name="kcfg_ToggleToFocus">
- <property name="enabled">
- <bool>false</bool>
- </property>
- <property name="sizePolicy">
- <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="whatsThis">
- <string comment="@info:whatsthis">If this option is enabled, the shortcut normally used to open and retract the window will give it focus, rather than close it, if it has previously lost focus. Unless the window is set to show on all virtual desktops, this may cause the window manager to switch to the virtual desktop it currently resides on.</string>
- </property>
- <property name="text">
- <string comment="@option:check">Use Open/Retract action to focus window</string>
- </property>
- </widget>
- </item>
<item row="5" column="0" colspan="2">
- <widget class="QCheckBox" name="kcfg_FocusFollowsMouse">
+ <widget class="QCheckBox" name="kcfg_KeepOpenAfterLastSessionCloses">
<property name="text">
- <string comment="@option:check">Focus terminals when the mouse pointer is moved over them</string>
+ <string extracomment="@option:check">Keep window open after the last session is closed</string>
</property>
</widget>
</item>
@@ -152,6 +159,16 @@
</item>
</layout>
</widget>
+ <tabstops>
+ <tabstop>kcfg_OpenAfterStart</tabstop>
+ <tabstop>kcfg_PollMouse</tabstop>
+ <tabstop>kcfg_KeepOpen</tabstop>
+ <tabstop>kcfg_KeepAbove</tabstop>
+ <tabstop>kcfg_ToggleToFocus</tabstop>
+ <tabstop>kcfg_KeepOpenAfterLastSessionCloses</tabstop>
+ <tabstop>kcfg_FocusFollowsMouse</tabstop>
+ <tabstop>kcfg_ConfirmQuit</tabstop>
+ </tabstops>
<resources/>
<connections>
<connection>
diff --git a/app/config/yakuake.kcfg b/app/config/yakuake.kcfg
index e70418b..a71e9b3 100644
--- a/app/config/yakuake.kcfg
+++ b/app/config/yakuake.kcfg
@@ -41,6 +41,11 @@
<whatsthis context="@info:whatsthis">Whether to keep the application window open when it loses focus.</whatsthis>
<default>true</default>
</entry>
+ <entry name="KeepOpenAfterLastSessionCloses" type="Bool">
+ <label context="@label">Keep window open after last session closes</label>
+ <whatsthis context="@info:whatsthis">Whether to keep the application window open after the last session is closed.</whatsthis>
+ <default>false</default>
+ </entry>
<entry name="ToggleToFocus" type="Bool">
<label context="@label">Use open/retract shortcut to focus window</label>
<whatsthis context="@info:whatsthis">Whether the open/retract keyboard shortcut can be used to focus the application window when it is already open.</whatsthis>
diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp
index 3f51911..22b374d 100644
--- a/app/mainwindow.cpp
+++ b/app/mainwindow.cpp
@@ -538,7 +538,7 @@ void MainWindow::handleTerminalSilence(Terminal* terminal)
void MainWindow::handleLastTabClosed()
{
- if (isVisible())
+ if (isVisible() && !Settings::keepOpenAfterLastSessionCloses())
toggleWindowState();
}
--
1.8.1.4

3
yakuake-3.0.2.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e541e725246e20b755d8c9314185739f2439e18b884f6ae6f977343443948d6d
size 443516

View File

@ -1,3 +1,24 @@
-------------------------------------------------------------------
Thu Mar 3 14:38:16 UTC 2016 - tittiatcoke@gmail.com
- Update to 3.0.2
* Also install the AppData file.
-------------------------------------------------------------------
Thu Mar 3 14:01:41 UTC 2016 - tittiatcoke@gmail.com
- Update to 3.0.1
* Fixed installation and integratin of hicolor application icon
-------------------------------------------------------------------
Thu Mar 3 13:51:33 UTC 2016 - tittiatcoke@gmail.com
- Update to 3.0
* Yakuake was ported to KDE Frameworks 5 and Qt 5
* A new default skin follows the Plasma 5 Breeze design
- Drop yakuake-2.9.9_no-close.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Oct 4 12:21:02 UTC 2015 - wbauer@tmo.at Sun Oct 4 12:21:02 UTC 2015 - wbauer@tmo.at

View File

@ -1,7 +1,7 @@
# #
# spec file for package yakuake # spec file for package yakuake
# #
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,30 +17,40 @@
Name: yakuake Name: yakuake
Version: 2.9.9 Version: 3.0.2
Release: 0 Release: 0
Summary: Terminal for KDE Summary: Terminal for KDE
License: GPL-2.0+ License: GPL-2.0+
Group: System/GUI/KDE Group: System/GUI/KDE
Url: https://yakuake.kde.org Url: https://yakuake.kde.org
Source: http://download.kde.org/stable/yakuake/%{version}/src/%{name}-%{version}.tar.xz Source: http://download.kde.org/stable/yakuake/%{version}/src/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM yakuake-2.9.9_no-close.patch kde#308850 peter@rmk2.org -- patch comes from upstream
Patch0: yakuake-2.9.9_no-close.patch
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: libkde4-devel BuildRequires: karchive-devel
BuildRequires: xz BuildRequires: kconfig-devel
%if 0%{?suse_version} > 1320 || 0%{?is_opensuse} BuildRequires: kcoreaddons-devel
Requires: konsole4-part BuildRequires: kcrash-devel
%else BuildRequires: kdbusaddons-devel
Requires: konsole BuildRequires: kf5-filesystem
%endif BuildRequires: kglobalaccel-devel
BuildRequires: ki18n-devel
BuildRequires: kiconthemes-devel
BuildRequires: kio-devel
BuildRequires: knewstuff-devel
BuildRequires: knotifications-devel
BuildRequires: knotifyconfig-devel
BuildRequires: kparts-devel
BuildRequires: kwidgetsaddons-devel
BuildRequires: kwindowsystem-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
BuildRequires: pkgconfig(Qt5X11Extras) >= 5.2.0
Requires: konsole-part > 15.12
Recommends: konsole > 15.12
Requires(post): desktop-file-utils Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils Requires(postun): desktop-file-utils
Recommends: %{name}-lang = %{version} Recommends: %{name}-lang = %{version}
Provides: kde4-yakuake = %{version}
Obsoletes: kde4-yakuake < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{kde4_runtime_requires}
%description %description
Yakuake is a retractable KDE Terminal Emulator. Yakuake is a retractable KDE Terminal Emulator.
@ -49,17 +59,14 @@ Yakuake is a retractable KDE Terminal Emulator.
%prep %prep
%setup -q %setup -q
%patch0 -p1
%build %build
%cmake_kde4 -d build %cmake_kf5 -d build
%make_jobs %make_jobs
%install %install
cd build %kf5_makeinstall -C build
%make_install %suse_update_desktop_file -G "Terminal Program" org.kde.yakuake System TerminalEmulator
%suse_update_desktop_file -G "Terminal Program" yakuake System TerminalEmulator
cd ..
%find_lang %{name} %find_lang %{name}
%fdupes -s %{buildroot} %fdupes -s %{buildroot}
@ -74,12 +81,15 @@ Yakuake is a retractable KDE Terminal Emulator.
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc README AUTHORS ChangeLog COPYING COPYING.DOC NEWS %doc README AUTHORS ChangeLog COPYING COPYING.DOC NEWS
%{_kde4_applicationsdir}/yakuake.desktop %{_kf5_bindir}/yakuake
%{_kde4_appsdir}/yakuake %config %{_kf5_configdir}/yakuake.knsrc
%{_kde4_bindir}/yakuake %{_kf5_applicationsdir}/org.kde.yakuake.desktop
%{_kde4_iconsdir}/hicolor/ %{_kf5_notifydir}/
%{_kde4_appsdir}/kconf_update/ %dir %{_kf5_sharedir}/icons/hicolor/256x256
%{_kde4_configdir}/yakuake.knsrc %dir %{_kf5_sharedir}/icons/hicolor/256x256/apps
%{_kf5_sharedir}/icons/hicolor/*/*/*.*
%{_kf5_sharedir}/yakuake/
%{_datadir}/appdata/
%files lang -f %{name}.lang %files lang -f %{name}.lang
%defattr(-,root,root) %defattr(-,root,root)