[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Dragon Player- Junior Job
From:       Anmol Ahuja <darthcodus () gmail ! com>
Date:       2013-02-10 20:32:05
Message-ID: CAPCUmc3=1aLifWWo-H3L+1yp5wRHAzXzftp+RXjWzj30rZLBew () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


As my first contribution to KDE, I decided to work on the (only) dragon
player junior job, because it looked pretty simple.
I'm supposed to add a status-bar toggle to the settings menu:
https://bugs.kde.org/show_bug.cgi?id=288323

I tried modifying the code, adding a statusbar toggle by modifying the
menubar toggle code (using KStandardAction)-
(PATCH<http://pastebin.com/9zj2E8Vj>
1).
But it just wouldn't work.

Then I tried adding it like a normal KAction, using an the Object name  I
declared in the .rc file (<Action name="options_show_statusbar"/>), but it
just wouldn't show up in the settings menu, until I tried using an existing
name, "unique", and then it magically appeared.

And another strange thing, when I randomly tried ObjectName as
"show_status", (PATCH2 <http://pastebin.com/TnR4Sz4h>), it appeared in the
Toolbar. I don't quite understand how, though. Is it some standard KDE
thing?

Could someone please help me through my first patch?

[Attachment #5 (text/html)]

<div dir="ltr">As my first contribution to KDE, I decided to work on the (only) \
dragon player junior job, because it looked pretty simple.<div style>I&#39;m supposed \
to add a status-bar toggle to the settings menu:</div><div style> <a \
href="https://bugs.kde.org/show_bug.cgi?id=288323">https://bugs.kde.org/show_bug.cgi?id=288323</a><br></div><div \
style><br></div><div style>I tried modifying the code, adding a statusbar toggle by \
modifying the menubar toggle code (using KStandardAction)- (<a \
href="http://pastebin.com/9zj2E8Vj">PATCH</a>1).</div> <div style>But it just \
wouldn&#39;t work. </div><div style><br></div><div style>Then I tried adding it like \
a normal KAction, using an the Object name  I declared in the .rc file (&lt;Action \
name=&quot;options_show_statusbar&quot;/&gt;), but it just wouldn&#39;t show up in \
the settings menu, until I tried using an existing name, &quot;unique&quot;, and then \
it magically appeared.<br> </div><div style><br></div><div style>And another strange \
thing, when I randomly tried ObjectName as &quot;show_status&quot;, (<a \
href="http://pastebin.com/TnR4Sz4h">PATCH2</a>), it appeared in the Toolbar. I \
don&#39;t quite understand how, though. Is it some standard KDE thing?</div> <div \
style><br></div><div style>Could someone please help me through my first \
patch?</div></div>



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic