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 308106 - Should react to cursor theme changes
Should react to cursor theme changes
Status: RESOLVED FIXED
Product: metacity
Classification: Other
Component: general
trunk
Other All
: High normal
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on:
Blocks:
 
 
Reported: 2005-06-17 17:55 UTC by Matthias Clasen
Modified: 2005-07-21 23:47 UTC
See Also:
GNOME target: 2.12.x
GNOME version: 2.11/2.12


Attachments
a patch (11.21 KB, patch)
2005-06-21 19:45 UTC, Matthias Clasen
committed Details | Review

Description Matthias Clasen 2005-06-17 17:55:53 UTC
Please describe the problem:
GTK+ will support x settings for cursor theme name and cursor size, and react to
their changes. There is a patch (bug 308104) to make gnome-settings-daemon
expose these x settings. That all works nice, but it doesn't cover the root
cursor and the various other cursors used by metacity. You can look at my recent
changes 
to gdkcursor-x11.c to see what needs to be done to make cursor theme changes work...

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Matthias Clasen 2005-06-21 19:45:58 UTC
Created attachment 48124 [details] [review]
a patch

This patch seems to be sufficient to make metacity follow the gconf cursor
theme keys. Note that it should not be applied until it is clear that we are
going with gtk+ 2.8, otherwise we may end up with a situation where the wm
updates immediately while the toolkit requires a re-login to apply the cursor
theme change. That would suck.
Comment 2 Matthias Clasen 2005-07-11 03:49:14 UTC
Elijah, the remaining pieces of the cursor theme puzzle (cursor theme selection
in the mouse capplet, exporting the gconf keys as xsettings, pick them up in
gtk+) have been committed now. Could you please consider this patch for metacity ?
Comment 3 Elijah Newren 2005-07-11 12:35:19 UTC
Um, Havoc is the maintainer.  I can't commit anything without hix approval
unless it's something simple and obvious.  So, you'll need to ping him.  For
what it's worth, though, I don't see anything wrong with the patch and it builds
fine here.
Comment 4 Matthias Clasen 2005-07-11 12:43:50 UTC
Well, Havoc is on vacation until feature freeze, I think
Comment 5 Elijah Newren 2005-07-11 12:58:00 UTC
Oh, in that case, we should branch (haven't done that yet for 2.11) and commit,
but leave the bug open for him to look at later...
Comment 6 Matthias Clasen 2005-07-11 13:00:07 UTC
sounds good to me
Comment 7 Elijah Newren 2005-07-11 13:12:20 UTC
Okay, branch created, go ahead and check in.
Comment 8 Matthias Clasen 2005-07-11 13:25:18 UTC
2005-07-11  Matthias Clasen  <mclasen@redhat.com>

	React to cursor theme changes: (#308106)
	
	* src/prefs.h: 
	* src/prefs.c: Expose the GConf keys for cursor theme
	and size as preferences META_PREF_CURSOR_THEME and
	META_PREF_CURSOR_SIZE with getters meta_prefs_get_cursor_theme()
	and meta_prefs_get_cursor_size().

	* src/display.c (meta_display_open): Initialize the cursor 
	theme and size.
	
	* src/display.h:
	* src/display.c (meta_display_set_cursor_theme): New function 
	to change the cursor theme and update all cursors.

	* src/screen.h 
	* src/screen.c (meta_screen_update_cursor): New function to
	refesh the root cursor of a screen.

	* src/main.c (prefs_changed_callback): Update the cursor
	theme when the cursor preferences change.
Comment 9 Luis Villa 2005-07-21 19:04:27 UTC
I'm going to tentatively mark this a 2.12 showstopper, because it is highly
visible if/when it fails.
Comment 10 Elijah Newren 2005-07-21 19:08:57 UTC
Havoc: Can you verify that Matthias' patch is okay?  Matthias already committed
it since we needed it in before feature freeze and you were out of town.
Comment 11 Havoc Pennington 2005-07-21 23:43:46 UTC
Comment on attachment 48124 [details] [review]
a patch

Looks perfect to me.