changeset 18379:794a527c8198

Minor coding style changes.
author Richard Laager <rlaager@wiktel.com>
date Sat, 30 Jun 2007 23:12:10 +0000
parents affffa44fad4
children e3280ccdc305
files pidgin/gtkprefs.c
diffstat 1 files changed, 7 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkprefs.c	Sat Jun 30 23:06:29 2007 +0000
+++ b/pidgin/gtkprefs.c	Sat Jun 30 23:12:10 2007 +0000
@@ -523,7 +523,7 @@
 	if (theme_rowref != NULL) {
 		GtkTreePath *tp = gtk_tree_row_reference_get_path(theme_rowref);
 
-		if(tp)
+		if (tp)
 			gtk_tree_selection_select_path(smiley_theme_sel, tp);
 		gtk_tree_row_reference_free(theme_rowref);
 	}
@@ -650,15 +650,14 @@
 	GtkTreeIter itr;
 	GtkTreeRowReference *trr = NULL;
 
-	if ((tm = gtk_tree_view_get_model(tv)) == NULL) return;
-	if (!gtk_tree_selection_get_selected(smiley_theme_sel, NULL, &itr)) return;
+	if ((tm = gtk_tree_view_get_model(tv)) == NULL)
+		return;
+	if (!gtk_tree_selection_get_selected(smiley_theme_sel, NULL, &itr))
+		return;
 	gtk_tree_model_get(tm, &itr, 2, &theme_file, 3, &theme_name, -1);
 
-	if(theme_name && strcmp(theme_name, "none")) {
-		if (theme_file) {
-			pidgin_themes_remove_smiley_theme(theme_file);
-		}
-	}
+	if (theme_file && theme_name && strcmp(theme_name, "none"))
+		pidgin_themes_remove_smiley_theme(theme_file);
 
 	if ((trr = theme_refresh_theme_list()) != NULL) {
 		GtkTreePath *tp = gtk_tree_row_reference_get_path(trr);