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 590653 - menu don't show icons for objects if menus_have_icons=false
menu don't show icons for objects if menus_have_icons=false
Status: RESOLVED FIXED
Product: tomboy
Classification: Applications
Component: General
0.14.x
Other Linux
: Normal normal
: ---
Assigned To: Tomboy Maintainers
Tomboy Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-08-03 16:43 UTC by Andreas Nilsson
Modified: 2009-10-05 13:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch that fixes this (3.39 KB, patch)
2009-09-21 02:05 UTC, Sandy Armstrong
committed Details | Review

Description Andreas Nilsson 2009-08-03 16:43:53 UTC
Even though this isn't part of the HIG yet [1] we want objects such as documents, bookmarks, applications and devices to always show icons (the HIG currently only mentions bookmarks), regardless of menus_have_icons is set to true or false.
This would mean that Tomboy would make use of the gtk-image-menu-item-set-always-show-image [2] for all items below Search All Notes (but not Search all notes, since that's a action). This is especially important since GNOME recently changed menus_have_icons to false by default [3].

1. http://bugzilla.gnome.org/show_bug.cgi?id=588668
2. http://library.gnome.org/devel/gtk/2.17/GtkImageMenuItem.html#gtk-image-menu-item-set-always-show-image
3. http://bugzilla.gnome.org/show_bug.cgi?id=557469
Comment 1 Sandy Armstrong 2009-08-03 17:39:05 UTC
We're talking about the Tomboy note menu here, right?

"All items below Search All Notes" is relative to panel positioning.

Based on the "documents, bookmarks, applications, and devices" rule, I assume you mean that menu items that represent notes should always show the image.  But "Create New Note", "Notebooks", and "Search All Notes" items should just go with the menus_have_icons setting.  Is this correct?
Comment 2 Andreas Nilsson 2009-08-03 17:42:53 UTC
Correct, those are kind of documents.
Comment 3 Sandy Armstrong 2009-08-03 18:23:59 UTC
Thanks, Andreas.

This API is only available in GTK+ 2.16, so we'll need to add some stuff to configure for conditionally including support for it, as I want Tomboy buildable on GTK+ 2.14.  We can add the API in our GtkBeans area.
Comment 4 Sandy Armstrong 2009-09-21 02:05:16 UTC
Created attachment 143561 [details] [review]
Patch that fixes this

Here's a patch that fixes this.  Unfortunately I forgot about this bug until today.  If anyone thinks I should request a break of code freeze to apply this patch, I will do so.  But I don't think it's that vital, and I plan to release a 1.0.1 long enough before GNOME 2.28.1 that it will be the release shipped by most distros.
Comment 5 Sandy Armstrong 2009-09-22 03:08:56 UTC
Comment on attachment 143561 [details] [review]
Patch that fixes this

Pushed to master and gnome-2-28 branch.  I'll probably make a 1.0.1 a little earlier than GNOME 2.28.1 to encourage distros to pick up this fix (and whatever else we may find).
Comment 6 Yavor Doganov 2009-10-05 09:23:49 UTC
It looks like you forgot to add and commit Tomboy/gtk-sharp-beans/ImageMenuItem.cs, so Tomboy fails to build:

Tray.cs(36,30): error CS1061: Type `Tomboy.NoteMenuItem' does not contain a definition for `SetAlwaysShowImage' and no extension method `SetAlwaysShowImage' of type `Tomboy.NoteMenuItem' could be found (are you missing a using directive or an assembly reference?)
Comment 7 Sandy Armstrong 2009-10-05 13:32:47 UTC
Oh, thanks, I forgot to push this file on the branch.  Doing it now.