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 619807 - In external .gtkrc file for selected theme cannot be used styles for some of items in the lock window
In external .gtkrc file for selected theme cannot be used styles for some of ...
Status: RESOLVED OBSOLETE
Product: gnome-screensaver
Classification: Deprecated
Component: dialog
2.30.x
Other Linux
: Normal major
: ---
Assigned To: gnome-screensaver maintainers
gnome-screensaver maintainers
Depends on:
Blocks:
 
 
Reported: 2010-05-27 10:57 UTC by Vladimir Kravets
Modified: 2011-05-12 14:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Mogehan Lock Dialog Theme converted to GTKBuilder engine (339.57 KB, application/zip)
2010-05-27 10:57 UTC, Vladimir Kravets
  Details
Add capability to change style of some fields in lock dialog window via external gtkrc theme file (5.27 KB, patch)
2010-05-27 13:25 UTC, Vladimir Kravets
none Details | Review
Add capability to change style of some fields in lock dialog window via external gtkrc theme file (5.27 KB, patch)
2010-05-27 13:42 UTC, Vladimir Kravets
none Details | Review

Description Vladimir Kravets 2010-05-27 10:57:37 UTC
Created attachment 162087 [details]
Mogehan Lock Dialog Theme converted to GTKBuilder engine

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.
Comment 1 Vladimir Kravets 2010-05-27 13:25:16 UTC
Created attachment 162095 [details] [review]
Add capability to change style of some fields in lock dialog window via external gtkrc theme file
Comment 2 Vladimir Kravets 2010-05-27 13:42:35 UTC
Created attachment 162098 [details] [review]
Add capability to change style of some fields in lock dialog window via external gtkrc theme file

Sorry have some typos in the names of fields ids
Comment 3 Vladimir Kravets 2010-05-27 19:58:54 UTC
Verified the path. All working well.
Comment 4 William Jon McCann 2011-03-06 06:46:11 UTC
Thanks for taking the time to report this bug.
However, you are using a version that is too old and not supported anymore. GNOME developers are no longer working on that version, so unfortunately there will not be any bug fixes for the version that you use.

By upgrading to a newer version of GNOME you could receive bug fixes and new functionality. You may need to upgrade your Linux distribution to obtain a newer version of GNOME.
Please feel free to reopen this bug if the problem still occurs with a newer version of GNOME.
Comment 5 Vladimir Kravets 2011-05-12 14:56:30 UTC
I see that in the revision from 30.06.2010 @ 22:05 this feature was removed at all. 

Could you please comment this phrase "It is better to integrate with GDM and the shell instead.", we mean that this will be support by gdm or what?

Thanks,
Vladimir