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 102149 - list does not refresh after "Save Theme" or installing a new theme
list does not refresh after "Save Theme" or installing a new theme
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: [obsolete] theme-manager
git master
Other other
: High normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
AES[BIGBADBUG]
: 102217 106591 108366 143904 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-12-29 12:08 UTC by Mark Finlay
Modified: 2005-02-28 14:41 UTC
See Also:
GNOME target: 2.10.0
GNOME version: 2.9/2.10


Attachments
Patch as stated above. (2.21 KB, patch)
2003-02-20 12:25 UTC, Rajkumar
needs-work Details | Review

Description Mark Finlay 2002-12-29 12:06:31 UTC
Package: control-center
Severity: normal
Version: GNOME2.1.5 2.1.5
Synopsis: list does not refresh after "Save Theme"
Bugzilla-Product: control-center
Bugzilla-Component: theme-manager
Description:
When you save a theme it does not appear in the list until after you 
restart the theme applet. It would be better if the list was refreshed
after
saving a theme.




------- Bug moved to this database by unknown@bugzilla.gnome.org 2002-12-29 07:06 -------

Reassigning to the default owner of the component, control-center-maint@bugzilla.gnome.org.

Comment 1 Andrew Sobala 2002-12-29 16:32:35 UTC
TARGET2.2.x, plainly a usability bug
Comment 2 Andrew Sobala 2002-12-29 16:37:44 UTC
Just to clarify - although this has the TARGET2.2.0 keyword for now,
it is a Would Be Nice for 2.2.0 and not a release-blocker. I'm
lobbying for a TARGET2.2.x keyword.
Comment 3 Andrew Sobala 2002-12-30 14:23:50 UTC
It doesn't refresh when installing a new theme either, this is what
bug 102217 is about (marking as dup)
Comment 4 Andrew Sobala 2002-12-30 14:23:58 UTC
*** Bug 102217 has been marked as a duplicate of this bug. ***
Comment 5 Jonathan Blandford 2003-01-16 20:08:34 UTC
Fixed in 2.1.7
Comment 6 Andrew Sobala 2003-02-20 11:51:32 UTC
*** Bug 106591 has been marked as a duplicate of this bug. ***
Comment 7 Andrew Sobala 2003-02-20 11:52:15 UTC
Bug 106591 reports this bug in version 2.2.0.1.
Comment 8 Rajkumar 2003-02-20 12:24:22 UTC
When we install a new meta theme the list is not refreshed once its
installed, hence the new meta theme will not be displayed in the list
until the capplet is killed and launched again.

Am attaching a patch which refreshes the theme list once a new theme
is installed and it fixes the problem.
Comment 9 Rajkumar 2003-02-20 12:25:17 UTC
Created attachment 14467 [details] [review]
Patch as stated above.
Comment 10 Kjartan Maraas 2003-04-22 22:55:32 UTC
Cleaning up keywords. Anyone care to review this?
Comment 11 Kjartan Maraas 2003-05-02 22:16:15 UTC
Maybe better to reread the themes from disk one time in the function
that calls the two callbacks instead of one time for each?
Comment 12 Rajkumar 2003-05-05 08:56:42 UTC
Hi Kjartan,

The callbacks are attached using g_idle_add() and are executed when
there are no high priority tasks pending. The new theme is
untarred/unzipped and installed in the callback functions, and only
after this we should call
gnome_theme_details_reread_themes_from_disk() to read the newly
installed theme. Hence we need this reread API to be called in the the
callbacks rather than in the function that attaches these callbacks.

Thanks.
Comment 13 Kjartan Maraas 2003-05-08 17:18:55 UTC
I think the original patch didn't work for me when I tested it.
Comment 14 Rajkumar 2003-05-26 13:09:57 UTC
Hi Kjartan,

I rechecked the patch and it works fine. Can you pls. check it again
and let me know if it's okay to commit.

Thanks.
Comment 15 Kjartan Maraas 2003-07-10 13:27:06 UTC
I'll take it for another spin.
Comment 16 Kjartan Maraas 2003-07-10 15:19:09 UTC
I just tried this by downloading the first theme (gtk2) from
art.gnome.org and I still don't see it updating the list under
"Details" ->"Controls".

Maybe you could give me clearer instructions on how to test the patch
if this is wrong.
Comment 17 Rajkumar 2003-07-17 07:24:03 UTC
Hi Kjartan,

Tried it out with the latest Gnome build from HEAD and I find that it
isn't working. On further analysis I find that
gnome_theme_details_reread_themes_from_disk() in the patch recreates
the theme list after installing the theme but it's not been updated
with the newly installed theme, one of the reason I could think of is
gtk2/metacity/..._dir_changed() in gnome-theme-info.c is not been
called by gnome_vfs for the changes in the theme directory which it
should monitor. 

The same was working when I first created the patch, not sure what has
been changed by then, would need to dig further... Also am removing
the PATCH keyword for now.

Thanks.
Comment 18 Tamara Roberson 2004-06-07 21:24:57 UTC
I also submitted this bug 2004-06-07 (#143904). For some reason, famd was not
running, it refreshes if you run this. However, I still think theme-manager
should not rely on famd because you are actually installing it in the same
program, some people might miss this.
Comment 19 Sebastien Bacher 2004-11-27 17:23:31 UTC
*** Bug 143904 has been marked as a duplicate of this bug. ***
Comment 20 Sebastien Bacher 2005-01-21 21:44:28 UTC
seems to work fine here, do you still have this issue ? 
Comment 21 Kjartan Maraas 2005-02-01 23:28:02 UTC
It doesn't work for me if I do this:

- add a widget theme
- add a border theme
- add an icon theme
- try to create a custom theme of these three

I can see the newly installed widget and border themes, but not the icon theme
after calling the function in the patch here in transfer_done_cb() Maybe we need
to call it in more than one place? Or maybe the code in
gnome_theme_details_reread_themes_from_disk() needs fixing in the icon theme case?
Comment 22 Kjartan Maraas 2005-02-01 23:46:54 UTC
*** Bug 108366 has been marked as a duplicate of this bug. ***
Comment 23 Kjartan Maraas 2005-02-10 00:58:22 UTC
Should be working with the latest gnome-control-center release. 2.9.92 or
something. Or with CVS. Can anyone confirm this?
Comment 24 Vincent Noel 2005-02-16 21:16:16 UTC
As I explained in bug #102216, I tried to install a new metacity theme by
dragging a package on the "details" window, and it did not show in the list. I
had to exit and restart to see the new theme.
Comment 25 Luis Villa 2005-02-28 14:41:49 UTC
This works for me in 2.9.91, I'm going to close. Vincent or others, can you
reopen if you still see it?