Mercurial > pidgin
comparison src/dialogs.c @ 644:b3900e312d8e
[gaim-migrate @ 654]
hopefully this will reduce pixmap leaks. we'll see though
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Tue, 08 Aug 2000 22:50:18 +0000 |
| parents | faa7603ae02e |
| children | 8db764ce9c3f |
comparison
equal
deleted
inserted
replaced
| 643:df1ceace5cac | 644:b3900e312d8e |
|---|---|
| 2909 GtkWidget *button; | 2909 GtkWidget *button; |
| 2910 | 2910 |
| 2911 dpm = gdk_pixmap_create_from_xpm_d(win->window, &mask, &win->style->white, xpm); | 2911 dpm = gdk_pixmap_create_from_xpm_d(win->window, &mask, &win->style->white, xpm); |
| 2912 tpm = gtk_pixmap_new(dpm, mask); | 2912 tpm = gtk_pixmap_new(dpm, mask); |
| 2913 gtk_widget_show(tpm); | 2913 gtk_widget_show(tpm); |
| 2914 gdk_pixmap_unref(dpm); | |
| 2914 button = gtk_toolbar_append_element(GTK_TOOLBAR(bar), GTK_TOOLBAR_CHILD_BUTTON, NULL, NULL, NULL, NULL, tpm, GTK_SIGNAL_FUNC(set_smiley_array), (int *)face); | 2915 button = gtk_toolbar_append_element(GTK_TOOLBAR(bar), GTK_TOOLBAR_CHILD_BUTTON, NULL, NULL, NULL, NULL, tpm, GTK_SIGNAL_FUNC(set_smiley_array), (int *)face); |
| 2915 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(insert_smiley_text), c); | 2916 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(insert_smiley_text), c); |
| 2916 | 2917 |
| 2917 /* these look really weird with borders */ | 2918 /* these look really weird with borders */ |
| 2918 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); | 2919 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); |
