comparison src/buddy.c @ 3869:061ed70be441

[gaim-migrate @ 4021] Maybe we need some better icons to go down there? committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Sun, 03 Nov 2002 07:53:00 +0000
parents 9f1893ad06e8
children 71ccf763f082
comparison
equal deleted inserted replaced
3868:b7d5c2a2b0d9 3869:061ed70be441
49 49
50 #ifdef _WIN32 50 #ifdef _WIN32
51 #include "win32dep.h" 51 #include "win32dep.h"
52 #endif 52 #endif
53 53
54 #include "pixmaps/tb_search.xpm"
55 #include "pixmaps/login_icon.xpm" 54 #include "pixmaps/login_icon.xpm"
56 #include "pixmaps/logout_icon.xpm" 55 #include "pixmaps/logout_icon.xpm"
57 #include "pixmaps/no_icon.xpm" 56 #include "pixmaps/no_icon.xpm"
58 57
59 #include "pixmaps/away_small.xpm" 58 #include "pixmaps/away_small.xpm"
74 #include "pixmaps/close_small.xpm" 73 #include "pixmaps/close_small.xpm"
75 #include "pixmaps/exit_small.xpm" 74 #include "pixmaps/exit_small.xpm"
76 #include "pixmaps/pounce_small.xpm" 75 #include "pixmaps/pounce_small.xpm"
77 #include "pixmaps/about_small.xpm" 76 #include "pixmaps/about_small.xpm"
78 77
79 #include "pixmaps/tmp_send.xpm"
80 #include "pixmaps/send_small.xpm" 78 #include "pixmaps/send_small.xpm"
81 #include "pixmaps/join.xpm"
82 #include "pixmaps/gnome_add.xpm" 79 #include "pixmaps/gnome_add.xpm"
83 #include "pixmaps/gnome_remove.xpm" 80 #include "pixmaps/gnome_remove.xpm"
84 #include "pixmaps/group.xpm" 81 #include "pixmaps/group.xpm"
85 #include "pixmaps/logout_menu.xpm" 82 #include "pixmaps/logout_menu.xpm"
86 83
374 gtk_container_add(GTK_CONTAINER(button), label); 371 gtk_container_add(GTK_CONTAINER(button), label);
375 } 372 }
376 373
377 } 374 }
378 375
376 /* This will remain here until we phase out the others */
377 static void adjust_pic2(GtkWidget *button, const char *c, gchar *icon)
378 {
379 GtkWidget *pic;
380 GtkWidget *label;
381
382 /*if the user had opted to put pictures on the buttons */
383 if (blist_options & OPT_BLIST_SHOW_BUTTON_XPM && icon) {
384 label = GTK_BIN(button)->child;
385 gtk_container_remove(GTK_CONTAINER(button), label);
386 gtk_container_add(GTK_CONTAINER(button), gtk_image_new_from_stock(icon, GTK_ICON_SIZE_BUTTON));
387 gtk_widget_show_all(button);
388 } else {
389 label = gtk_label_new(c);
390 gtk_widget_show(label);
391 pic = GTK_BIN(button)->child;
392 gtk_container_remove(GTK_CONTAINER(button), pic);
393 gtk_container_add(GTK_CONTAINER(button), label);
394 }
395
396 }
397
379 398
380 void toggle_show_empty_groups() 399 void toggle_show_empty_groups()
381 { 400 {
382 if (blist_options & OPT_BLIST_NO_MT_GRP) { 401 if (blist_options & OPT_BLIST_NO_MT_GRP) {
383 /* remove any group_shows with empty members */ 402 /* remove any group_shows with empty members */
497 adjust_pic(groupbutton, _("Group"), (gchar **)group_xpm); 516 adjust_pic(groupbutton, _("Group"), (gchar **)group_xpm);
498 adjust_pic(rembutton, _("Remove"), (gchar **)gnome_remove_xpm); 517 adjust_pic(rembutton, _("Remove"), (gchar **)gnome_remove_xpm);
499 518
500 if (!(blist_options & OPT_BLIST_NO_BUTTONS)) { 519 if (!(blist_options & OPT_BLIST_NO_BUTTONS)) {
501 adjust_pic(awaybutton, _("Away"), (gchar **)away_big_xpm); 520 adjust_pic(awaybutton, _("Away"), (gchar **)away_big_xpm);
502 adjust_pic(chatbutton, _("Chat"), (gchar **)join_xpm); 521 adjust_pic2(chatbutton, _("Chat"), GTK_STOCK_JUMP_TO);
503 adjust_pic(imbutton, _("IM"), (gchar **)tmp_send_xpm); 522 adjust_pic2(imbutton, _("IM"), GTK_STOCK_CONVERT);
504 adjust_pic(infobutton, _("Info"), (gchar **)tb_search_xpm); 523 adjust_pic2(infobutton, _("Info"), GTK_STOCK_FIND);
505 } 524 }
506 gtk_widget_hide(addbutton->parent); 525 gtk_widget_hide(addbutton->parent);
507 gtk_widget_show(addbutton->parent); 526 gtk_widget_show(addbutton->parent);
508 if (!(blist_options & OPT_BLIST_NO_BUTTONS)) { 527 if (!(blist_options & OPT_BLIST_NO_BUTTONS)) {
509 gtk_widget_hide(chatbutton->parent); 528 gtk_widget_hide(chatbutton->parent);