Don't leak references to the color-hash gotten from GtkSettings. (#409357,
2007-02-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtkrc.c: Don't leak references to the color-hash gotten from GtkSettings. (#409357, Benjamin Berg) svn path=/branches/gtk-2-10/; revision=17365
This commit is contained in:
committed by
Matthias Clasen
parent
e1b41e3afc
commit
f01351d17e
@@ -1,3 +1,10 @@
|
||||
2007-02-28 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Merge from trunk:
|
||||
|
||||
* gtk/gtkrc.c: Don't leak references to the color-hash
|
||||
gotten from GtkSettings. (#409357, Benjamin Berg)
|
||||
|
||||
2007-02-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Merge from trunk:
|
||||
|
||||
@@ -661,9 +661,6 @@ gtk_rc_color_hash_changed (GtkSettings *settings,
|
||||
|
||||
g_object_get (settings, "color-hash", &context->color_hash, NULL);
|
||||
|
||||
if (context->color_hash)
|
||||
g_hash_table_ref (context->color_hash);
|
||||
|
||||
if (!context->reloading)
|
||||
gtk_rc_reparse_all_for_settings (settings, TRUE);
|
||||
}
|
||||
@@ -690,9 +687,6 @@ gtk_rc_context_get (GtkSettings *settings)
|
||||
"color-hash", &context->color_hash,
|
||||
NULL);
|
||||
|
||||
if (context->color_hash)
|
||||
g_hash_table_ref (context->color_hash);
|
||||
|
||||
g_signal_connect (settings,
|
||||
"notify::gtk-theme-name",
|
||||
G_CALLBACK (gtk_rc_settings_changed),
|
||||
|
||||
Reference in New Issue
Block a user