Mercurial > pidgin
comparison src/util.c @ 1152:201ec77f3a60
[gaim-migrate @ 1162]
icq. whoop de doo
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Tue, 28 Nov 2000 02:22:42 +0000 |
| parents | f3e0f41beddb |
| children | 4fd0d35826fe |
comparison
equal
deleted
inserted
replaced
| 1151:428372cc1e39 | 1152:201ec77f3a60 |
|---|---|
| 826 gdk_bitmap_unref(mask); | 826 gdk_bitmap_unref(mask); |
| 827 | 827 |
| 828 return button; | 828 return button; |
| 829 } | 829 } |
| 830 | 830 |
| 831 static GtkTooltips *tips = NULL; | 831 static GtkTooltips *button_tips = NULL; |
| 832 GtkWidget *picture_button2(GtkWidget *window, char *text, char **xpm, short dispstyle) | 832 GtkWidget *picture_button2(GtkWidget *window, char *text, char **xpm, short dispstyle) |
| 833 { | 833 { |
| 834 GtkWidget *button; | 834 GtkWidget *button; |
| 835 GtkWidget *button_box, *button_box_2; | 835 GtkWidget *button_box, *button_box_2; |
| 836 GdkBitmap *mask; | 836 GdkBitmap *mask; |
| 837 GdkPixmap *pm; | 837 GdkPixmap *pm; |
| 838 GtkWidget *pixmap; | 838 GtkWidget *pixmap; |
| 839 GtkWidget *label; | 839 GtkWidget *label; |
| 840 | 840 |
| 841 if (!tips) tips = gtk_tooltips_new(); | 841 if (!button_tips) button_tips = gtk_tooltips_new(); |
| 842 button = gtk_button_new(); | 842 button = gtk_button_new(); |
| 843 if (display_options & OPT_DISP_COOL_LOOK) | 843 if (display_options & OPT_DISP_COOL_LOOK) |
| 844 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); | 844 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); |
| 845 | 845 |
| 846 button_box = gtk_hbox_new(FALSE, 0); | 846 button_box = gtk_hbox_new(FALSE, 0); |
| 867 label = gtk_label_new(text); | 867 label = gtk_label_new(text); |
| 868 gtk_widget_show(label); | 868 gtk_widget_show(label); |
| 869 gtk_box_pack_end(GTK_BOX(button_box_2), label, FALSE, FALSE, 0); | 869 gtk_box_pack_end(GTK_BOX(button_box_2), label, FALSE, FALSE, 0); |
| 870 } | 870 } |
| 871 | 871 |
| 872 gtk_tooltips_set_tip(tips, button, text, "Gaim"); | 872 gtk_tooltips_set_tip(button_tips, button, text, "Gaim"); |
| 873 gtk_widget_show(button); | 873 gtk_widget_show(button); |
| 874 return button; | 874 return button; |
| 875 } | 875 } |
| 876 | 876 |
| 877 | 877 |
