From kde-core-devel Mon May 09 19:37:27 2011 From: "David Palacio" Date: Mon, 09 May 2011 19:37:27 +0000 To: kde-core-devel Subject: Re: Review Request: Enable kdialog to set an icon for passivepopup as Message-Id: <20110509193727.17518.71038 () vidsolbach ! de> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=130496990204024 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1596317289419383624==" --===============1596317289419383624== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/101282/#review3228 ----------------------------------------------------------- kdialog/kdialog.cpp --icon is a KDE option. Maybe that's why the first diff did not work? kdialog/kdialog.cpp s/duration/timeout There's no need to change this name here and you change it backwards so= me lines below. KDialog's usage text names this option "timeout" as well. - David On May 6, 2011, 2:52 p.m., Kai Uwe Broulik wrote: > = > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://git.reviewboard.kde.org/r/101282/ > ----------------------------------------------------------- > = > (Updated May 6, 2011, 2:52 p.m.) > = > = > Review request for KDE Base Apps. > = > = > Summary > ------- > = > Since I use kdialog a lot, I wanted it to be able to set an icon for pass= ive Plasma notifications as well. > I saw that the icon was hardcoded to dialog-information and tried to enab= le it to parse the --icon command line argument and pass it to the dbus cal= l that triggers the notification. > I could not test the patch however, since I do not (yet) have a full deve= lopment environment or its dependencies, and I do not even know if this is = the right approach, but I hope you can have a look at it. > = > = > Diffs > ----- > = > kdialog/kdialog.cpp b80ad9a = > = > Diff: http://git.reviewboard.kde.org/r/101282/diff > = > = > Testing > ------- > = > = > Thanks, > = > Kai Uwe > = > --===============1596317289419383624== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable
This is an automatically generated e-mail. To reply, visit: http://git.revie= wboard.kde.org/r/101282/

= =
kdialog/kdialog.cpp (Diff revision 1)
static int directCommand(KCmdLineArgs *args)
366
	KCmdLineArgs *qtargs =3D KCmdLineArgs::parsedArgs(&q=
uot;qt"); // --icon=
 is a qt option
--icon is a KDE option.
Maybe that's why the first diff did not work?

= =
kdialog/kdialog.cpp (Diff revision 5)
bool sendVisualNotification(QString text, QString title, int timeou=
t)
99
bool sendVisualNotification(QString text, QString title, int timeout)
101
bool sendVisualNotification(QString text, const QString =
&title,=
 const QString &=
icon, int duration)
s/duration/timeout
There's no need to change this name here and you change it backwards so=
me lines below. KDialog's usage text names this option "timeout&qu=
ot; as well.

- David


On May 6th, 2011, 2:52 p.m., Kai Uwe Broulik wrote:

Review request for KDE Base Apps.
By Kai Uwe Broulik.

Updated May 6, 2011, 2:52 p.m.

Descripti= on

Since I use kdialog a lot, I wanted it to be able to set an =
icon for passive Plasma notifications as well.
I saw that the icon was hardcoded to dialog-information and tried to enable=
 it to parse the --icon command line argument and pass it to the dbus call =
that triggers the notification.
I could not test the patch however, since I do not (yet) have a full develo=
pment environment or its dependencies, and I do not even know if this is th=
e right approach, but I hope you can have a look at it.

Diffs=

  • kdialog/kdialog.cpp (b80ad9a)

View Diff

--===============1596317289419383624==--