Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Leap:42.3:Staging:C:DVD
plasma5-desktop
0003-Add-layout-template-to-create-an-Applicati...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0003-Add-layout-template-to-create-an-Application-Menu-Ba.patch of Package plasma5-desktop
From 6f35581953940c9b93a8a8a29e0cb8e7255875e6 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik <kde@privat.broulik.de> Date: Wed, 11 Jan 2017 15:09:37 +0100 Subject: [PATCH 3/5] Add layout template to create an "Application Menu Bar" This allows to create a panel with an application menu widget already in it. Differential Revision: https://phabricator.kde.org/D4083 --- layout-templates/CMakeLists.txt | 1 + .../org.kde.plasma.desktop.appmenubar/contents/layout.js | 5 +++++ .../org.kde.plasma.desktop.appmenubar/metadata.desktop | 16 ++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 layout-templates/org.kde.plasma.desktop.appmenubar/contents/layout.js create mode 100644 layout-templates/org.kde.plasma.desktop.appmenubar/metadata.desktop diff --git a/layout-templates/CMakeLists.txt b/layout-templates/CMakeLists.txt index d6718adc..ff840bb5 100644 --- a/layout-templates/CMakeLists.txt +++ b/layout-templates/CMakeLists.txt @@ -1,2 +1,3 @@ plasma_install_package(org.kde.plasma.desktop.defaultPanel org.kde.plasma.desktop.defaultPanel layout-templates layout-template) plasma_install_package(org.kde.plasma.desktop.emptyPanel org.kde.plasma.desktop.emptyPanel layout-templates layout-template) +plasma_install_package(org.kde.plasma.desktop.appmenubar org.kde.plasma.desktop.appmenubar layout-templates layout-template) diff --git a/layout-templates/org.kde.plasma.desktop.appmenubar/contents/layout.js b/layout-templates/org.kde.plasma.desktop.appmenubar/contents/layout.js new file mode 100644 index 00000000..9f415818 --- /dev/null +++ b/layout-templates/org.kde.plasma.desktop.appmenubar/contents/layout.js @@ -0,0 +1,5 @@ +var panel = new Panel +panel.location = "top"; +panel.height = Math.round(gridUnit * 1.5); + +panel.addWidget("org.kde.plasma.appmenu"); diff --git a/layout-templates/org.kde.plasma.desktop.appmenubar/metadata.desktop b/layout-templates/org.kde.plasma.desktop.appmenubar/metadata.desktop new file mode 100644 index 00000000..aac1b7dc --- /dev/null +++ b/layout-templates/org.kde.plasma.desktop.appmenubar/metadata.desktop @@ -0,0 +1,16 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Application Menu Bar +Type=Service +ServiceTypes=Plasma/LayoutTemplate +X-Plasma-Shell=plasmashell +X-Plasma-ContainmentCategories=panel +X-KDE-PluginInfo-Author=Kai Uwe Broulik +X-KDE-PluginInfo-Email=kde@privat.broulik.de +X-KDE-PluginInfo-Name=org.kde.plasma.desktop.appmenubar +X-KDE-PluginInfo-Version=1.0 +X-KDE-PluginInfo-Website=http://plasma.kde.org/ +X-KDE-PluginInfo-Category= +X-KDE-PluginInfo-Depends= +X-KDE-PluginInfo-License=GPL +X-KDE-PluginInfo-EnabledByDefault=true -- 2.11.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor