After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 170659 - hide drop-down arrow if only one palette is available
hide drop-down arrow if only one palette is available
Status: RESOLVED FIXED
Product: gnome-applets
Classification: Other
Component: charpick
git master
Other All
: High enhancement
: 2.12
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-03-17 11:54 UTC by Egmont Koblinger
Modified: 2005-08-07 16:12 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
patch proposal (3.62 KB, patch)
2005-03-20 15:13 UTC, Felix Riemann
none Details | Review
updated (+working) patch (3.41 KB, patch)
2005-04-08 21:10 UTC, Felix Riemann
committed Details | Review

Description Egmont Koblinger 2005-03-17 11:54:53 UTC
Version details: 2.8.2

I use the charpick applet to quickly access the three or four characters
that I use sometimes but are not available on my keyboard. Hence I don't use
its feature to switch between multiple palettes.

However, the drop-down arrow which lets me choose amongst this one palette
is still drawn on the screen, occupying a lot of space on the panel which
I could use for better purposes.

So please hide this drop-down arrow and hence make the applet narrower in case
only one palette is configured.
Comment 1 Danielle Madeley 2005-03-20 04:24:34 UTC
Seems to make sense. Marking as an enhancement for gnome-lovin'.
Comment 2 Felix Riemann 2005-03-20 15:13:50 UTC
Created attachment 38960 [details] [review]
patch proposal

I'm not sure if it's totally correct, but it works here.
Comment 3 Samuel Abels 2005-04-04 02:36:27 UTC
Only zapping through this bug by accident. I gave the patch a glance:

g_list_position(curr_data->chartable,
                g_list_last(curr_data->chartable));

That should be g_list_length(), requires three replacements in the patch. Other
than that, looks good.
Could you please update the patch, Felix? Thanks.
Comment 4 Felix Riemann 2005-04-08 21:10:38 UTC
Created attachment 39847 [details] [review]
updated (+working) patch

Thanks for the tip. I changed it.
I had to take out the length check (= / > 1 list-entry) in populate_menu(),
because it wasn't working either way and the function which deletes the
list-entries redrew the applet anyway in one case. So the whole checking is now
done in the build_table()-function.
Comment 5 Danielle Madeley 2005-08-03 18:18:02 UTC
Has a patch, needs reviewing.
Comment 6 Danielle Madeley 2005-08-07 16:12:48 UTC
2005-08-08  Davyd Madeley  <davyd@madeley.id.au>

        * charpick.c:
        * properties.c: Only show palette selector if there are palettes to
          select. Closes #170659. Patch from Felix Riemann <felix@hsgheli.de>.