aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Vrátil <dvratil@redhat.com>2012-07-13 19:50:24 +0800
committerDan Vrátil <dvratil@redhat.com>2012-07-17 16:47:12 +0800
commit3718b8c9133fa2072fb5ae07bac77962ad4f1ea5 (patch)
treee8ec3b53714c51348de1f990c3308e50ad8f180c
parent443418f63b7150b822279c159bd63e2c78776933 (diff)
downloadgsoc2013-evolution-3718b8c9133fa2072fb5ae07bac77962ad4f1ea5.tar.gz
gsoc2013-evolution-3718b8c9133fa2072fb5ae07bac77962ad4f1ea5.tar.zst
gsoc2013-evolution-3718b8c9133fa2072fb5ae07bac77962ad4f1ea5.zip
Fix icon size warning in EStockRequest
-rw-r--r--e-util/e-stock-request.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/e-util/e-stock-request.c b/e-util/e-stock-request.c
index ef556312ce..9ee06e911e 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 */