Mercurial > pidgin
comparison src/prefs.c @ 855:82673bb41e2f
[gaim-migrate @ 865]
hehehe
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 07 Sep 2000 17:53:35 +0000 |
parents | bac7089491c1 |
children | 3de6e98e8898 |
comparison
equal
deleted
inserted
replaced
854:9e2dcad06d3c | 855:82673bb41e2f |
---|---|
39 #include "pixmaps/fontface2.xpm" | 39 #include "pixmaps/fontface2.xpm" |
40 #include "pixmaps/refresh.xpm" | 40 #include "pixmaps/refresh.xpm" |
41 #include "pixmaps/gnome_add.xpm" | 41 #include "pixmaps/gnome_add.xpm" |
42 #include "pixmaps/gnome_remove.xpm" | 42 #include "pixmaps/gnome_remove.xpm" |
43 #include "pixmaps/gnome_preferences.xpm" | 43 #include "pixmaps/gnome_preferences.xpm" |
44 #include "pixmaps/palette.xpm" | 44 #include "pixmaps/bgcolor.xpm" |
45 #include "pixmaps/fgcolor.xpm" | |
45 #include "pixmaps/save.xpm" | 46 #include "pixmaps/save.xpm" |
46 | 47 |
47 struct debug_window *dw = NULL; | 48 struct debug_window *dw = NULL; |
48 static GtkWidget *prefs = NULL; | 49 static GtkWidget *prefs = NULL; |
49 | 50 |
1010 gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 5); | 1011 gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 5); |
1011 gtk_widget_show(hbox); | 1012 gtk_widget_show(hbox); |
1012 | 1013 |
1013 button = gaim_button(_("Text Color"), &font_options, OPT_FONT_FGCOL, hbox); | 1014 button = gaim_button(_("Text Color"), &font_options, OPT_FONT_FGCOL, hbox); |
1014 | 1015 |
1015 select = picture_button(prefs, _("Select"), palette_xpm); | 1016 select = picture_button(prefs, _("Select"), fgcolor_xpm); |
1016 gtk_box_pack_start(GTK_BOX(hbox), select, FALSE, FALSE, 5); | 1017 gtk_box_pack_start(GTK_BOX(hbox), select, FALSE, FALSE, 5); |
1017 if (!(font_options & OPT_FONT_FGCOL)) | 1018 if (!(font_options & OPT_FONT_FGCOL)) |
1018 gtk_widget_set_sensitive(GTK_WIDGET(select), FALSE); | 1019 gtk_widget_set_sensitive(GTK_WIDGET(select), FALSE); |
1019 gtk_signal_connect(GTK_OBJECT(select), "clicked", GTK_SIGNAL_FUNC(show_color_dialog), (void *)1); | 1020 gtk_signal_connect(GTK_OBJECT(select), "clicked", GTK_SIGNAL_FUNC(show_color_dialog), (void *)1); |
1020 gtk_widget_show(select); | 1021 gtk_widget_show(select); |
1025 gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 5); | 1026 gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 5); |
1026 gtk_widget_show(hbox); | 1027 gtk_widget_show(hbox); |
1027 | 1028 |
1028 button = gaim_button(_("Background Color"), &font_options, OPT_FONT_BGCOL, hbox); | 1029 button = gaim_button(_("Background Color"), &font_options, OPT_FONT_BGCOL, hbox); |
1029 | 1030 |
1030 select = picture_button(prefs, _("Select"), palette_xpm); | 1031 select = picture_button(prefs, _("Select"), bgcolor_xpm); |
1031 gtk_box_pack_start(GTK_BOX(hbox), select, FALSE, FALSE, 5); | 1032 gtk_box_pack_start(GTK_BOX(hbox), select, FALSE, FALSE, 5); |
1032 if (!(font_options & OPT_FONT_BGCOL)) | 1033 if (!(font_options & OPT_FONT_BGCOL)) |
1033 gtk_widget_set_sensitive(GTK_WIDGET(select), FALSE); | 1034 gtk_widget_set_sensitive(GTK_WIDGET(select), FALSE); |
1034 gtk_signal_connect(GTK_OBJECT(select), "clicked", GTK_SIGNAL_FUNC(show_color_dialog), (void *)2); | 1035 gtk_signal_connect(GTK_OBJECT(select), "clicked", GTK_SIGNAL_FUNC(show_color_dialog), (void *)2); |
1035 gtk_widget_show(select); | 1036 gtk_widget_show(select); |