In external .gtkrc file for selected theme cannot be used styles for some of items in the lock window

Bug #586226 reported by Vladimir Kravets on 2010-05-27
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNOME Screensaver
Expired
High
gnome-screensaver (Ubuntu)
Medium
Unassigned

Bug Description

Binary package hint: gnome-screensaver

Since in new build of Gnome ScreenSaver was moved to using GtkBuilder some of fields on the lock dialog cannot be "styled" by external gtkrc file for selected theme. (Theme can be converted from Glide to GtkBuilder format by glade3 or gtkbuilder-convert utility)

in the gtkrc file we have such strings (see full listing of file in the attached file):

# Customize the widgets
widget "*.auth-prompt-entry" style "textbox"
widget "*.auth-prompt-label" style "promptlab"
widget "*.auth-realname-label" style "username"
widget "*.note-tab-label" style "username"
widget "*.auth-username-label" style "pcnickname"
widget "*.away-message-label" style "pcnickname"
widget "*.auth-capslock-label" style "pcnickname"
widget "*.auth-status-label" style "statusmsg"

widget "*.auth-prompt-kbd-layout-indicator.*" style "hbox"
widget "*.auth-prompt-kbd-frame" style "hbox"

widget "*.auth-action-area.*" style :highest "label-black"
widget "*.auth-note-area.*" style :highest "label-black"

If we look on the lock dialog the styles will not applies.

After invistigating the code I found that to use such ids in the gtkrc file we need to call gtk_widget_set_name() for each needed field. In the code such calling is not exists. (see http://library.gnome.org/devel/gtk/2.21/GtkWidget.html#gtk-widget-set-name)

I try to make path for this but I'm not able to check the functionality after applying the path. Sorry. :)

The sample of lock theme was also attached to defect.
Since is the regression due to moving to new engine I think the status of this defect should High.

Vladimir Kravets (vova-kravets) wrote :
description: updated
Chris Coulson (chrisccoulson) wrote :

This bug is an upstream one and it would be quite helpful if somebody experiencing it could send the bug the to the people writing the software. You can learn more about how to do this for various upstreams at https://wiki.ubuntu.com/Bugs/Upstream. Thanks in advance!

Changed in gnome-screensaver (Ubuntu):
importance: Undecided → Low
tags: removed: dialog gnome-screensaver lock theme
Changed in gnome-screensaver:
status: Unknown → New
Vladimir Kravets (vova-kravets) wrote :

Attched diff resolving the issue.

Changed in gnome-screensaver (Ubuntu):
status: New → Triaged
importance: Low → Medium
David Futcher (bobbo) on 2010-06-08
tags: added: patch-forwarded-upstream
Changed in gnome-screensaver:
importance: Unknown → High
Changed in gnome-screensaver:
status: New → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.