-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin Schulze wrote:
>> Hello,
>>
>> I just tried gui-apt-key and I managed to erase one of the keys
>> (thankfully was an expired key) when I wanted to view its properties. I
>> have seen that regular buttons were used instead of stock ones (which
>> "helped" me at not realizing the key in the right-bottom corner was the
>> "Delete" key).
> 
> Please explain what "stock" buttons are and how to display them instead.

The stock buttons are the ones with icons besides them. They are a part
of the GTK library and are easily recognised by users.

e.g.: the About buttons in GTK applications have a small star icon near
the text, the Cancel buttons have a small X icon near the text etc.

AFAICT from some random perl code from the net[1] you create the buttons
via some special API. AFAICT there should be a call like this:

my $nextbutton = Gtk2::Button->new_from_stock('gtk-go-forward');

>> Also the fact that the buttons were arranged in the window as in a regular
>> HIG interface, but with the "Delete" button in the place of the default
>> action, added to the confusion. Please respect HIG and place the default
>> action key in the lower right corner, *or* place the buttons KDE style
>> (symmetric to the central vertical axis of the dialog) so it does not
>> create the impression of a HIG compliant application.
> 
> The details dialog needs an overhaul anyway.
> 
> Dunno why the buttons were arranged as they are since action_area->add
> was used in both cases.

Maybe if you invert the creation order the position will switch (I
haven't looked at all at the code, so please excuse me if I am talking
non-sense).

[1]
http://www.google.com/codesearch?q=+lang:perl+stock+GTK+button+show:8a6HYIGtZ_c:_exsShFla_A:iiU4_9uQ-LQ&sa=N&cd=2&ct=rc&cs_p=http://www.cpan.org/authors/id/O/OF/OFEYAIKON/Gtk2-Ex-DBITableFilter-0.03.tar.gz&cs_f=Gtk2-Ex-DBITableFilter-0.03/lib/Gtk2/Ex/DBITableFilter/BrowserBar.pm#a0
- --
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFT0mLY8Chqv3NRNoRAoW6AJwP/654lPS/VofRvie3Mqu7Y9gptACfUCZk
rL1CSzyurG4EBDdtMuU0tKE=
=ZBSn
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to