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 589808 - Set always-show-image on some menu items
Set always-show-image on some menu items
Status: RESOLVED FIXED
Product: totem
Classification: Core
Component: Movie player
2.27.x
Other Linux
: Normal normal
: ---
Assigned To: Robin Stocker
General Totem maintainer(s)
: 590660 (view as bug list)
Depends on: 589842
Blocks:
 
 
Reported: 2009-07-26 21:22 UTC by Robin Stocker
Modified: 2009-12-05 11:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
always-show-image for devices and recent files (1.14 KB, patch)
2009-07-26 22:43 UTC, Robin Stocker
committed Details | Review
Replace hack to set always-show-image for devices (1.59 KB, patch)
2009-12-04 20:54 UTC, Robin Stocker
committed Details | Review

Description Robin Stocker 2009-07-26 21:22:14 UTC
Since bug #557469 (set menus_have_icons=false by default), menu items which represent objects like devices or files should have a menu item. For totem, this would mean setting always-show-image for the devices and recent files in the Movie menu. At the moment, when running totem with menus_have_icons=false, no icons will be shown at all.

I couldn't find out how to set this property because we're using GtkUIManager and GtkActions and not GtkImageMenuItems directly.
Comment 1 Robin Stocker 2009-07-26 22:43:19 UTC
Created attachment 139255 [details] [review]
always-show-image for devices and recent files

Ok, it can be done with gtk_ui_manager_get_widget. This patch makes icons of devices and recent files always show.
Comment 2 Bastien Nocera 2009-07-26 22:46:56 UTC
If we're going to do that across GNOME, then it needs to be fixed properly in GtkUIManager. I have too many hacks of that sort in gnome-bluetooth already.
Comment 3 Robin Stocker 2009-07-27 08:31:49 UTC
Christian Persch just filed bug #589842 for that.
Comment 4 Bastien Nocera 2009-08-03 17:59:26 UTC
*** Bug 590660 has been marked as a duplicate of this bug. ***
Comment 5 Philip Withnall 2009-08-08 20:28:37 UTC
This makes the changes in time for the UI freeze; now the bug can be for updating them once bug #589842 is fixed.

commit 2aff9b91410a9223822680cb577c2f2dc6f036c3
Author: Robin Stocker <robin@nibor.org>
Date:   Sat Aug 8 21:27:08 2009 +0100

    Bug 589808 – Set always-show-image on some menu items

 src/totem-menu.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
Comment 6 Robin Stocker 2009-12-04 20:54:39 UTC
Created attachment 149120 [details] [review]
Replace hack to set always-show-image for devices

Now that we depend on GTK+ 2.19.1, we can remove the hack again. Ok to commit?
Comment 7 Bastien Nocera 2009-12-04 23:50:00 UTC
Yeppers, go for it.
Comment 8 Robin Stocker 2009-12-05 11:08:40 UTC
commit 2933258789b8e6de00ebc1c0db0b3b628395be54
Author: Robin Stocker <robin@nibor.org>
Date:   Fri Dec 4 21:50:48 2009 +0100

    Replace hack to set always-show-image for devices
    
    https://bugzilla.gnome.org/show_bug.cgi?id=589808

 src/totem-menu.c |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)