Mercurial > pidgin
comparison src/buddy.c @ 1172:4135d8fc7b4e
[gaim-migrate @ 1182]
Some pretty-ifications by Decklin Foster.
Thanks bro
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Thu, 30 Nov 2000 07:36:06 +0000 |
parents | 11f8829f82fb |
children | 256e209c02ac |
comparison
equal
deleted
inserted
replaced
1171:11f8829f82fb | 1172:4135d8fc7b4e |
---|---|
2016 gtk_widget_show(infobutton); | 2016 gtk_widget_show(infobutton); |
2017 | 2017 |
2018 gtk_box_pack_start(GTK_BOX(imchatbox), imbutton, TRUE, TRUE, 0); | 2018 gtk_box_pack_start(GTK_BOX(imchatbox), imbutton, TRUE, TRUE, 0); |
2019 gtk_box_pack_start(GTK_BOX(imchatbox), infobutton, TRUE, TRUE, 0); | 2019 gtk_box_pack_start(GTK_BOX(imchatbox), infobutton, TRUE, TRUE, 0); |
2020 gtk_box_pack_start(GTK_BOX(imchatbox), chatbutton, TRUE, TRUE, 0); | 2020 gtk_box_pack_start(GTK_BOX(imchatbox), chatbutton, TRUE, TRUE, 0); |
2021 gtk_container_border_width(GTK_CONTAINER(imchatbox), 10); | 2021 gtk_container_border_width(GTK_CONTAINER(imchatbox), 5); |
2022 | 2022 |
2023 gtk_signal_connect(GTK_OBJECT(imbutton), "clicked", GTK_SIGNAL_FUNC(im_callback), buddies); | 2023 gtk_signal_connect(GTK_OBJECT(imbutton), "clicked", GTK_SIGNAL_FUNC(im_callback), buddies); |
2024 gtk_signal_connect(GTK_OBJECT(infobutton), "clicked", GTK_SIGNAL_FUNC(info_callback), buddies); | 2024 gtk_signal_connect(GTK_OBJECT(infobutton), "clicked", GTK_SIGNAL_FUNC(info_callback), buddies); |
2025 gtk_signal_connect(GTK_OBJECT(chatbutton), "clicked", GTK_SIGNAL_FUNC(chat_callback), buddies); | 2025 gtk_signal_connect(GTK_OBJECT(chatbutton), "clicked", GTK_SIGNAL_FUNC(chat_callback), buddies); |
2026 | 2026 |
2200 | 2200 |
2201 | 2201 |
2202 | 2202 |
2203 | 2203 |
2204 /* Do buddy list stuff */ | 2204 /* Do buddy list stuff */ |
2205 | 2205 /* FIXME: spacing on both panes is ad hoc */ |
2206 buddypane = gtk_vbox_new(FALSE, 0); | 2206 buddypane = gtk_vbox_new(FALSE, 1); |
2207 | 2207 |
2208 buddies = gtk_tree_new(); | 2208 buddies = gtk_tree_new(); |
2209 sw = gtk_scrolled_window_new(NULL, NULL); | 2209 sw = gtk_scrolled_window_new(NULL, NULL); |
2210 | 2210 |
2211 tips = gtk_tooltips_new(); | 2211 tips = gtk_tooltips_new(); |
2225 if (!(display_options & OPT_DISP_NO_BUTTONS)) | 2225 if (!(display_options & OPT_DISP_NO_BUTTONS)) |
2226 build_imchat_box(TRUE); | 2226 build_imchat_box(TRUE); |
2227 | 2227 |
2228 | 2228 |
2229 /* Swing the edit buddy */ | 2229 /* Swing the edit buddy */ |
2230 editpane = gtk_vbox_new(FALSE, 0); | 2230 editpane = gtk_vbox_new(FALSE, 1); |
2231 | 2231 |
2232 | |
2233 addbutton = gtk_button_new_with_label(_("Add")); | 2232 addbutton = gtk_button_new_with_label(_("Add")); |
2234 groupbutton = gtk_button_new_with_label(_("Group")); | 2233 groupbutton = gtk_button_new_with_label(_("Group")); |
2235 rembutton = gtk_button_new_with_label(_("Remove")); | 2234 rembutton = gtk_button_new_with_label(_("Remove")); |
2236 | 2235 |
2237 if (display_options & OPT_DISP_COOL_LOOK) | 2236 if (display_options & OPT_DISP_COOL_LOOK) |
2252 | 2251 |
2253 gtk_signal_connect_after (GTK_OBJECT (edittree), "tree_move", | 2252 gtk_signal_connect_after (GTK_OBJECT (edittree), "tree_move", |
2254 GTK_SIGNAL_FUNC (edit_tree_move), NULL); | 2253 GTK_SIGNAL_FUNC (edit_tree_move), NULL); |
2255 | 2254 |
2256 | 2255 |
2257 bbox = gtk_hbox_new(TRUE, 10); | 2256 bbox = gtk_hbox_new(TRUE, 5); |
2257 gtk_container_set_border_width(GTK_CONTAINER(bbox), 5); | |
2258 tbox = gtk_scrolled_window_new(NULL, NULL); | 2258 tbox = gtk_scrolled_window_new(NULL, NULL); |
2259 /* Put the buttons in the box */ | 2259 /* Put the buttons in the box */ |
2260 gtk_box_pack_start(GTK_BOX(bbox), addbutton, TRUE, TRUE, 0); | 2260 gtk_box_pack_start(GTK_BOX(bbox), addbutton, TRUE, TRUE, 0); |
2261 gtk_box_pack_start(GTK_BOX(bbox), groupbutton, TRUE, TRUE, 0); | 2261 gtk_box_pack_start(GTK_BOX(bbox), groupbutton, TRUE, TRUE, 0); |
2262 gtk_box_pack_start(GTK_BOX(bbox), rembutton, TRUE, TRUE, 0); | 2262 gtk_box_pack_start(GTK_BOX(bbox), rembutton, TRUE, TRUE, 0); |
2264 gtk_tooltips_set_tip(tips, addbutton, _("Add a new Buddy"), "Penguin"); | 2264 gtk_tooltips_set_tip(tips, addbutton, _("Add a new Buddy"), "Penguin"); |
2265 gtk_tooltips_set_tip(tips, groupbutton, _("Add a new Group"), "Penguin"); | 2265 gtk_tooltips_set_tip(tips, groupbutton, _("Add a new Group"), "Penguin"); |
2266 gtk_tooltips_set_tip(tips, rembutton, _("Remove selected Buddy"), "Penguin"); | 2266 gtk_tooltips_set_tip(tips, rembutton, _("Remove selected Buddy"), "Penguin"); |
2267 | 2267 |
2268 /* And the boxes in the box */ | 2268 /* And the boxes in the box */ |
2269 gtk_box_pack_start(GTK_BOX(editpane), tbox, TRUE, TRUE, 5); | 2269 gtk_box_pack_start(GTK_BOX(editpane), tbox, TRUE, TRUE, 0); |
2270 gtk_box_pack_start(GTK_BOX(editpane), bbox, FALSE, FALSE, 5); | 2270 gtk_box_pack_start(GTK_BOX(editpane), bbox, FALSE, FALSE, 0); |
2271 | 2271 |
2272 /* Handle closes right */ | 2272 /* Handle closes right */ |
2273 | 2273 |
2274 | 2274 |
2275 | 2275 |