Mercurial > pidgin
diff src/main.c @ 4978:307c16c4b57e
[gaim-migrate @ 5313]
(08:55:48) Robot101: patch to:
(08:56:07) Robot101: * make online buddies appear black, not grey, when you have 'show offline buddies' turned on
(08:56:21) Robot101: * random cleanup in buddy.c (tooltip/timer freeing)
(08:56:43) Robot101: * stop the add buddy dialog resetting your choice of group when you choose an account
(08:57:03) Robot101: * fix little memleak when loading the default window icon
(08:57:16) Robot101: * make the main window use the default instead of loading the same icon itself
(08:57:42) Robot101: * make the manual browser pref validate and save when the entry widget loses focus, not with a crappy button
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Thu, 03 Apr 2003 14:05:43 +0000 |
parents | 581c73d1c863 |
children | 8e55a4d362a3 |
line wrap: on
line diff
--- a/src/main.c Thu Apr 03 14:04:02 2003 +0000 +++ b/src/main.c Thu Apr 03 14:05:43 2003 +0000 @@ -286,7 +286,6 @@ void show_login() { - GdkPixbuf *icon; GtkWidget *image; GtkWidget *vbox; GtkWidget *button; @@ -294,6 +293,7 @@ GtkWidget *label; GtkWidget *vbox2; GList *tmp; + char *filename; /* Do we already have a main window opened? If so, bring it back, baby... ribs... yeah */ if (mainwindow) { @@ -312,17 +312,12 @@ g_signal_connect(G_OBJECT(mainwindow), "delete_event", G_CALLBACK(login_window_closed), mainwindow); - - icon = gaim_pixbuf(NULL, "gaim.png"); - if (icon) { - gtk_window_set_icon(GTK_WINDOW(mainwindow), icon); - g_object_unref(G_OBJECT(icon)); - } - vbox = gtk_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(mainwindow), vbox); - image = gaim_pixmap(NULL, "logo.png"); + filename = g_build_filename(DATADIR, "pixmaps", "gaim", "logo.png", NULL); + image = gtk_image_new_from_file(filename); + g_free(filename); gtk_box_pack_start(GTK_BOX(vbox), image, FALSE, FALSE, 0); vbox2 = gtk_vbox_new(FALSE, 0); @@ -530,6 +525,7 @@ GdkPixbuf *icon = NULL; char *icon_path; #endif + if (current_smiley_theme == NULL) { smiley_theme_probe(); if (smiley_themes) { @@ -549,8 +545,9 @@ icons = g_list_append(icons,icon); gtk_window_set_default_icon_list(icons); g_object_unref(G_OBJECT(icon)); + g_list_free(icons); } else { - debug_printf("Failed to load icon from %s" G_DIR_SEPARATOR_S "pixmaps" G_DIR_SEPARATOR_S "gaim.png\n",DATADIR); + debug_printf("Failed to load default window icon!\n"); } g_snprintf(name, sizeof(name), "%s" G_DIR_SEPARATOR_S "gaim_%s.%d", g_get_tmp_dir(), g_get_user_name(), gaim_session); @@ -561,6 +558,7 @@ channel = g_io_channel_unix_new(UI_fd); g_io_add_watch(channel, G_IO_IN | G_IO_HUP | G_IO_ERR, socket_readable, NULL); #endif + return 0; }