Mercurial > pidgin
comparison plugins/contact_priority.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 | ae51c59bf819 |
children |
comparison
equal
deleted
inserted
replaced
14034:0839a7b71325 | 14035:8bda65b88e49 |
---|---|
97 { | 97 { |
98 char *pref = g_strconcat("/core/status/scores/", statuses[i].id, NULL); | 98 char *pref = g_strconcat("/core/status/scores/", statuses[i].id, NULL); |
99 | 99 |
100 hbox = gtk_hbox_new(FALSE, 5); | 100 hbox = gtk_hbox_new(FALSE, 5); |
101 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); | 101 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); |
102 | 102 |
103 label = gtk_label_new_with_mnemonic(_(statuses[i].description)); | 103 label = gtk_label_new_with_mnemonic(_(statuses[i].description)); |
104 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); | 104 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); |
105 gtk_size_group_add_widget(sg, label); | 105 gtk_size_group_add_widget(sg, label); |
106 gtk_misc_set_alignment(GTK_MISC(label), 0, 0); | 106 gtk_misc_set_alignment(GTK_MISC(label), 0, 0); |
107 | 107 |
108 adj = gtk_adjustment_new(gaim_prefs_get_int(pref), -500, 500, 1, 1, 1); | 108 adj = gtk_adjustment_new(gaim_prefs_get_int(pref), -500, 500, 1, 1, 1); |
109 spin = gtk_spin_button_new((GtkAdjustment *)adj, 1, 0); | 109 spin = gtk_spin_button_new((GtkAdjustment *)adj, 1, 0); |
110 g_signal_connect(G_OBJECT(spin), "value-changed", G_CALLBACK(pref_update), pref); | 110 g_signal_connect(G_OBJECT(spin), "value-changed", G_CALLBACK(pref_update), pref); |
111 gtk_box_pack_start(GTK_BOX(hbox), spin, FALSE, FALSE, 0); | 111 gtk_box_pack_start(GTK_BOX(hbox), spin, FALSE, FALSE, 0); |
112 | 112 |