Mercurial > pidgin
comparison src/util.c @ 623:83b0caceea9a
[gaim-migrate @ 633]
This is just a little test. Let me know what you think, guys. I'll either
do something similiar to this or not like this at all. Also, the toolbar
where BOLD/ITALIC/ETC are will be changing as well.
committer: Tailor Script <tailor@pidgin.im>
| author | Rob Flynn <gaim@robflynn.com> |
|---|---|
| date | Sun, 06 Aug 2000 09:13:38 +0000 |
| parents | faa7603ae02e |
| children | b3900e312d8e |
comparison
equal
deleted
inserted
replaced
| 622:7f8b85e2e894 | 623:83b0caceea9a |
|---|---|
| 911 gtk_box_pack_start(GTK_BOX(button_box), button_box_3, TRUE, TRUE, 0); | 911 gtk_box_pack_start(GTK_BOX(button_box), button_box_3, TRUE, TRUE, 0); |
| 912 pm = gdk_pixmap_create_from_xpm_d(window->window, &mask, NULL, xpm); | 912 pm = gdk_pixmap_create_from_xpm_d(window->window, &mask, NULL, xpm); |
| 913 pixmap = gtk_pixmap_new(pm, mask); | 913 pixmap = gtk_pixmap_new(pm, mask); |
| 914 gtk_box_pack_end(GTK_BOX(button_box_2), pixmap, FALSE, FALSE, 0); | 914 gtk_box_pack_end(GTK_BOX(button_box_2), pixmap, FALSE, FALSE, 0); |
| 915 | 915 |
| 916 label = gtk_label_new(text); | 916 if (text) |
| 917 gtk_box_pack_start(GTK_BOX(button_box_3), label, FALSE, FALSE, 2); | 917 { |
| 918 label = gtk_label_new(text); | |
| 919 gtk_box_pack_start(GTK_BOX(button_box_3), label, FALSE, FALSE, 2); | |
| 920 } | |
| 918 | 921 |
| 919 gtk_widget_show(pixmap); | 922 gtk_widget_show(pixmap); |
| 920 gtk_widget_show(label); | 923 if (text) |
| 924 { | |
| 925 gtk_widget_show(label); | |
| 926 } | |
| 921 gtk_widget_show(button_box_2); | 927 gtk_widget_show(button_box_2); |
| 922 gtk_widget_show(button_box_3); | 928 gtk_widget_show(button_box_3); |
| 923 gtk_widget_show(button_box); | 929 gtk_widget_show(button_box); |
| 924 gtk_widget_show(button); | 930 gtk_widget_show(button); |
| 925 | 931 |
| 926 return button; | 932 return button; |
| 927 } | 933 } |
| 934 | |
| 935 GtkWidget *picture_button2(GtkWidget *window, char *text, char **xpm) | |
| 936 { | |
| 937 GtkWidget *button; | |
| 938 GtkWidget *button_box, *button_box_2; | |
| 939 GdkBitmap *mask; | |
| 940 GdkPixmap *pm; | |
| 941 GtkWidget *pixmap; | |
| 942 GtkTooltips *tips; | |
| 943 | |
| 944 tips = gtk_tooltips_new(); | |
| 945 button = gtk_button_new(); | |
| 946 if (display_options & OPT_DISP_COOL_LOOK) | |
| 947 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); | |
| 948 | |
| 949 button_box = gtk_hbox_new(FALSE, 5); | |
| 950 gtk_container_add(GTK_CONTAINER(button), button_box); | |
| 951 | |
| 952 button_box_2 = gtk_hbox_new(FALSE, 0); | |
| 953 | |
| 954 gtk_box_pack_start(GTK_BOX(button_box), button_box_2, TRUE, TRUE, 0); | |
| 955 pm = gdk_pixmap_create_from_xpm_d(window->window, &mask, NULL, xpm); | |
| 956 pixmap = gtk_pixmap_new(pm, mask); | |
| 957 gtk_box_pack_end(GTK_BOX(button_box_2), pixmap, FALSE, FALSE, 0); | |
| 958 | |
| 959 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); | |
| 960 | |
| 961 gtk_widget_show(pixmap); | |
| 962 gtk_widget_show(button_box_2); | |
| 963 gtk_widget_show(button_box); | |
| 964 gtk_widget_show(button); | |
| 965 | |
| 966 gtk_tooltips_set_tip(tips, button, text, "Gaim"); | |
| 967 return button; | |
| 968 } | |
| 969 |
