-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   
 
Home
Apps
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login

-
- News . 
0
votes
click to vote up

fewer "omg what did i just do?!" in plasma desktop's panel


Published Nov 7 2013 via RSS

In Plasma Desktop, some people (clicking wildly, apparently) sometimes right-click click in a random spot of the panel and get the widget's context menu. This includes a "Remove this " entry with a big red "x" icon, but they click on it anyways and *poof* .. there goes their window list (or whatever).

Since Plasma Desktop 4.x is in long term maintenance mode, which means we're supposed to be making it more stable and reliable, I figured I'd spend a few minutes thinking about this problem. So I set aside one of my morning showers for this. Now you know what I do in the shower. Other than clean myself, of course. :) This probably explains my moderately frequent half-hour showers.

So ... exercise in problem solving time! Do we:

a) Always start Plasma Desktop in "Locked" mode?
Bad answer: it means that to do almost *anything* with your desktop you now need to unlock it. Many features become hidden and the user is robbed of discovery opportunities.

b) Lock just the panels!

Not only does (a) apply, but this introduces huge complexity .. and not just in the code (where now different containers need to be treated specially) but also for the poor end user who now has to figure out how to lock/unlock every freaking part of their desktop separately.

c) Allow the panel to tell the widgets when not to show their close item in the context menu. Then, when you click on the toolbox icon which gives you access to various configuration settings, have the panel tell the widgets that they should now show the remove item.

We have a winner! 

Apparently it's not the most obvious idea in the world as people have been clamoring for (a) and/or (b) for some time and to my knowledge *nobody* has suggested (c). As a maintainer, my first job is to say "no" to ideas that will have undesirable side-effects. My rather less important second job is to identify (or in a worst-case-scenario, *gasp* come up with ;) ideas that will work .. or at least not fail. (The two are not always the same thing.)

I've been saying "no" to (a) and (b) for a while now, while suggesting that if someone can come up with a better idea, let me know. Well, it ended up in the shower and answer (c) was the result.

How much work would this be? One line in libplasma (checking a value) and three lines in the plasma-desktop shell (toggling that value in time to the configuration UI). Yes, a whopping four lines of code.

This demonstrates two things:

  1. Plasma is amazingly flexible and designed in such a way as to make implementing solutions to problems easy
  2. That the real work is often in realizing what the solution is in the first place
This improvement will land in the next maintenance releases of kdelibs and kde-workspace.



BackRead original postSend to a friend

Add comment

Add comment
Show all posts




-



 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Artwork
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Content RSS   
Events RSS   

Participate
Groups
Forum
Add Content
Public API
About openDesktop.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2007-2016 openDesktop.org Team  
All rights reserved. openDesktop.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
openDesktop is a trademark of the openDesktop.org Team