Mercurial > pidgin
changeset 967:17ff662183b2
[gaim-migrate @ 977]
small code clean-ups
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 10 Oct 2000 10:48:23 +0000 |
parents | f7886476f9d9 |
children | 10d8133ffab9 |
files | src/aim.c src/dialogs.c src/prefs.c src/util.c |
diffstat | 4 files changed, 7 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/src/aim.c Tue Oct 10 10:35:05 2000 +0000 +++ b/src/aim.c Tue Oct 10 10:48:23 2000 +0000 @@ -183,7 +183,6 @@ GtkWidget *bbox; GtkWidget *hbox; GtkWidget *sbox; - GtkWidget *label; GtkWidget *table; GtkWidget *pmw;
--- a/src/dialogs.c Tue Oct 10 10:35:05 2000 +0000 +++ b/src/dialogs.c Tue Oct 10 10:48:23 2000 +0000 @@ -29,6 +29,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> +#include <ctype.h> #include <sys/socket.h> #include <netdb.h> #include <netinet/in.h>
--- a/src/prefs.c Tue Oct 10 10:35:05 2000 +0000 +++ b/src/prefs.c Tue Oct 10 10:48:23 2000 +0000 @@ -64,7 +64,6 @@ static GtkWidget *prefdialog = NULL; static GtkWidget *debugbutton = NULL; -static GtkWidget *prefrem = NULL; GtkWidget *prefs_away_list = NULL; static void destdeb(GtkWidget *m, gpointer n) @@ -73,12 +72,6 @@ debugbutton = NULL; } -static void remdes(GtkWidget *m, gpointer n) -{ - gtk_widget_destroy(prefrem); - prefrem = NULL; -} - static void general_page() { GtkWidget *parent;
--- a/src/util.c Tue Oct 10 10:35:05 2000 +0000 +++ b/src/util.c Tue Oct 10 10:48:23 2000 +0000 @@ -917,13 +917,10 @@ { label = gtk_label_new(text); gtk_box_pack_start(GTK_BOX(button_box_3), label, FALSE, FALSE, 2); + gtk_widget_show(label); } gtk_widget_show(pixmap); - if (text) - { - gtk_widget_show(label); - } gtk_widget_show(button_box_2); gtk_widget_show(button_box_3); gtk_widget_show(button_box); @@ -958,6 +955,8 @@ button_box_2 = gtk_vbox_new(FALSE, 0); gtk_box_pack_start(GTK_BOX(button_box), button_box_2, TRUE, TRUE, 0); + gtk_widget_show(button_box_2); + gtk_widget_show(button_box); if (dispstyle == 2 || dispstyle == 0) { pm = gdk_pixmap_create_from_xpm_d(window->window, &mask, NULL, xpm); pixmap = gtk_pixmap_new(pm, mask); @@ -965,6 +964,8 @@ gtk_widget_show(pixmap); + gdk_pixmap_unref(pm); + gdk_bitmap_unref(mask); } if (dispstyle == 2 || dispstyle == 1) @@ -974,15 +975,8 @@ gtk_box_pack_end(GTK_BOX(button_box_2), label, FALSE, FALSE, 0); } - gtk_widget_show(button_box_2); - gtk_widget_show(button_box); + gtk_tooltips_set_tip(tips, button, text, "Gaim"); gtk_widget_show(button); - if (dispstyle == 2 || dispstyle == 0) { - gdk_pixmap_unref(pm); - gdk_bitmap_unref(mask); - } - - gtk_tooltips_set_tip(tips, button, text, "Gaim"); return button; }