Mercurial > pidgin
comparison src/prefs.c @ 2323:bde2481bb4db
[gaim-migrate @ 2333]
option to hide icons
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 20 Sep 2001 09:12:29 +0000 |
parents | 2752abc68646 |
children | 2927c2c26fe6 |
comparison
equal
deleted
inserted
replaced
2322:2752abc68646 | 2323:bde2481bb4db |
---|---|
942 opt = tab_radio(_("Left"), OPT_IM_SIDE_TAB, vbox3, opt); | 942 opt = tab_radio(_("Left"), OPT_IM_SIDE_TAB, vbox3, opt); |
943 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(toggle_sensitive), opt); | 943 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(toggle_sensitive), opt); |
944 opt = tab_radio(_("Right"), OPT_IM_SIDE_TAB | OPT_IM_BR_TAB, vbox3, opt); | 944 opt = tab_radio(_("Right"), OPT_IM_SIDE_TAB | OPT_IM_BR_TAB, vbox3, opt); |
945 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(toggle_sensitive), opt); | 945 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(toggle_sensitive), opt); |
946 | 946 |
947 #if USE_PIXBUF | |
948 frame = gtk_frame_new(_("Buddy Icons")); | |
949 gtk_box_pack_start(GTK_BOX(box), frame, FALSE, FALSE, 5); | |
950 gtk_widget_show(frame); | |
951 | |
952 hbox = gtk_hbox_new(FALSE, 5); | |
953 gtk_container_add(GTK_CONTAINER(frame), hbox); | |
954 gtk_widget_show(hbox); | |
955 | |
956 vbox = gtk_vbox_new(FALSE, 5); | |
957 gtk_box_pack_start(GTK_BOX(hbox), vbox, TRUE, TRUE, 5); | |
958 gtk_widget_show(vbox); | |
959 | |
960 gaim_button(_("Hide Buddy Icons"), &im_options, OPT_IM_HIDE_ICONS, vbox); | |
961 #endif | |
962 | |
947 gtk_widget_show(prefdialog); | 963 gtk_widget_show(prefdialog); |
948 } | 964 } |
949 | 965 |
950 static void chat_page() | 966 static void chat_page() |
951 { | 967 { |
2469 { | 2485 { |
2470 im_options ^= option; | 2486 im_options ^= option; |
2471 | 2487 |
2472 if (option == OPT_IM_ONE_WINDOW) | 2488 if (option == OPT_IM_ONE_WINDOW) |
2473 tabize(); | 2489 tabize(); |
2490 | |
2491 if (option == OPT_IM_HIDE_ICONS) | |
2492 set_hide_icons(); | |
2474 | 2493 |
2475 save_prefs(); | 2494 save_prefs(); |
2476 } | 2495 } |
2477 | 2496 |
2478 static void set_chat_option(GtkWidget *w, int option) | 2497 static void set_chat_option(GtkWidget *w, int option) |