Mercurial > pidgin
comparison src/gtkpounce.c @ 14035:8bda65b88e49
[gaim-migrate @ 16638]
A bunch of small changes. Mostly remove "if not null" checks before
calling g_free, g_list_free, g_slist_free and g_strdup. Also use
g_list_foreach() to call g_free to free strings in an array. And
some whitespace changes here and there.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 05 Aug 2006 08:27:39 +0000 |
parents | a9ff4499d9ce |
children |
comparison
equal
deleted
inserted
replaced
14034:0839a7b71325 | 14035:8bda65b88e49 |
---|---|
430 dialog->account = account; | 430 dialog->account = account; |
431 gaim_gtk_account_option_menu_set_selected(dialog->account_menu, account); | 431 gaim_gtk_account_option_menu_set_selected(dialog->account_menu, account); |
432 } | 432 } |
433 } | 433 } |
434 | 434 |
435 if (username != NULL) g_free(username); | 435 g_free(username); |
436 if (protocol != NULL) g_free(protocol); | 436 g_free(protocol); |
437 | 437 |
438 gtk_drag_finish(dc, TRUE, (dc->action == GDK_ACTION_MOVE), t); | 438 gtk_drag_finish(dc, TRUE, (dc->action == GDK_ACTION_MOVE), t); |
439 } | 439 } |
440 } | 440 } |
441 | 441 |
1193 GtkCellRenderer *renderer; | 1193 GtkCellRenderer *renderer; |
1194 | 1194 |
1195 /* Create the scrolled window */ | 1195 /* Create the scrolled window */ |
1196 sw = gtk_scrolled_window_new(0, 0); | 1196 sw = gtk_scrolled_window_new(0, 0); |
1197 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw), | 1197 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw), |
1198 GTK_POLICY_AUTOMATIC, | 1198 GTK_POLICY_AUTOMATIC, |
1199 GTK_POLICY_AUTOMATIC); | 1199 GTK_POLICY_AUTOMATIC); |
1200 gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(sw), | 1200 gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(sw), |
1201 GTK_SHADOW_IN); | 1201 GTK_SHADOW_IN); |
1202 gtk_widget_show(sw); | 1202 gtk_widget_show(sw); |
1203 | 1203 |