Mercurial > pidgin.yaz
comparison src/prefs.c @ 584:56f7cb624e9e
[gaim-migrate @ 594]
removed some unused variables, and added a pretty icon the pref
dialog's 'close' button
committer: Tailor Script <tailor@pidgin.im>
author | Todd Kulesza <fflewddur> |
---|---|
date | Wed, 02 Aug 2000 14:23:01 +0000 |
parents | a33616e4e48d |
children | e2cdcbfdc0b2 |
comparison
equal
deleted
inserted
replaced
583:ecb5371e3e24 | 584:56f7cb624e9e |
---|---|
33 #include <stdlib.h> | 33 #include <stdlib.h> |
34 #include <gtk/gtk.h> | 34 #include <gtk/gtk.h> |
35 #include "gaim.h" | 35 #include "gaim.h" |
36 #include "proxy.h" | 36 #include "proxy.h" |
37 #include "gnome_applet_mgr.h" | 37 #include "gnome_applet_mgr.h" |
38 #include "pixmaps/close.xpm" | |
38 | 39 |
39 struct prefs_data *pd = NULL; | 40 struct prefs_data *pd = NULL; |
40 struct debug_window *dw = NULL; | 41 struct debug_window *dw = NULL; |
41 | 42 |
42 GtkWidget *debugbutton; | 43 GtkWidget *debugbutton; |
341 GtkWidget *sw; | 342 GtkWidget *sw; |
342 GtkWidget *sw2; | 343 GtkWidget *sw2; |
343 GtkWidget *away_page; | 344 GtkWidget *away_page; |
344 GtkWidget *select_font; | 345 GtkWidget *select_font; |
345 GtkWidget *font_face_for_text; | 346 GtkWidget *font_face_for_text; |
347 GtkWidget *button_box, *icon_i, *close_label; | |
348 GdkBitmap *mask; | |
349 GdkPixmap *icon; | |
346 | 350 |
347 GtkWidget *list_item; | 351 GtkWidget *list_item; |
348 | 352 |
349 gchar buffer[64]; | 353 gchar buffer[64]; |
350 | 354 |
811 | 815 |
812 do_chat_page(chat_page); | 816 do_chat_page(chat_page); |
813 gtk_widget_show(chat_page); | 817 gtk_widget_show(chat_page); |
814 | 818 |
815 bbox = gtk_hbox_new(FALSE, 5); | 819 bbox = gtk_hbox_new(FALSE, 5); |
816 close = gtk_button_new_with_label(_("Close")); | 820 |
821 /* Build close button */ | |
822 | |
823 close = gtk_button_new(); | |
824 | |
825 button_box = gtk_hbox_new(FALSE, 5); | |
826 icon = gdk_pixmap_create_from_xpm_d ( pd->window->window, &mask, NULL, close_xpm); | |
827 | |
828 icon_i = gtk_pixmap_new(icon, mask); | |
829 | |
830 close_label = gtk_label_new(_("Close")); | |
831 | |
832 gtk_box_pack_start(GTK_BOX(button_box), icon_i, FALSE, FALSE, 2); | |
833 gtk_box_pack_end(GTK_BOX(button_box), close_label, FALSE, FALSE, 2); | |
834 | |
835 gtk_widget_show(close_label); | |
836 gtk_widget_show(icon_i); | |
837 | |
838 gtk_widget_show(button_box); | |
839 | |
840 gtk_container_add(GTK_CONTAINER(close), button_box); | |
841 | |
842 /* End of close button */ | |
843 | |
844 | |
817 if (display_options & OPT_DISP_COOL_LOOK) | 845 if (display_options & OPT_DISP_COOL_LOOK) |
818 gtk_button_set_relief(GTK_BUTTON(close), GTK_RELIEF_NONE); | 846 gtk_button_set_relief(GTK_BUTTON(close), GTK_RELIEF_NONE); |
819 | 847 |
820 /* Pack the button(s) in the button box */ | 848 /* Pack the button(s) in the button box */ |
821 gtk_box_pack_end(GTK_BOX(bbox), close, FALSE, FALSE, 5); | 849 gtk_box_pack_end(GTK_BOX(bbox), close, FALSE, FALSE, 5); |
822 gtk_box_pack_start(GTK_BOX(vbox),bbox, FALSE, FALSE, 5); | 850 gtk_box_pack_start(GTK_BOX(vbox),bbox, FALSE, FALSE, 5); |
823 | 851 |
824 gtk_widget_show(notebook); | 852 gtk_widget_show(notebook); |