[evolution] Fix icon size warning in EStockRequest



commit 3718b8c9133fa2072fb5ae07bac77962ad4f1ea5
Author: Dan VrÃtil <dvratil redhat com>
Date:   Fri Jul 13 13:50:24 2012 +0200

    Fix icon size warning in EStockRequest

 e-util/e-stock-request.c |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/e-util/e-stock-request.c b/e-util/e-stock-request.c
index ef55631..9ee06e9 100644
--- a/e-util/e-stock-request.c
+++ b/e-util/e-stock-request.c
@@ -68,15 +68,14 @@ handle_stock_request (GSimpleAsyncResult *res,
 
 	if (query) {
 		a_size = g_hash_table_lookup (query, "size");
+		if (a_size) {
+			size = atoi (a_size);
+		} else {
+			size = GTK_ICON_SIZE_BUTTON;
+		}
 		g_hash_table_destroy (query);
 	} else {
-		a_size = NULL;
-	}
-
-	if (!a_size) {
 		size = GTK_ICON_SIZE_BUTTON;
-	} else {
-		size = atoi (a_size);
 	}
 
 	/* Try style context first */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]