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 166267 - Large cleanup patch
Large cleanup patch
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: general
2.9.x
Other All
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-02-04 12:07 UTC by Kjartan Maraas
Modified: 2005-05-12 10:50 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
patch (12.76 KB, patch)
2005-02-04 12:08 UTC, Kjartan Maraas
none Details | Review
new patch (15.19 KB, patch)
2005-02-04 13:36 UTC, Kjartan Maraas
none Details | Review
new and updated patch (15.41 KB, patch)
2005-02-08 18:17 UTC, Kjartan Maraas
committed Details | Review

Description Kjartan Maraas 2005-02-04 12:07:40 UTC
This patch does the following:

- remove a load of leaks in the theme manager code
- move said code to use GtkIconTheme
- clean up some sparse warnings here and there
- build fixes
- maybe more? :-)
Comment 1 Kjartan Maraas 2005-02-04 12:08:15 UTC
Created attachment 36978 [details] [review]
patch
Comment 2 Kjartan Maraas 2005-02-04 13:20:40 UTC
New take:

- fix more leaks
- fix to make sure newly installed themes show up in the relevant lists without
having to close/open the dialog again
Comment 3 Kjartan Maraas 2005-02-04 13:35:44 UTC
- remove spurious change in accessibility/keyboard
Comment 4 Kjartan Maraas 2005-02-04 13:36:07 UTC
Created attachment 36981 [details] [review]
new patch
Comment 5 Kjartan Maraas 2005-02-04 13:43:14 UTC
This all runs find when installing themes and changing between them and
customizing stuff. The only problem I've seen with this patch is that I get an
invalid read in valgrind when installing an icon theme, but that could be the
theme itself or something outside of the theme code's fault. Also, if you delete
directories in ~/.icons or ~/.themes that hold the current theme and open
gnome-theme-manager it spews a lot of warnings and is a bit unhappy, but that's
kind of extreme behaviour on the users part anyway... I would like to get this
into CVS ASAP, but I don't want to just commit it without review. Could someone
take a look at this during the weekend, since I'm going to be without
connectivity at least until sunday evening CEST. Also testing more themes would
be nice.
Comment 6 Sebastien Bacher 2005-02-06 22:54:27 UTC
I'm not really familiar with this code, some comments ...

- capplets/common/gnome-theme-info.c:

why not changing the add_data_to_hash_by_name () call line 708 in the same way ?
Are you sure that the data is not changed somewhere during the running time ?


- capplets/common/theme-thumbnail.c:

why using GTK_ICON_LOOKUP_FORCE_SVG ?


- capplets/theme-switcher/gnome-theme-installer.c:

what do you think about adding some g_free (uri) with the g_free (src_uri) ?

@@ -380,7 +441,7 @@ install_dialog_response (GtkWidget *widg

why changing the declaration ?


The other changes seem to be good.


Comment 7 Kjartan Maraas 2005-02-06 23:23:55 UTC
- capplets/common/gnome-theme-info.c:
> 
> why not changing the add_data_to_hash_by_name () call line 708 in the same way ?
> Are you sure that the data is not changed somewhere during the running time ?
> 
> I'm planning on changing all calls to add_data_to_hash_by_name() since it
copies the data internally and we shouldn't have to do it twice. Needs some more
testing with valgrind after doing that.


> - capplets/common/theme-thumbnail.c:
> 
> why using GTK_ICON_LOOKUP_FORCE_SVG ?
> 
> Not sure really, maybe just confusion wrt the explicit call to allow SVGs in
the old code.


> - capplets/theme-switcher/gnome-theme-installer.c:
> 
> what do you think about adding some g_free (uri) with the g_free (src_uri) ?
> 
> Yeah, I think I've missed a few in there...

@@ -380,7 +441,7 @@ install_dialog_response (GtkWidget *widg
> 
> why changing the declaration ?
> 
> Hmm, maybe just some temporal change that made it in there. I'll remove it and
see if something evil pops back up.


> The other changes seem to be good.
> 
> Thanks.

I'll upload an updated patch sometime tomorrow
Comment 8 Kjartan Maraas 2005-02-08 18:17:24 UTC
Created attachment 37188 [details] [review]
new and updated patch
Comment 9 Sebastien Bacher 2005-02-08 22:42:31 UTC
Comment on attachment 37188 [details] [review]
new and updated patch

patch commited, thanks
Comment 10 Kjartan Maraas 2005-05-12 10:50:21 UTC
Closing since the patch was commited.