Mercurial > pidgin
comparison src/util.c @ 759:9389216aae29
[gaim-migrate @ 769]
trying to plug leaks
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 24 Aug 2000 23:20:29 +0000 |
parents | bcae3ff49680 |
children | a566fc987db9 |
comparison
equal
deleted
inserted
replaced
758:93f4221b4446 | 759:9389216aae29 |
---|---|
934 gdk_pixmap_unref(pm); | 934 gdk_pixmap_unref(pm); |
935 | 935 |
936 return button; | 936 return button; |
937 } | 937 } |
938 | 938 |
939 static GtkTooltips *tips = NULL; | |
939 GtkWidget *picture_button2(GtkWidget *window, char *text, char **xpm, short showtext) | 940 GtkWidget *picture_button2(GtkWidget *window, char *text, char **xpm, short showtext) |
940 { | 941 { |
941 GtkWidget *button; | 942 GtkWidget *button; |
942 GtkWidget *button_box, *button_box_2; | 943 GtkWidget *button_box, *button_box_2; |
943 GdkBitmap *mask; | 944 GdkBitmap *mask; |
944 GdkPixmap *pm; | 945 GdkPixmap *pm; |
945 GtkWidget *pixmap; | 946 GtkWidget *pixmap; |
946 GtkWidget *label; | 947 GtkWidget *label; |
947 GtkTooltips *tips; | |
948 | 948 |
949 tips = gtk_tooltips_new(); | 949 if (!tips) tips = gtk_tooltips_new(); |
950 button = gtk_button_new(); | 950 button = gtk_button_new(); |
951 if (display_options & OPT_DISP_COOL_LOOK) | 951 if (display_options & OPT_DISP_COOL_LOOK) |
952 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); | 952 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); |
953 | 953 |
954 button_box = gtk_hbox_new(FALSE, 0); | 954 button_box = gtk_hbox_new(FALSE, 0); |