Mercurial > pidgin.yaz
comparison pidgin/gtkprefs.c @ 29197:9bf6fe097c9c
Make sure all globals are NULL when the prefs page is destroyed.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Wed, 23 Dec 2009 01:51:19 +0000 |
parents | aec354f08f7c |
children | f56b7177553d |
comparison
equal
deleted
inserted
replaced
29196:aec354f08f7c | 29197:9bf6fe097c9c |
---|---|
72 | 72 |
73 /* Main dialog */ | 73 /* Main dialog */ |
74 static GtkWidget *prefs = NULL; | 74 static GtkWidget *prefs = NULL; |
75 | 75 |
76 /* Notebook */ | 76 /* Notebook */ |
77 static GtkWidget *prefsnotebook; | 77 static GtkWidget *prefsnotebook = NULL; |
78 static int notebook_page = 0; | 78 static int notebook_page = 0; |
79 | 79 |
80 /* Themes page */ | 80 /* Themes page */ |
81 static GtkListStore *prefs_sound_themes; | 81 static GtkListStore *prefs_sound_themes; |
82 static GtkListStore *prefs_blist_themes; | 82 static GtkListStore *prefs_blist_themes; |
334 purple_request_close_with_handle(prefs); | 334 purple_request_close_with_handle(prefs); |
335 | 335 |
336 /* Unregister callbacks. */ | 336 /* Unregister callbacks. */ |
337 purple_prefs_disconnect_by_handle(prefs); | 337 purple_prefs_disconnect_by_handle(prefs); |
338 | 338 |
339 /* NULL-ify globals */ | |
340 sound_entry = NULL; | |
341 sound_row_sel = 0; | |
342 prefs_sound_themes_loading = FALSE; | |
343 | |
344 prefs_sound_themes = NULL; | |
345 prefs_blist_themes = NULL; | |
346 prefs_status_icon_themes = NULL; | |
347 prefs_smiley_themes = NULL; | |
348 | |
349 prefs_sound_themes_combo_box = NULL; | |
350 prefs_blist_themes_combo_box = NULL; | |
351 prefs_status_themes_combo_box = NULL; | |
352 prefs_smiley_themes_combo_box = NULL; | |
353 | |
354 notebook_page = 0; | |
355 prefsnotebook = NULL; | |
339 prefs = NULL; | 356 prefs = NULL; |
340 sound_entry = NULL; | |
341 notebook_page = 0; | |
342 } | 357 } |
343 | 358 |
344 static gchar * | 359 static gchar * |
345 get_theme_markup(const char *name, gboolean custom, const char *author, | 360 get_theme_markup(const char *name, gboolean custom, const char *author, |
346 const char *description) | 361 const char *description) |