Mercurial > pidgin.yaz
changeset 15514:535f002e7b0f
More pidgin changes
line wrap: on
line diff
--- a/pidgin/gaimstock.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gaimstock.c Sat Feb 03 19:08:27 2007 +0000 @@ -24,7 +24,7 @@ * */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "gaimstock.h"
--- a/pidgin/gaimstock.h Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gaimstock.h Sat Feb 03 19:08:27 2007 +0000 @@ -31,56 +31,56 @@ /** @name Stock images */ /**************************************************************************/ /*@{*/ -#define PIDGIN_STOCK_ABOUT "gaim-about" -#define PIDGIN_STOCK_ACCOUNTS "gaim-accounts" -#define PIDGIN_STOCK_ACTION "gaim-action" -#define PIDGIN_STOCK_ALIAS "gaim-alias" -#define PIDGIN_STOCK_AWAY "gaim-away" -#define PIDGIN_STOCK_BGCOLOR "gaim-bgcolor" -#define PIDGIN_STOCK_BLOCK "gaim-block" -#define PIDGIN_STOCK_UNBLOCK "gaim-unblock" -#define PIDGIN_STOCK_CHAT "gaim-chat" -#define PIDGIN_STOCK_CLEAR "gaim-clear" -#define PIDGIN_STOCK_CLOSE_TABS "gaim-close-tab" -#define PIDGIN_STOCK_CONNECT "gaim-connect" -#define PIDGIN_STOCK_DEBUG "gaim-debug" -#define PIDGIN_STOCK_DISCONNECT "gaim-disconnect" -#define PIDGIN_STOCK_DOWNLOAD "gaim-download" -#define PIDGIN_STOCK_EDIT "gaim-edit" -#define PIDGIN_STOCK_FGCOLOR "gaim-fgcolor" -#define PIDGIN_STOCK_FILE_CANCELED "gaim-file-canceled" -#define PIDGIN_STOCK_FILE_DONE "gaim-file-done" -#define PIDGIN_STOCK_FILE_TRANSFER "gaim-file-transfer" -#define PIDGIN_STOCK_ICON_AWAY "gaim-icon-away" -#define PIDGIN_STOCK_ICON_AWAY_MSG "gaim-icon-away-msg" -#define PIDGIN_STOCK_ICON_CONNECT "gaim-icon-away-connect" -#define PIDGIN_STOCK_ICON_OFFLINE "gaim-icon-offline" -#define PIDGIN_STOCK_ICON_ONLINE "gaim-icon-online" -#define PIDGIN_STOCK_ICON_ONLINE_MSG "gaim-icon-online-msg" -#define PIDGIN_STOCK_IGNORE "gaim-ignore" -#define PIDGIN_STOCK_IM "gaim-im" -#define PIDGIN_STOCK_IMAGE "gaim-image" -#define PIDGIN_STOCK_INFO "gaim-info" -#define PIDGIN_STOCK_INVITE "gaim-invite" -#define PIDGIN_STOCK_LINK "gaim-link" -#define PIDGIN_STOCK_LOG "gaim-log" -#define PIDGIN_STOCK_MODIFY "gaim-modify" -#define PIDGIN_STOCK_OPEN_MAIL "gaim-stock-open-mail" -#define PIDGIN_STOCK_PAUSE "gaim-pause" -#define PIDGIN_STOCK_PENDING "gaim-pending" -#define PIDGIN_STOCK_PLUGIN "gaim-plugin" -#define PIDGIN_STOCK_POUNCE "gaim-pounce" -#define PIDGIN_STOCK_SEND "gaim-send" -#define PIDGIN_STOCK_SIGN_OFF "gaim-sign-off" -#define PIDGIN_STOCK_SIGN_ON "gaim-sign-on" -#define PIDGIN_STOCK_SMILEY "gaim-smiley" -#define PIDGIN_STOCK_TEXT_BIGGER "gaim-text-bigger" -#define PIDGIN_STOCK_TEXT_NORMAL "gaim-text-normal" -#define PIDGIN_STOCK_TEXT_SMALLER "gaim-text-smaller" -#define PIDGIN_STOCK_TYPED "gaim-typed" -#define PIDGIN_STOCK_TYPING "gaim-typing" -#define PIDGIN_STOCK_UPLOAD "gaim-upload" -#define PIDGIN_STOCK_VOICE_CHAT "gaim-voice-chat" +#define PIDGIN_STOCK_ABOUT "pidgin-about" +#define PIDGIN_STOCK_ACCOUNTS "pidgin-accounts" +#define PIDGIN_STOCK_ACTION "pidgin-action" +#define PIDGIN_STOCK_ALIAS "pidgin-alias" +#define PIDGIN_STOCK_AWAY "pidgin-away" +#define PIDGIN_STOCK_BGCOLOR "pidgin-bgcolor" +#define PIDGIN_STOCK_BLOCK "pidgin-block" +#define PIDGIN_STOCK_UNBLOCK "pidgin-unblock" +#define PIDGIN_STOCK_CHAT "pidgin-chat" +#define PIDGIN_STOCK_CLEAR "pidgin-clear" +#define PIDGIN_STOCK_CLOSE_TABS "pidgin-close-tab" +#define PIDGIN_STOCK_CONNECT "pidgin-connect" +#define PIDGIN_STOCK_DEBUG "pidgin-debug" +#define PIDGIN_STOCK_DISCONNECT "pidgin-disconnect" +#define PIDGIN_STOCK_DOWNLOAD "pidgin-download" +#define PIDGIN_STOCK_EDIT "pidgin-edit" +#define PIDGIN_STOCK_FGCOLOR "pidgin-fgcolor" +#define PIDGIN_STOCK_FILE_CANCELED "pidgin-file-canceled" +#define PIDGIN_STOCK_FILE_DONE "pidgin-file-done" +#define PIDGIN_STOCK_FILE_TRANSFER "pidgin-file-transfer" +#define PIDGIN_STOCK_ICON_AWAY "pidgin-icon-away" +#define PIDGIN_STOCK_ICON_AWAY_MSG "pidgin-icon-away-msg" +#define PIDGIN_STOCK_ICON_CONNECT "pidgin-icon-away-connect" +#define PIDGIN_STOCK_ICON_OFFLINE "pidgin-icon-offline" +#define PIDGIN_STOCK_ICON_ONLINE "pidgin-icon-online" +#define PIDGIN_STOCK_ICON_ONLINE_MSG "pidgin-icon-online-msg" +#define PIDGIN_STOCK_IGNORE "pidgin-ignore" +#define PIDGIN_STOCK_IM "pidgin-im" +#define PIDGIN_STOCK_IMAGE "pidgin-image" +#define PIDGIN_STOCK_INFO "pidgin-info" +#define PIDGIN_STOCK_INVITE "pidgin-invite" +#define PIDGIN_STOCK_LINK "pidgin-link" +#define PIDGIN_STOCK_LOG "pidgin-log" +#define PIDGIN_STOCK_MODIFY "pidgin-modify" +#define PIDGIN_STOCK_OPEN_MAIL "pidgin-stock-open-mail" +#define PIDGIN_STOCK_PAUSE "pidgin-pause" +#define PIDGIN_STOCK_PENDING "pidgin-pending" +#define PIDGIN_STOCK_PLUGIN "pidgin-plugin" +#define PIDGIN_STOCK_POUNCE "pidgin-pounce" +#define PIDGIN_STOCK_SEND "pidgin-send" +#define PIDGIN_STOCK_SIGN_OFF "pidgin-sign-off" +#define PIDGIN_STOCK_SIGN_ON "pidgin-sign-on" +#define PIDGIN_STOCK_SMILEY "pidgin-smiley" +#define PIDGIN_STOCK_TEXT_BIGGER "pidgin-text-bigger" +#define PIDGIN_STOCK_TEXT_NORMAL "pidgin-text-normal" +#define PIDGIN_STOCK_TEXT_SMALLER "pidgin-text-smaller" +#define PIDGIN_STOCK_TYPED "pidgin-typed" +#define PIDGIN_STOCK_TYPING "pidgin-typing" +#define PIDGIN_STOCK_UPLOAD "pidgin-upload" +#define PIDGIN_STOCK_VOICE_CHAT "pidgin-voice-chat" /* Status icons */ #define PIDGIN_STOCK_STATUS_AVAILABLE "pidgin-status-available"
--- a/pidgin/gtkaccount.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkaccount.c Sat Feb 03 19:08:27 2007 +0000 @@ -24,7 +24,7 @@ */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "account.h" #include "accountopt.h"
--- a/pidgin/gtkblist.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkblist.c Sat Feb 03 19:08:27 2007 +0000 @@ -24,7 +24,7 @@ * */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "account.h" #include "connection.h" @@ -4331,7 +4331,7 @@ sep = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(gtkblist->vbox), sep, FALSE, FALSE, 0); - gtkblist->scrollbook = gtk_gaim_scroll_book_new(); + gtkblist->scrollbook = pidgin_scroll_book_new(); gtk_box_pack_start(GTK_BOX(gtkblist->vbox), gtkblist->scrollbook, FALSE, FALSE, 0); /* Create an empty vbox used for showing connection errors */ @@ -4339,7 +4339,7 @@ gtk_box_pack_start(GTK_BOX(gtkblist->vbox), gtkblist->error_buttons, FALSE, FALSE, 0); /* Add the statusbox */ - gtkblist->statusbox = gtk_gaim_status_box_new(); + gtkblist->statusbox = pidgin_status_box_new(); gtk_box_pack_start(GTK_BOX(gtkblist->vbox), gtkblist->statusbox, FALSE, TRUE, 0); gtk_widget_set_name(gtkblist->statusbox, "pidginblist_statusbox"); gtk_container_set_border_width(GTK_CONTAINER(gtkblist->statusbox), 3);
--- a/pidgin/gtkblist.h Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkblist.h Sat Feb 03 19:08:27 2007 +0000 @@ -52,7 +52,7 @@ } PidginStatusIconSize; -#include "gtkgaim.h" +#include "pidgin.h" #include "blist.h" /**************************************************************************
--- a/pidgin/gtkconn.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkconn.c Sat Feb 03 19:08:27 2007 +0000 @@ -23,7 +23,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "account.h" #include "debug.h" @@ -61,9 +61,9 @@ PidginBuddyList *gtkblist = pidgin_blist_get_default_gtk_blist(); if (!gtkblist) return; - gtk_gaim_status_box_set_connecting(GTK_GAIM_STATUS_BOX(gtkblist->statusbox), + pidgin_status_box_set_connecting(PIDGIN_STATUS_BOX(gtkblist->statusbox), (gaim_connections_get_connecting() != NULL)); - gtk_gaim_status_box_pulse_connecting(GTK_GAIM_STATUS_BOX(gtkblist->statusbox)); + pidgin_status_box_pulse_connecting(PIDGIN_STATUS_BOX(gtkblist->statusbox)); } static void @@ -76,7 +76,7 @@ gtkblist = pidgin_blist_get_default_gtk_blist(); if (gtkblist != NULL) - gtk_gaim_status_box_set_connecting(GTK_GAIM_STATUS_BOX(gtkblist->statusbox), + pidgin_status_box_set_connecting(PIDGIN_STATUS_BOX(gtkblist->statusbox), (gaim_connections_get_connecting() != NULL)); g_hash_table_remove(hash, account); @@ -90,7 +90,7 @@ PidginBuddyList *gtkblist = pidgin_blist_get_default_gtk_blist(); if (!gtkblist) return; - gtk_gaim_status_box_set_connecting(GTK_GAIM_STATUS_BOX(gtkblist->statusbox), + pidgin_status_box_set_connecting(PIDGIN_STATUS_BOX(gtkblist->statusbox), (gaim_connections_get_connecting() != NULL)); if (gaim_connections_get_all() != NULL) @@ -199,7 +199,7 @@ PidginBuddyList *gtkblist = pidgin_blist_get_default_gtk_blist(); if(gtkblist) - gtk_gaim_status_box_set_network_available(GTK_GAIM_STATUS_BOX(gtkblist->statusbox), TRUE); + pidgin_status_box_set_network_available(PIDGIN_STATUS_BOX(gtkblist->statusbox), TRUE); while (list) { GaimAccount *account = (GaimAccount*)list->data; @@ -218,7 +218,7 @@ GaimConnection *gc = NULL; if(gtkblist) - gtk_gaim_status_box_set_network_available(GTK_GAIM_STATUS_BOX(gtkblist->statusbox), FALSE); + pidgin_status_box_set_network_available(PIDGIN_STATUS_BOX(gtkblist->statusbox), FALSE); while (l) { GaimAccount *a = (GaimAccount*)l->data;
--- a/pidgin/gtkconv.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkconv.c Sat Feb 03 19:08:27 2007 +0000 @@ -24,7 +24,7 @@ * */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #ifndef _WIN32 # include <X11/Xlib.h> @@ -6973,7 +6973,7 @@ * */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include <gdk/gdkkeysyms.h>
--- a/pidgin/gtkconv.h Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkconv.h Sat Feb 03 19:08:27 2007 +0000 @@ -59,7 +59,7 @@ (gaim_conversation_get_ui_ops(conv) == \ pidgin_conversations_get_conv_ui_ops()) -#include "gtkgaim.h" +#include "pidgin.h" #include "conversation.h" #include "gtkconvwin.h"
--- a/pidgin/gtkdebug.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkdebug.c Sat Feb 03 19:08:27 2007 +0000 @@ -23,7 +23,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "notify.h" #include "prefs.h"
--- a/pidgin/gtkdialogs.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkdialogs.c Sat Feb 03 19:08:27 2007 +0000 @@ -23,7 +23,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "debug.h" #include "notify.h"
--- a/pidgin/gtkdialogs.h Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkdialogs.h Sat Feb 03 19:08:27 2007 +0000 @@ -24,7 +24,7 @@ #ifndef _PIDGINDIALOGS_H_ #define _PIDGINDIALOGS_H_ -#include "gtkgaim.h" +#include "pidgin.h" #include "account.h" #include "conversation.h"
--- a/pidgin/gtkdocklet-x11.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkdocklet-x11.c Sat Feb 03 19:08:27 2007 +0000 @@ -23,7 +23,7 @@ */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "debug.h" #include "gaimstock.h"
--- a/pidgin/gtkdocklet.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkdocklet.c Sat Feb 03 19:08:27 2007 +0000 @@ -22,7 +22,7 @@ * 02111-1307, USA. */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "core.h" #include "conversation.h"
--- a/pidgin/gtkft.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkft.c Sat Feb 03 19:08:27 2007 +0000 @@ -23,7 +23,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "debug.h" #include "notify.h"
--- a/pidgin/gtkgaim.h Sat Feb 03 18:57:23 2007 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,92 +0,0 @@ -/** - * @file gtkgaim.h UI definitions and includes - * @ingroup gtkui - * - * gaim - * - * Pidgin is the legal property of its developers, whose names are too numerous - * to list here. Please refer to the COPYRIGHT file distributed with this - * source distribution. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ -/* #warning ***gtkgaim*** */ -#ifndef _PIDGINGAIM_H_ -#define _PIDGINGAIM_H_ - -#ifndef _WIN32 -# include <gdk/gdkx.h> -#endif - -#include <gtk/gtk.h> - -#ifdef _WIN32 -# include "gtkwin32dep.h" -#endif - -/** - * Our UI's identifier. - */ -#define PIDGIN_UI "gtk-gaim" - -#ifndef _WIN32 -# define GAIM_ALERT_TITLE "" -#else -# define GAIM_ALERT_TITLE PIDGIN_NAME -#endif - -/* - * This is backwards-compatibility code for older versions of GTK+ (< 2.4.x) - * It defines the new wrap behavior (unknown in earlier versions) - * as the old (slightly buggy) wrap behavior. - * It also includes our back-ported GtkExpander - */ -/** @cond */ -#if (!GTK_CHECK_VERSION(2,4,0)) -#define GTK_WRAP_WORD_CHAR GTK_WRAP_WORD -#include "gtkexpander.h" -#endif -/** @endcond */ - -/* - * We include the sources for GtkComboBox and GtkCellView because - * they don't exist in older version of Gtk+, and we use them - * in a few places. - */ -#if !GTK_CHECK_VERSION(2,6,0) -# include "gtkcellview.h" -# include "gtkcellviewmenuitem.h" -# if !GTK_CHECK_VERSION(2,4,0) -# include "gtkcelllayout.h" -# include "gaimcombobox.h" -# endif /* Gtk 2.4 */ -#endif /* Gtk 2.6 */ - -/* - * Spacings between components, as defined by the - * GNOME Human Interface Guidelines. - */ -#define GAIM_HIG_CAT_SPACE 18 -#define GAIM_HIG_BORDER 12 -#define GAIM_HIG_BOX_SPACE 6 - -/* - * See GNOME bug #307304 for some discussion about the invisible - * character. 0x25cf is a good choice, too. - */ -#define GAIM_INVISIBLE_CHAR (gunichar)0x2022 - -#endif /* _PIDGINGAIM_H_ */ -
--- a/pidgin/gtkimhtml.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkimhtml.c Sat Feb 03 19:08:27 2007 +0000 @@ -63,7 +63,7 @@ #include <pango/pango-font.h> -/* GTK+ < 2.4.x hack, see gtkgaim.h for details. */ +/* GTK+ < 2.4.x hack, see pidgin.h for details. */ #if (!GTK_CHECK_VERSION(2,4,0)) #define GTK_WRAP_WORD_CHAR GTK_WRAP_WORD #endif
--- a/pidgin/gtkimhtmltoolbar.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkimhtmltoolbar.c Sat Feb 03 19:08:27 2007 +0000 @@ -24,7 +24,7 @@ * */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "imgstore.h" #include "notify.h"
--- a/pidgin/gtklog.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtklog.c Sat Feb 03 19:08:27 2007 +0000 @@ -23,7 +23,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "account.h" #include "gtkblist.h"
--- a/pidgin/gtklog.h Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtklog.h Sat Feb 03 19:08:27 2007 +0000 @@ -25,7 +25,7 @@ #ifndef _PIDGINLOG_H_ #define _PIDGINLOG_H_ -#include "gtkgaim.h" +#include "pidgin.h" #include "log.h" #include "account.h"
--- a/pidgin/gtkmain.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkmain.c Sat Feb 03 19:08:27 2007 +0000 @@ -22,7 +22,7 @@ */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "account.h" #include "conversation.h"
--- a/pidgin/gtknotify.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtknotify.c Sat Feb 03 19:08:27 2007 +0000 @@ -23,7 +23,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include <gdk/gdkkeysyms.h>
--- a/pidgin/gtkplugin.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkplugin.c Sat Feb 03 19:08:27 2007 +0000 @@ -23,7 +23,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "gtkplugin.h" #include "gtkpluginpref.h" #include "gtkutils.h"
--- a/pidgin/gtkplugin.h Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkplugin.h Sat Feb 03 19:08:27 2007 +0000 @@ -25,7 +25,7 @@ #ifndef _PIDGINPLUGIN_H_ #define _PIDGINPLUGIN_H_ -#include "gtkgaim.h" +#include "pidgin.h" #include "plugin.h" typedef struct _PidginPluginUiInfo PidginPluginUiInfo;
--- a/pidgin/gtkpluginpref.h Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkpluginpref.h Sat Feb 03 19:08:27 2007 +0000 @@ -28,7 +28,7 @@ #include "pluginpref.h" -#include "gtkgaim.h" +#include "pidgin.h" #ifdef __cplusplus extern "C" {
--- a/pidgin/gtkpounce.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkpounce.c Sat Feb 03 19:08:27 2007 +0000 @@ -24,7 +24,7 @@ * */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "account.h" #include "conversation.h"
--- a/pidgin/gtkprefs.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkprefs.c Sat Feb 03 19:08:27 2007 +0000 @@ -24,7 +24,7 @@ * */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "debug.h" #include "notify.h"
--- a/pidgin/gtkprivacy.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkprivacy.c Sat Feb 03 19:08:27 2007 +0000 @@ -23,7 +23,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "connection.h" #include "debug.h"
--- a/pidgin/gtkrequest.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkrequest.c Sat Feb 03 19:08:27 2007 +0000 @@ -23,7 +23,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "prefs.h" #include "util.h"
--- a/pidgin/gtkroomlist.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkroomlist.c Sat Feb 03 19:08:27 2007 +0000 @@ -24,7 +24,7 @@ */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "gtkutils.h" #include "gaimstock.h" #include "debug.h"
--- a/pidgin/gtksavedstatuses.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtksavedstatuses.c Sat Feb 03 19:08:27 2007 +0000 @@ -33,7 +33,7 @@ #include "gtkblist.h" #include "gtkexpander.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "gtkimhtml.h" #include "gtkimhtmltoolbar.h" #include "gtksavedstatuses.h" @@ -1701,7 +1701,7 @@ /* Overlay a disk in the bottom left corner */ emblem = gtk_widget_render_icon(GTK_WIDGET(combobox), - GTK_STOCK_SAVE, GTK_ICON_SIZE_MENU, "GtkGaimStatusMenu"); + GTK_STOCK_SAVE, GTK_ICON_SIZE_MENU, "PidginStatusMenu"); if (emblem != NULL) { int width = gdk_pixbuf_get_width(pixbuf) / 2;
--- a/pidgin/gtkscrollbook.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkscrollbook.c Sat Feb 03 19:08:27 2007 +0000 @@ -26,15 +26,15 @@ #include "gtkscrollbook.h" -static void gtk_gaim_scroll_book_init (GtkGaimScrollBook *scroll_book); -static void gtk_gaim_scroll_book_class_init (GtkGaimScrollBookClass *klass); -static void gtk_gaim_scroll_book_forall (GtkContainer *c, +static void pidgin_scroll_book_init (PidginScrollBook *scroll_book); +static void pidgin_scroll_book_class_init (PidginScrollBookClass *klass); +static void pidgin_scroll_book_forall (GtkContainer *c, gboolean include_internals, GtkCallback callback, gpointer user_data); GType -gtk_gaim_scroll_book_get_type (void) +pidgin_scroll_book_get_type (void) { static GType scroll_book_type = 0; @@ -42,20 +42,20 @@ { static const GTypeInfo scroll_book_info = { - sizeof (GtkGaimScrollBookClass), + sizeof (PidginScrollBookClass), NULL, /* base_init */ NULL, /* base_finalize */ - (GClassInitFunc) gtk_gaim_scroll_book_class_init, + (GClassInitFunc) pidgin_scroll_book_class_init, NULL, /* class_finalize */ NULL, /* class_data */ - sizeof (GtkGaimScrollBook), + sizeof (PidginScrollBook), 0, - (GInstanceInitFunc) gtk_gaim_scroll_book_init, + (GInstanceInitFunc) pidgin_scroll_book_init, NULL /* value_table */ }; scroll_book_type = g_type_register_static(GTK_TYPE_VBOX, - "GtkGaimScrollBook", + "PidginScrollBook", &scroll_book_info, 0); } @@ -64,7 +64,7 @@ } static void -scroll_left_cb(GtkGaimScrollBook *scroll_book) +scroll_left_cb(PidginScrollBook *scroll_book) { int index; index = gtk_notebook_get_current_page(GTK_NOTEBOOK(scroll_book->notebook)); @@ -74,7 +74,7 @@ } static void -scroll_right_cb(GtkGaimScrollBook *scroll_book) +scroll_right_cb(PidginScrollBook *scroll_book) { int index, count; index = gtk_notebook_get_current_page(GTK_NOTEBOOK(scroll_book->notebook)); @@ -89,7 +89,7 @@ } static void -refresh_scroll_box(GtkGaimScrollBook *scroll_book, int index, int count) +refresh_scroll_box(PidginScrollBook *scroll_book, int index, int count) { char *label; gtk_widget_show_all(GTK_WIDGET(scroll_book)); @@ -117,7 +117,7 @@ static void -page_count_change_cb(GtkGaimScrollBook *scroll_book) +page_count_change_cb(PidginScrollBook *scroll_book) { int count; int index = gtk_notebook_get_current_page(GTK_NOTEBOOK(scroll_book->notebook)); @@ -131,7 +131,7 @@ } static void -switch_page_cb(GtkNotebook *notebook, GtkNotebookPage *page, guint page_num, GtkGaimScrollBook *scroll_book) +switch_page_cb(GtkNotebook *notebook, GtkNotebookPage *page, guint page_num, PidginScrollBook *scroll_book) { int count; #if GTK_CHECK_VERSION(2,2,0) @@ -143,37 +143,37 @@ } static void -gtk_gaim_scroll_book_add(GtkContainer *container, GtkWidget *widget) +pidgin_scroll_book_add(GtkContainer *container, GtkWidget *widget) { gtk_widget_show(widget); - gtk_notebook_append_page(GTK_NOTEBOOK(GTK_GAIM_SCROLL_BOOK(container)->notebook), widget, NULL); - page_count_change_cb(GTK_GAIM_SCROLL_BOOK(container)); + gtk_notebook_append_page(GTK_NOTEBOOK(PIDGIN_SCROLL_BOOK(container)->notebook), widget, NULL); + page_count_change_cb(PIDGIN_SCROLL_BOOK(container)); } static void -gtk_gaim_scroll_book_forall(GtkContainer *container, +pidgin_scroll_book_forall(GtkContainer *container, gboolean include_internals, GtkCallback callback, gpointer callback_data) { - GtkGaimScrollBook *scroll_book = GTK_GAIM_SCROLL_BOOK(container); + PidginScrollBook *scroll_book = PIDGIN_SCROLL_BOOK(container); if (include_internals) (*callback)(scroll_book->hbox, callback_data); (*callback)(scroll_book->notebook, callback_data); } static void -gtk_gaim_scroll_book_class_init (GtkGaimScrollBookClass *klass) +pidgin_scroll_book_class_init (PidginScrollBookClass *klass) { GtkContainerClass *container_class = (GtkContainerClass*)klass; - container_class->add = gtk_gaim_scroll_book_add; - container_class->forall = gtk_gaim_scroll_book_forall; + container_class->add = pidgin_scroll_book_add; + container_class->forall = pidgin_scroll_book_forall; } static void -gtk_gaim_scroll_book_init (GtkGaimScrollBook *scroll_book) +pidgin_scroll_book_init (PidginScrollBook *scroll_book) { GtkWidget *eb; @@ -210,7 +210,7 @@ GtkWidget * -gtk_gaim_scroll_book_new() +pidgin_scroll_book_new() { - return g_object_new(GTK_GAIM_TYPE_SCROLL_BOOK, NULL); + return g_object_new(PIDGIN_TYPE_SCROLL_BOOK, NULL); }
--- a/pidgin/gtkscrollbook.h Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkscrollbook.h Sat Feb 03 19:08:27 2007 +0000 @@ -23,8 +23,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef __GTK_GAIM_SCROLL_BOOK_H__ -#define __GTK_GAIM_SCROLL_BOOK_H__ +#ifndef __PIDGIN_SCROLL_BOOK_H__ +#define __PIDGIN_SCROLL_BOOK_H__ #include <gtk/gtk.h> @@ -34,17 +34,17 @@ G_BEGIN_DECLS -#define GTK_GAIM_TYPE_SCROLL_BOOK (gtk_gaim_scroll_book_get_type ()) -#define GTK_GAIM_SCROLL_BOOK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_GAIM_TYPE_SCROLL_BOOK, GtkGaimScrollBook)) -#define GTK_GAIM_SCROLL_BOOK_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GTK_GAIM_TYPE_SCROLL_BOOK, GtkGaimScrollBookClass)) -#define GTK_GAIM_IS_SCROLL_BOOK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_GAIM_TYPE_SCROLL_BOOK)) -#define GTK_GAIM_IS_SCROLL_BOOK_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_GAIM_TYPE_SCROLL_BOOK)) -#define GTK_GAIM_SCROLL_BOOK_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), GTK_GAIM_TYPE_SCROLL_BOOK, GtkGaimScrollBookClass)) +#define PIDGIN_TYPE_SCROLL_BOOK (pidgin_scroll_book_get_type ()) +#define PIDGIN_SCROLL_BOOK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIDGIN_TYPE_SCROLL_BOOK, PidginScrollBook)) +#define PIDGIN_SCROLL_BOOK_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), PIDGIN_TYPE_SCROLL_BOOK, PidginScrollBookClass)) +#define PIDGIN_IS_SCROLL_BOOK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIDGIN_TYPE_SCROLL_BOOK)) +#define PIDGIN_IS_SCROLL_BOOK_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), PIDGIN_TYPE_SCROLL_BOOK)) +#define PIDGIN_SCROLL_BOOK_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), PIDGIN_TYPE_SCROLL_BOOK, PidginScrollBookClass)) -typedef struct _GtkGaimScrollBook GtkGaimScrollBook; -typedef struct _GtkGaimScrollBookClass GtkGaimScrollBookClass; +typedef struct _PidginScrollBook PidginScrollBook; +typedef struct _PidginScrollBookClass PidginScrollBookClass; -struct _GtkGaimScrollBook +struct _PidginScrollBook { GtkVBox parent_instance; @@ -63,7 +63,7 @@ }; -struct _GtkGaimScrollBookClass +struct _PidginScrollBookClass { GtkComboBoxClass parent_class; @@ -75,9 +75,9 @@ }; -GType gtk_gaim_scroll_book_get_type (void) G_GNUC_CONST; -GtkWidget *gtk_gaim_scroll_book_new (void); +GType pidgin_scroll_book_get_type (void) G_GNUC_CONST; +GtkWidget *pidgin_scroll_book_new (void); G_END_DECLS -#endif /* __GTK_GAIM_SCROLL_BOOK_H__ */ +#endif /* __PIDGIN_SCROLL_BOOK_H__ */
--- a/pidgin/gtksound.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtksound.c Sat Feb 03 19:08:27 2007 +0000 @@ -24,7 +24,7 @@ * */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #ifdef _WIN32 #include <windows.h>
--- a/pidgin/gtkstatusbox.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkstatusbox.c Sat Feb 03 19:08:27 2007 +0000 @@ -48,7 +48,7 @@ #include "status.h" #include "debug.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "gtksavedstatuses.h" #include "gaimstock.h" #include "gtkstatusbox.h" @@ -65,29 +65,29 @@ static void imhtml_changed_cb(GtkTextBuffer *buffer, void *data); static void imhtml_format_changed_cb(GtkIMHtml *imhtml, GtkIMHtmlButtons buttons, void *data); -static void remove_typing_cb(GtkGaimStatusBox *box); -static void update_size (GtkGaimStatusBox *box); -static gint get_statusbox_index(GtkGaimStatusBox *box, GaimSavedStatus *saved_status); +static void remove_typing_cb(PidginStatusBox *box); +static void update_size (PidginStatusBox *box); +static gint get_statusbox_index(PidginStatusBox *box, GaimSavedStatus *saved_status); -static void gtk_gaim_status_box_pulse_typing(GtkGaimStatusBox *status_box); -static void gtk_gaim_status_box_refresh(GtkGaimStatusBox *status_box); -static void status_menu_refresh_iter(GtkGaimStatusBox *status_box); -static void gtk_gaim_status_box_regenerate(GtkGaimStatusBox *status_box); -static void gtk_gaim_status_box_changed(GtkGaimStatusBox *box); -static void gtk_gaim_status_box_size_request (GtkWidget *widget, GtkRequisition *requisition); -static void gtk_gaim_status_box_size_allocate (GtkWidget *widget, GtkAllocation *allocation); -static gboolean gtk_gaim_status_box_expose_event (GtkWidget *widget, GdkEventExpose *event); -static void gtk_gaim_status_box_redisplay_buddy_icon(GtkGaimStatusBox *status_box); -static void gtk_gaim_status_box_forall (GtkContainer *container, gboolean include_internals, GtkCallback callback, gpointer callback_data); -static void pidgin_status_box_popup(GtkGaimStatusBox *box); -static void pidgin_status_box_popdown(GtkGaimStatusBox *box); +static void pidgin_status_box_pulse_typing(PidginStatusBox *status_box); +static void pidgin_status_box_refresh(PidginStatusBox *status_box); +static void status_menu_refresh_iter(PidginStatusBox *status_box); +static void pidgin_status_box_regenerate(PidginStatusBox *status_box); +static void pidgin_status_box_changed(PidginStatusBox *box); +static void pidgin_status_box_size_request (GtkWidget *widget, GtkRequisition *requisition); +static void pidgin_status_box_size_allocate (GtkWidget *widget, GtkAllocation *allocation); +static gboolean pidgin_status_box_expose_event (GtkWidget *widget, GdkEventExpose *event); +static void pidgin_status_box_redisplay_buddy_icon(PidginStatusBox *status_box); +static void pidgin_status_box_forall (GtkContainer *container, gboolean include_internals, GtkCallback callback, gpointer callback_data); +static void pidgin_status_box_popup(PidginStatusBox *box); +static void pidgin_status_box_popdown(PidginStatusBox *box); static void do_colorshift (GdkPixbuf *dest, GdkPixbuf *src, int shift); static void icon_choose_cb(const char *filename, gpointer data); -static void remove_buddy_icon_cb(GtkWidget *w, GtkGaimStatusBox *box); +static void remove_buddy_icon_cb(GtkWidget *w, PidginStatusBox *box); enum { - /** A GtkGaimStatusBoxItemType */ + /** A PidginStatusBoxItemType */ TYPE_COLUMN, /** @@ -123,11 +123,11 @@ GtkContainerClass *parent_class = NULL; -static void gtk_gaim_status_box_class_init (GtkGaimStatusBoxClass *klass); -static void gtk_gaim_status_box_init (GtkGaimStatusBox *status_box); +static void pidgin_status_box_class_init (PidginStatusBoxClass *klass); +static void pidgin_status_box_init (PidginStatusBox *status_box); GType -gtk_gaim_status_box_get_type (void) +pidgin_status_box_get_type (void) { static GType status_box_type = 0; @@ -135,20 +135,20 @@ { static const GTypeInfo status_box_info = { - sizeof (GtkGaimStatusBoxClass), + sizeof (PidginStatusBoxClass), NULL, /* base_init */ NULL, /* base_finalize */ - (GClassInitFunc) gtk_gaim_status_box_class_init, + (GClassInitFunc) pidgin_status_box_class_init, NULL, /* class_finalize */ NULL, /* class_data */ - sizeof (GtkGaimStatusBox), + sizeof (PidginStatusBox), 0, - (GInstanceInitFunc) gtk_gaim_status_box_init, + (GInstanceInitFunc) pidgin_status_box_init, NULL /* value_table */ }; status_box_type = g_type_register_static(GTK_TYPE_CONTAINER, - "GtkGaimStatusBox", + "PidginStatusBox", &status_box_info, 0); } @@ -157,10 +157,10 @@ } static void -gtk_gaim_status_box_get_property(GObject *object, guint param_id, +pidgin_status_box_get_property(GObject *object, guint param_id, GValue *value, GParamSpec *psec) { - GtkGaimStatusBox *statusbox = GTK_GAIM_STATUS_BOX(object); + PidginStatusBox *statusbox = PIDGIN_STATUS_BOX(object); switch (param_id) { case PROP_ACCOUNT: @@ -176,7 +176,7 @@ } static void -update_to_reflect_account_status(GtkGaimStatusBox *status_box, GaimAccount *account, GaimStatus *newstatus) +update_to_reflect_account_status(PidginStatusBox *status_box, GaimAccount *account, GaimStatus *newstatus) { const GList *l; int status_no = -1; @@ -221,12 +221,12 @@ gtk_imhtml_append_text(GTK_IMHTML(status_box->imhtml), message, 0); } gtk_widget_set_sensitive(GTK_WIDGET(status_box), TRUE); - gtk_gaim_status_box_refresh(status_box); + pidgin_status_box_refresh(status_box); } } static void -account_status_changed_cb(GaimAccount *account, GaimStatus *oldstatus, GaimStatus *newstatus, GtkGaimStatusBox *status_box) +account_status_changed_cb(GaimAccount *account, GaimStatus *oldstatus, GaimStatus *newstatus, PidginStatusBox *status_box) { if (status_box->account == account) update_to_reflect_account_status(status_box, account, newstatus); @@ -235,7 +235,7 @@ } static gboolean -icon_box_press_cb(GtkWidget *widget, GdkEventButton *event, GtkGaimStatusBox *box) +icon_box_press_cb(GtkWidget *widget, GdkEventButton *event, PidginStatusBox *box) { if (event->button == 3) { GtkWidget *menu_item; @@ -268,7 +268,7 @@ static void icon_box_dnd_cb(GtkWidget *widget, GdkDragContext *dc, gint x, gint y, - GtkSelectionData *sd, guint info, guint t, GtkGaimStatusBox *box) + GtkSelectionData *sd, guint info, guint t, PidginStatusBox *box) { gchar *name = (gchar *)sd->data; @@ -297,7 +297,7 @@ static gboolean -icon_box_enter_cb(GtkWidget *widget, GdkEventCrossing *event, GtkGaimStatusBox *box) +icon_box_enter_cb(GtkWidget *widget, GdkEventCrossing *event, PidginStatusBox *box) { gdk_window_set_cursor(widget->window, box->hand_cursor); gtk_image_set_from_pixbuf(GTK_IMAGE(box->icon), box->buddy_icon_hover); @@ -305,7 +305,7 @@ } static gboolean -icon_box_leave_cb(GtkWidget *widget, GdkEventCrossing *event, GtkGaimStatusBox *box) +icon_box_leave_cb(GtkWidget *widget, GdkEventCrossing *event, PidginStatusBox *box) { gdk_window_set_cursor(widget->window, box->arrow_cursor); gtk_image_set_from_pixbuf(GTK_IMAGE(box->icon), box->buddy_icon) ; @@ -320,7 +320,7 @@ }; static void -setup_icon_box(GtkGaimStatusBox *status_box) +setup_icon_box(PidginStatusBox *status_box) { if (status_box->icon_box != NULL) return; @@ -334,12 +334,12 @@ !gaim_account_get_bool(status_box->account, "use-global-buddyicon", TRUE)) { char *string = gaim_buddy_icons_get_full_path(gaim_account_get_buddy_icon(status_box->account)); - gtk_gaim_status_box_set_buddy_icon(status_box, string); + pidgin_status_box_set_buddy_icon(status_box, string); g_free(string); } else { - gtk_gaim_status_box_set_buddy_icon(status_box, gaim_prefs_get_path("/gaim/gtk/accounts/buddyicon")); + pidgin_status_box_set_buddy_icon(status_box, gaim_prefs_get_path("/gaim/gtk/accounts/buddyicon")); } status_box->hand_cursor = gdk_cursor_new (GDK_HAND2); @@ -363,7 +363,7 @@ } static void -destroy_icon_box(GtkGaimStatusBox *statusbox) +destroy_icon_box(PidginStatusBox *statusbox) { if (statusbox->icon_box == NULL) return; @@ -394,10 +394,10 @@ } static void -gtk_gaim_status_box_set_property(GObject *object, guint param_id, +pidgin_status_box_set_property(GObject *object, guint param_id, const GValue *value, GParamSpec *pspec) { - GtkGaimStatusBox *statusbox = GTK_GAIM_STATUS_BOX(object); + PidginStatusBox *statusbox = PIDGIN_STATUS_BOX(object); switch (param_id) { case PROP_ICON_SEL: @@ -419,7 +419,7 @@ case PROP_ACCOUNT: statusbox->account = g_value_get_pointer(value); - gtk_gaim_status_box_regenerate(statusbox); + pidgin_status_box_regenerate(statusbox); break; default: @@ -429,9 +429,9 @@ } static void -gtk_gaim_status_box_finalize(GObject *obj) +pidgin_status_box_finalize(GObject *obj) { - GtkGaimStatusBox *statusbox = GTK_GAIM_STATUS_BOX(obj); + PidginStatusBox *statusbox = PIDGIN_STATUS_BOX(obj); gaim_signals_disconnect_by_handle(statusbox); gaim_prefs_disconnect_by_handle(statusbox); @@ -451,13 +451,13 @@ } static GType -gtk_gaim_status_box_child_type (GtkContainer *container) +pidgin_status_box_child_type (GtkContainer *container) { return GTK_TYPE_WIDGET; } static void -gtk_gaim_status_box_class_init (GtkGaimStatusBoxClass *klass) +pidgin_status_box_class_init (PidginStatusBoxClass *klass) { GObjectClass *object_class; GtkWidgetClass *widget_class; @@ -466,20 +466,20 @@ parent_class = g_type_class_peek_parent(klass); widget_class = (GtkWidgetClass*)klass; - widget_class->size_request = gtk_gaim_status_box_size_request; - widget_class->size_allocate = gtk_gaim_status_box_size_allocate; - widget_class->expose_event = gtk_gaim_status_box_expose_event; + widget_class->size_request = pidgin_status_box_size_request; + widget_class->size_allocate = pidgin_status_box_size_allocate; + widget_class->expose_event = pidgin_status_box_expose_event; - container_class->child_type = gtk_gaim_status_box_child_type; - container_class->forall = gtk_gaim_status_box_forall; + container_class->child_type = pidgin_status_box_child_type; + container_class->forall = pidgin_status_box_forall; container_class->remove = NULL; object_class = (GObjectClass *)klass; - object_class->finalize = gtk_gaim_status_box_finalize; + object_class->finalize = pidgin_status_box_finalize; - object_class->get_property = gtk_gaim_status_box_get_property; - object_class->set_property = gtk_gaim_status_box_set_property; + object_class->get_property = pidgin_status_box_get_property; + object_class->set_property = pidgin_status_box_set_property; g_object_class_install_property(object_class, PROP_ACCOUNT, @@ -506,7 +506,7 @@ * should modify status_box->store */ static void -gtk_gaim_status_box_refresh(GtkGaimStatusBox *status_box) +pidgin_status_box_refresh(PidginStatusBox *status_box) { GtkIconSize icon_size; GtkStyle *style; @@ -536,7 +536,7 @@ if (status_box->typing != 0) { GtkTreeIter iter; - GtkGaimStatusBoxItemType type; + PidginStatusBoxItemType type; gpointer data; /* Primary (get the status selected in the dropdown) */ @@ -549,7 +549,7 @@ TYPE_COLUMN, &type, DATA_COLUMN, &data, -1); - if (type == GTK_GAIM_STATUS_BOX_TYPE_PRIMITIVE) + if (type == PIDGIN_STATUS_BOX_TYPE_PRIMITIVE) primary = g_strdup(gaim_primitive_get_name_from_type(GPOINTER_TO_INT(data))); else /* This should never happen, but just in case... */ @@ -635,7 +635,7 @@ /* Overlay a disk in the bottom left corner */ emblem = gtk_widget_render_icon(GTK_WIDGET(status_box->vbox), - GTK_STOCK_SAVE, icon_size, "GtkGaimStatusBox"); + GTK_STOCK_SAVE, icon_size, "PidginStatusBox"); if (emblem != NULL) { int width, height; @@ -714,7 +714,7 @@ * keyboard signals instead of the changed signal? */ static void -status_menu_refresh_iter(GtkGaimStatusBox *status_box) +status_menu_refresh_iter(PidginStatusBox *status_box) { GaimSavedStatus *saved_status; GaimStatusPrimitive primitive; @@ -750,7 +750,7 @@ else { GtkTreeIter iter; - GtkGaimStatusBoxItemType type; + PidginStatusBoxItemType type; gpointer data; /* If this saved status is in the list store, then set it as the active item */ @@ -766,7 +766,7 @@ /* This is a special case because Primitives for the token_status_account are actually * saved statuses with substatuses for the enabled accounts */ if (status_box->token_status_account && gaim_savedstatus_is_transient(saved_status) - && type == GTK_GAIM_STATUS_BOX_TYPE_PRIMITIVE && primitive == GPOINTER_TO_INT(data)) + && type == PIDGIN_STATUS_BOX_TYPE_PRIMITIVE && primitive == GPOINTER_TO_INT(data)) { char *name; const char *acct_status_name = gaim_status_get_name( @@ -785,7 +785,7 @@ } g_free(name); - } else if ((type == GTK_GAIM_STATUS_BOX_TYPE_POPULAR) && + } else if ((type == PIDGIN_STATUS_BOX_TYPE_POPULAR) && (GPOINTER_TO_INT(data) == gaim_savedstatus_get_creation_time(saved_status))) { /* Found! */ @@ -834,7 +834,7 @@ } static void -add_popular_statuses(GtkGaimStatusBox *statusbox) +add_popular_statuses(PidginStatusBox *statusbox) { GtkIconSize icon_size; GList *list, *cur; @@ -848,7 +848,7 @@ icon_size = gtk_icon_size_from_name(PIDGIN_ICON_SIZE_TANGO_EXTRA_SMALL); - gtk_gaim_status_box_add_separator(statusbox); + pidgin_status_box_add_separator(statusbox); for (cur = list; cur != NULL; cur = cur->next) { @@ -895,7 +895,7 @@ #if 0 /* Overlay a disk in the bottom left corner */ emblem = gtk_widget_render_icon(GTK_WIDGET(statusbox->vbox), - GTK_STOCK_SAVE, icon_size, "GtkGaimStatusBox"); + GTK_STOCK_SAVE, icon_size, "PidginStatusBox"); if (emblem != NULL) { width = gdk_pixbuf_get_width(pixbuf) / 2; @@ -908,7 +908,7 @@ #endif } - gtk_gaim_status_box_add(statusbox, GTK_GAIM_STATUS_BOX_TYPE_POPULAR, + pidgin_status_box_add(statusbox, PIDGIN_STATUS_BOX_TYPE_POPULAR, pixbuf, gaim_savedstatus_get_title(saved), stripped, GINT_TO_POINTER(gaim_savedstatus_get_creation_time(saved))); g_free(stripped); @@ -970,7 +970,7 @@ } static void -add_account_statuses(GtkGaimStatusBox *status_box, GaimAccount *account) +add_account_statuses(PidginStatusBox *status_box, GaimAccount *account) { /* Per-account */ const GList *l; @@ -1003,8 +1003,8 @@ pixbuf = gtk_widget_render_icon (GTK_WIDGET(status_box), PIDGIN_STOCK_STATUS_AVAILABLE, icon_size, "PidginStatusBox"); - gtk_gaim_status_box_add(GTK_GAIM_STATUS_BOX(status_box), - GTK_GAIM_STATUS_BOX_TYPE_PRIMITIVE, pixbuf, + pidgin_status_box_add(PIDGIN_STATUS_BOX(status_box), + PIDGIN_STATUS_BOX_TYPE_PRIMITIVE, pixbuf, gaim_status_type_get_name(status_type), NULL, GINT_TO_POINTER(gaim_status_type_get_primitive(status_type))); @@ -1014,7 +1014,7 @@ } static void -gtk_gaim_status_box_regenerate(GtkGaimStatusBox *status_box) +pidgin_status_box_regenerate(PidginStatusBox *status_box) { GdkPixbuf *pixbuf, *pixbuf2, *pixbuf3, *pixbuf4; GtkIconSize icon_size; @@ -1032,7 +1032,7 @@ if (status_box->account == NULL) { pixbuf = gtk_widget_render_icon (GTK_WIDGET(status_box->vbox), PIDGIN_STOCK_STATUS_AVAILABLE, - icon_size, "GtkGaimStatusBox"); + icon_size, "PidginStatusBox"); /* Do all the currently enabled accounts have the same statuses? * If so, display them instead of our global list. */ @@ -1047,10 +1047,10 @@ pixbuf4 = gtk_widget_render_icon (GTK_WIDGET(status_box->vbox), PIDGIN_STOCK_STATUS_AVAILABLE_I, icon_size, "PidginStatusBox"); - gtk_gaim_status_box_add(GTK_GAIM_STATUS_BOX(status_box), GTK_GAIM_STATUS_BOX_TYPE_PRIMITIVE, pixbuf, _("Available"), NULL, GINT_TO_POINTER(GAIM_STATUS_AVAILABLE)); - gtk_gaim_status_box_add(GTK_GAIM_STATUS_BOX(status_box), GTK_GAIM_STATUS_BOX_TYPE_PRIMITIVE, pixbuf2, _("Away"), NULL, GINT_TO_POINTER(GAIM_STATUS_AWAY)); - gtk_gaim_status_box_add(GTK_GAIM_STATUS_BOX(status_box), GTK_GAIM_STATUS_BOX_TYPE_PRIMITIVE, pixbuf4, _("Invisible"), NULL, GINT_TO_POINTER(GAIM_STATUS_INVISIBLE)); - gtk_gaim_status_box_add(GTK_GAIM_STATUS_BOX(status_box), GTK_GAIM_STATUS_BOX_TYPE_PRIMITIVE, pixbuf3, _("Offline"), NULL, GINT_TO_POINTER(GAIM_STATUS_OFFLINE)); + pidgin_status_box_add(PIDGIN_STATUS_BOX(status_box), PIDGIN_STATUS_BOX_TYPE_PRIMITIVE, pixbuf, _("Available"), NULL, GINT_TO_POINTER(GAIM_STATUS_AVAILABLE)); + pidgin_status_box_add(PIDGIN_STATUS_BOX(status_box), PIDGIN_STATUS_BOX_TYPE_PRIMITIVE, pixbuf2, _("Away"), NULL, GINT_TO_POINTER(GAIM_STATUS_AWAY)); + pidgin_status_box_add(PIDGIN_STATUS_BOX(status_box), PIDGIN_STATUS_BOX_TYPE_PRIMITIVE, pixbuf4, _("Invisible"), NULL, GINT_TO_POINTER(GAIM_STATUS_INVISIBLE)); + pidgin_status_box_add(PIDGIN_STATUS_BOX(status_box), PIDGIN_STATUS_BOX_TYPE_PRIMITIVE, pixbuf3, _("Offline"), NULL, GINT_TO_POINTER(GAIM_STATUS_OFFLINE)); if (pixbuf2) g_object_unref(G_OBJECT(pixbuf2)); if (pixbuf3) g_object_unref(G_OBJECT(pixbuf3)); @@ -1059,13 +1059,13 @@ add_popular_statuses(status_box); - gtk_gaim_status_box_add_separator(GTK_GAIM_STATUS_BOX(status_box)); - gtk_gaim_status_box_add(GTK_GAIM_STATUS_BOX(status_box), GTK_GAIM_STATUS_BOX_TYPE_CUSTOM, pixbuf, _("New..."), NULL, NULL); - gtk_gaim_status_box_add(GTK_GAIM_STATUS_BOX(status_box), GTK_GAIM_STATUS_BOX_TYPE_SAVED, pixbuf, _("Saved..."), NULL, NULL); + pidgin_status_box_add_separator(PIDGIN_STATUS_BOX(status_box)); + pidgin_status_box_add(PIDGIN_STATUS_BOX(status_box), PIDGIN_STATUS_BOX_TYPE_CUSTOM, pixbuf, _("New..."), NULL, NULL); + pidgin_status_box_add(PIDGIN_STATUS_BOX(status_box), PIDGIN_STATUS_BOX_TYPE_SAVED, pixbuf, _("Saved..."), NULL, NULL); if (pixbuf) g_object_unref(G_OBJECT(pixbuf)); status_menu_refresh_iter(status_box); - gtk_gaim_status_box_refresh(status_box); + pidgin_status_box_refresh(status_box); } else { add_account_statuses(status_box, status_box->account); @@ -1078,7 +1078,7 @@ static gboolean combo_box_scroll_event_cb(GtkWidget *w, GdkEventScroll *event, GtkIMHtml *imhtml) { - pidgin_status_box_popup(GTK_GAIM_STATUS_BOX(w)); + pidgin_status_box_popup(PIDGIN_STATUS_BOX(w)); return TRUE; } @@ -1091,7 +1091,7 @@ return TRUE; } -static int imhtml_remove_focus(GtkWidget *w, GdkEventKey *event, GtkGaimStatusBox *status_box) +static int imhtml_remove_focus(GtkWidget *w, GdkEventKey *event, PidginStatusBox *status_box) { if (event->keyval == GDK_Tab || event->keyval == GDK_KP_Tab) { @@ -1115,12 +1115,12 @@ gaim_account_get_active_status(status_box->account)); else { status_menu_refresh_iter(status_box); - gtk_gaim_status_box_refresh(status_box); + pidgin_status_box_refresh(status_box); } return TRUE; } - gtk_gaim_status_box_pulse_typing(status_box); + pidgin_status_box_pulse_typing(status_box); g_source_remove(status_box->typing); status_box->typing = g_timeout_add(TYPING_TIMEOUT, (GSourceFunc)remove_typing_cb, status_box); @@ -1132,11 +1132,11 @@ dropdown_store_row_separator_func(GtkTreeModel *model, GtkTreeIter *iter, gpointer data) { - GtkGaimStatusBoxItemType type; + PidginStatusBoxItemType type; gtk_tree_model_get(model, iter, TYPE_COLUMN, &type, -1); - if (type == GTK_GAIM_STATUS_BOX_TYPE_SEPARATOR) + if (type == PIDGIN_STATUS_BOX_TYPE_SEPARATOR) return TRUE; return FALSE; @@ -1144,7 +1144,7 @@ #endif static void -cache_pixbufs(GtkGaimStatusBox *status_box) +cache_pixbufs(PidginStatusBox *status_box) { GtkIconSize icon_size; @@ -1190,23 +1190,23 @@ icon_size, "PidginStatusBox"); } -static void account_enabled_cb(GaimAccount *acct, GtkGaimStatusBox *status_box) { +static void account_enabled_cb(GaimAccount *acct, PidginStatusBox *status_box) { GaimAccount *initial_token_acct = status_box->token_status_account; status_box->token_status_account = check_active_accounts_for_identical_statuses(); /* Regenerate the list if it has changed */ if (initial_token_acct != status_box->token_status_account) { - gtk_gaim_status_box_regenerate(status_box); + pidgin_status_box_regenerate(status_box); } } static void -current_savedstatus_changed_cb(GaimSavedStatus *now, GaimSavedStatus *old, GtkGaimStatusBox *status_box) +current_savedstatus_changed_cb(GaimSavedStatus *now, GaimSavedStatus *old, PidginStatusBox *status_box) { /* Make sure our current status is added to the list of popular statuses */ - gtk_gaim_status_box_regenerate(status_box); + pidgin_status_box_regenerate(status_box); } static void @@ -1214,7 +1214,7 @@ gconstpointer value, gpointer data) { #ifdef USE_GTKSPELL - GtkGaimStatusBox *status_box = (GtkGaimStatusBox *)data; + PidginStatusBox *status_box = (PidginStatusBox *)data; if (value) pidgin_setup_gtkspell(GTK_TEXT_VIEW(status_box->imhtml)); @@ -1228,7 +1228,7 @@ } #if 0 -static gboolean button_released_cb(GtkWidget *widget, GdkEventButton *event, GtkGaimStatusBox *box) +static gboolean button_released_cb(GtkWidget *widget, GdkEventButton *event, PidginStatusBox *box) { if (event->button != 1) @@ -1239,7 +1239,7 @@ return TRUE; } -static gboolean button_pressed_cb(GtkWidget *widget, GdkEventButton *event, GtkGaimStatusBox *box) +static gboolean button_pressed_cb(GtkWidget *widget, GdkEventButton *event, PidginStatusBox *box) { if (event->button != 1) return FALSE; @@ -1251,7 +1251,7 @@ #endif static void -gtk_gaim_status_box_list_position (GtkGaimStatusBox *status_box, int *x, int *y, int *width, int *height) +pidgin_status_box_list_position (PidginStatusBox *status_box, int *x, int *y, int *width, int *height) { #if GTK_CHECK_VERSION(2,2,0) GdkScreen *screen; @@ -1351,10 +1351,10 @@ static void -pidgin_status_box_popup(GtkGaimStatusBox *box) +pidgin_status_box_popup(PidginStatusBox *box) { int width, height, x, y; - gtk_gaim_status_box_list_position (box, &x, &y, &width, &height); + pidgin_status_box_list_position (box, &x, &y, &width, &height); gtk_widget_set_size_request (box->popup_window, width, height); gtk_window_move (GTK_WINDOW (box->popup_window), x, y); @@ -1378,7 +1378,7 @@ } static void -pidgin_status_box_popdown(GtkGaimStatusBox *box) { +pidgin_status_box_popdown(PidginStatusBox *box) { gtk_widget_hide(box->popup_window); box->popup_in_progress = FALSE; gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (box->toggle_button), @@ -1388,7 +1388,7 @@ static void -toggled_cb(GtkWidget *widget, GtkGaimStatusBox *box) +toggled_cb(GtkWidget *widget, PidginStatusBox *box) { if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget))) { if (!box->popup_in_progress) @@ -1399,7 +1399,7 @@ } static void -buddy_icon_set_cb(const char *filename, GtkGaimStatusBox *box) +buddy_icon_set_cb(const char *filename, PidginStatusBox *box) { if (box->account) { @@ -1437,11 +1437,11 @@ } } } - gtk_gaim_status_box_set_buddy_icon(box, filename); + pidgin_status_box_set_buddy_icon(box, filename); } static void -remove_buddy_icon_cb(GtkWidget *w, GtkGaimStatusBox *box) +remove_buddy_icon_cb(GtkWidget *w, PidginStatusBox *box) { if (box->account == NULL) /* The pref-connect callback does the actual work */ @@ -1456,7 +1456,7 @@ static void icon_choose_cb(const char *filename, gpointer data) { - GtkGaimStatusBox *box = data; + PidginStatusBox *box = data; if (filename) { if (box->account == NULL) /* The pref-connect callback does the actual work */ @@ -1472,11 +1472,11 @@ update_buddyicon_cb(const char *name, GaimPrefType type, gconstpointer value, gpointer data) { - buddy_icon_set_cb(value, (GtkGaimStatusBox*) data); + buddy_icon_set_cb(value, (PidginStatusBox*) data); } static void -treeview_activate_current_selection(GtkGaimStatusBox *status_box, GtkTreePath *path) +treeview_activate_current_selection(PidginStatusBox *status_box, GtkTreePath *path) { if (status_box->active_row) gtk_tree_row_reference_free(status_box->active_row); @@ -1484,11 +1484,11 @@ status_box->active_row = gtk_tree_row_reference_new(GTK_TREE_MODEL(status_box->dropdown_store), path); pidgin_status_box_popdown (status_box); - gtk_gaim_status_box_changed(status_box); + pidgin_status_box_changed(status_box); } static gboolean -treeview_button_release_cb(GtkWidget *widget, GdkEventButton *event, GtkGaimStatusBox *status_box) +treeview_button_release_cb(GtkWidget *widget, GdkEventButton *event, PidginStatusBox *status_box) { GtkTreePath *path = NULL; int ret; @@ -1528,7 +1528,7 @@ static gboolean treeview_key_press_event(GtkWidget *widget, - GdkEventKey *event, GtkGaimStatusBox *box) + GdkEventKey *event, PidginStatusBox *box) { if (box->popup_in_progress) { if (event->keyval == GDK_Escape) { @@ -1551,7 +1551,7 @@ } static void -gtk_gaim_status_box_init (GtkGaimStatusBox *status_box) +pidgin_status_box_init (PidginStatusBox *status_box) { GtkCellRenderer *text_rend; GtkCellRenderer *icon_rend; @@ -1704,7 +1704,7 @@ status_box->token_status_account = check_active_accounts_for_identical_statuses(); cache_pixbufs(status_box); - gtk_gaim_status_box_regenerate(status_box); + pidgin_status_box_regenerate(status_box); gaim_signal_connect(gaim_savedstatuses_get_handle(), "savedstatus-changed", status_box, @@ -1727,20 +1727,20 @@ } static void -gtk_gaim_status_box_size_request(GtkWidget *widget, +pidgin_status_box_size_request(GtkWidget *widget, GtkRequisition *requisition) { GtkRequisition box_req; gint border_width = GTK_CONTAINER (widget)->border_width; - gtk_widget_size_request(GTK_GAIM_STATUS_BOX(widget)->toggle_button, requisition); + gtk_widget_size_request(PIDGIN_STATUS_BOX(widget)->toggle_button, requisition); /* Make this icon the same size as other buddy icons in the list; unless it already wants to be bigger */ requisition->height = MAX(requisition->height, 34); requisition->height += border_width * 2; /* If the gtkimhtml is visible, then add some additional padding */ - gtk_widget_size_request(GTK_GAIM_STATUS_BOX(widget)->vbox, &box_req); + gtk_widget_size_request(PIDGIN_STATUS_BOX(widget)->vbox, &box_req); if (box_req.height > 1) requisition->height += box_req.height + border_width * 2; @@ -1788,10 +1788,10 @@ } static void -gtk_gaim_status_box_size_allocate(GtkWidget *widget, +pidgin_status_box_size_allocate(GtkWidget *widget, GtkAllocation *allocation) { - GtkGaimStatusBox *status_box = GTK_GAIM_STATUS_BOX(widget); + PidginStatusBox *status_box = PIDGIN_STATUS_BOX(widget); GtkRequisition req = {0,0}; GtkAllocation parent_alc, box_alc, icon_alc; gint border_width = GTK_CONTAINER (widget)->border_width; @@ -1834,7 +1834,7 @@ if (status_box->icon_size != icon_alc.height) { status_box->icon_size = icon_alc.height; - gtk_gaim_status_box_redisplay_buddy_icon(status_box); + pidgin_status_box_redisplay_buddy_icon(status_box); } gtk_widget_size_allocate(status_box->icon_box, &icon_alc); } @@ -1843,10 +1843,10 @@ } static gboolean -gtk_gaim_status_box_expose_event(GtkWidget *widget, +pidgin_status_box_expose_event(GtkWidget *widget, GdkEventExpose *event) { - GtkGaimStatusBox *status_box = GTK_GAIM_STATUS_BOX(widget); + PidginStatusBox *status_box = PIDGIN_STATUS_BOX(widget); gtk_container_propagate_expose(GTK_CONTAINER(widget), status_box->vbox, event); gtk_container_propagate_expose(GTK_CONTAINER(widget), status_box->toggle_button, event); if (status_box->icon_box && status_box->icon_opaque) { @@ -1858,12 +1858,12 @@ } static void -gtk_gaim_status_box_forall(GtkContainer *container, +pidgin_status_box_forall(GtkContainer *container, gboolean include_internals, GtkCallback callback, gpointer callback_data) { - GtkGaimStatusBox *status_box = GTK_GAIM_STATUS_BOX (container); + PidginStatusBox *status_box = PIDGIN_STATUS_BOX (container); if (include_internals) { @@ -1876,16 +1876,16 @@ } GtkWidget * -gtk_gaim_status_box_new() +pidgin_status_box_new() { - return g_object_new(GTK_GAIM_TYPE_STATUS_BOX, "account", NULL, + return g_object_new(PIDGIN_TYPE_STATUS_BOX, "account", NULL, "iconsel", TRUE, NULL); } GtkWidget * -gtk_gaim_status_box_new_with_account(GaimAccount *account) +pidgin_status_box_new_with_account(GaimAccount *account) { - return g_object_new(GTK_GAIM_TYPE_STATUS_BOX, "account", account, + return g_object_new(PIDGIN_TYPE_STATUS_BOX, "account", account, "iconsel", TRUE, NULL); } @@ -1893,7 +1893,7 @@ * Add a row to the dropdown menu. * * @param status_box The status box itself. - * @param type A GtkGaimStatusBoxItemType. + * @param type A PidginStatusBoxItemType. * @param pixbuf The icon to associate with this row in the menu. * @param title The title of this item. For the primitive entries, * this is something like "Available" or "Away." For @@ -1910,7 +1910,7 @@ * creation timestamp. */ void -gtk_gaim_status_box_add(GtkGaimStatusBox *status_box, GtkGaimStatusBoxItemType type, GdkPixbuf *pixbuf, const char *title, const char *desc, gpointer data) +pidgin_status_box_add(PidginStatusBox *status_box, PidginStatusBoxItemType type, GdkPixbuf *pixbuf, const char *title, const char *desc, gpointer data) { GtkTreeIter iter; char *text; @@ -1953,7 +1953,7 @@ } void -gtk_gaim_status_box_add_separator(GtkGaimStatusBox *status_box) +pidgin_status_box_add_separator(PidginStatusBox *status_box) { /* Don't do anything unless GTK actually supports * gtk_combo_box_set_row_separator_func */ @@ -1962,31 +1962,31 @@ gtk_list_store_append(status_box->dropdown_store, &iter); gtk_list_store_set(status_box->dropdown_store, &iter, - TYPE_COLUMN, GTK_GAIM_STATUS_BOX_TYPE_SEPARATOR, + TYPE_COLUMN, PIDGIN_STATUS_BOX_TYPE_SEPARATOR, -1); #endif } void -gtk_gaim_status_box_set_network_available(GtkGaimStatusBox *status_box, gboolean available) +pidgin_status_box_set_network_available(PidginStatusBox *status_box, gboolean available) { if (!status_box) return; status_box->network_available = available; - gtk_gaim_status_box_refresh(status_box); + pidgin_status_box_refresh(status_box); } void -gtk_gaim_status_box_set_connecting(GtkGaimStatusBox *status_box, gboolean connecting) +pidgin_status_box_set_connecting(PidginStatusBox *status_box, gboolean connecting) { if (!status_box) return; status_box->connecting = connecting; - gtk_gaim_status_box_refresh(status_box); + pidgin_status_box_refresh(status_box); } static void -gtk_gaim_status_box_redisplay_buddy_icon(GtkGaimStatusBox *status_box) +pidgin_status_box_redisplay_buddy_icon(PidginStatusBox *status_box) { /* This is sometimes called before the box is shown, and we will not have a size */ @@ -2025,22 +2025,22 @@ } void -gtk_gaim_status_box_set_buddy_icon(GtkGaimStatusBox *status_box, const char *filename) +pidgin_status_box_set_buddy_icon(PidginStatusBox *status_box, const char *filename) { g_free(status_box->buddy_icon_path); status_box->buddy_icon_path = g_strdup(filename); - gtk_gaim_status_box_redisplay_buddy_icon(status_box); + pidgin_status_box_redisplay_buddy_icon(status_box); } const char* -gtk_gaim_status_box_get_buddy_icon(GtkGaimStatusBox *box) +pidgin_status_box_get_buddy_icon(PidginStatusBox *box) { return box->buddy_icon_path; } void -gtk_gaim_status_box_pulse_connecting(GtkGaimStatusBox *status_box) +pidgin_status_box_pulse_connecting(PidginStatusBox *status_box) { if (!status_box) return; @@ -2048,17 +2048,17 @@ status_box->connecting_index = 0; else status_box->connecting_index++; - gtk_gaim_status_box_refresh(status_box); + pidgin_status_box_refresh(status_box); } static void -gtk_gaim_status_box_pulse_typing(GtkGaimStatusBox *status_box) +pidgin_status_box_pulse_typing(PidginStatusBox *status_box) { if (status_box->typing_index == 3) status_box->typing_index = 0; else status_box->typing_index++; - gtk_gaim_status_box_refresh(status_box); + pidgin_status_box_refresh(status_box); } static gboolean @@ -2074,9 +2074,9 @@ } static void -activate_currently_selected_status(GtkGaimStatusBox *status_box) +activate_currently_selected_status(PidginStatusBox *status_box) { - GtkGaimStatusBoxItemType type; + PidginStatusBoxItemType type; gpointer data; gchar *title; GtkTreeIter iter; @@ -2103,13 +2103,13 @@ * accordingly by connecting to the savedstatus-changed * signal and then calling status_menu_refresh_iter() */ - if (type != GTK_GAIM_STATUS_BOX_TYPE_PRIMITIVE) + if (type != PIDGIN_STATUS_BOX_TYPE_PRIMITIVE) return; gtk_tree_model_get(GTK_TREE_MODEL(status_box->dropdown_store), &iter, TITLE_COLUMN, &title, -1); - message = gtk_gaim_status_box_get_message(status_box); + message = pidgin_status_box_get_message(status_box); if (!message || !*message) { gtk_widget_hide_all(status_box->vbox); @@ -2266,7 +2266,7 @@ g_free(message); } -static void update_size(GtkGaimStatusBox *status_box) +static void update_size(PidginStatusBox *status_box) { GtkTextBuffer *buffer; GtkTextIter iter; @@ -2307,7 +2307,7 @@ gtk_widget_set_size_request(status_box->vbox, -1, height + GAIM_HIG_BOX_SPACE); } -static void remove_typing_cb(GtkGaimStatusBox *status_box) +static void remove_typing_cb(PidginStatusBox *status_box) { if (status_box->typing == 0) { @@ -2320,14 +2320,14 @@ status_box->typing = 0; activate_currently_selected_status(status_box); - gtk_gaim_status_box_refresh(status_box); + pidgin_status_box_refresh(status_box); } -static void gtk_gaim_status_box_changed(GtkGaimStatusBox *status_box) +static void pidgin_status_box_changed(PidginStatusBox *status_box) { GtkTreePath *path = gtk_tree_row_reference_get_path(status_box->active_row); GtkTreeIter iter; - GtkGaimStatusBoxItemType type; + PidginStatusBoxItemType type; gpointer data; GList *accounts = NULL, *node; int active; @@ -2349,7 +2349,7 @@ if (GTK_WIDGET_IS_SENSITIVE(GTK_WIDGET(status_box))) { - if (type == GTK_GAIM_STATUS_BOX_TYPE_POPULAR) + if (type == PIDGIN_STATUS_BOX_TYPE_POPULAR) { GaimSavedStatus *saved; saved = gaim_savedstatus_find_by_creation_time(GPOINTER_TO_INT(data)); @@ -2358,7 +2358,7 @@ return; } - if (type == GTK_GAIM_STATUS_BOX_TYPE_CUSTOM) + if (type == PIDGIN_STATUS_BOX_TYPE_CUSTOM) { GaimSavedStatus *saved_status; saved_status = gaim_savedstatus_get_current(); @@ -2369,7 +2369,7 @@ return; } - if (type == GTK_GAIM_STATUS_BOX_TYPE_SAVED) + if (type == PIDGIN_STATUS_BOX_TYPE_SAVED) { pidgin_status_window_show(); status_menu_refresh_iter(status_box); @@ -2419,11 +2419,11 @@ return; } } - gtk_gaim_status_box_refresh(status_box); + pidgin_status_box_refresh(status_box); } static gint -get_statusbox_index(GtkGaimStatusBox *box, GaimSavedStatus *saved_status) +get_statusbox_index(PidginStatusBox *box, GaimSavedStatus *saved_status) { gint index; @@ -2451,16 +2451,16 @@ static void imhtml_changed_cb(GtkTextBuffer *buffer, void *data) { - GtkGaimStatusBox *status_box = (GtkGaimStatusBox*)data; + PidginStatusBox *status_box = (PidginStatusBox*)data; if (GTK_WIDGET_IS_SENSITIVE(GTK_WIDGET(status_box))) { if (status_box->typing != 0) { - gtk_gaim_status_box_pulse_typing(status_box); + pidgin_status_box_pulse_typing(status_box); g_source_remove(status_box->typing); } status_box->typing = g_timeout_add(TYPING_TIMEOUT, (GSourceFunc)remove_typing_cb, status_box); } - gtk_gaim_status_box_refresh(status_box); + pidgin_status_box_refresh(status_box); } static void imhtml_format_changed_cb(GtkIMHtml *imhtml, GtkIMHtmlButtons buttons, void *data) @@ -2468,7 +2468,7 @@ imhtml_changed_cb(NULL, data); } -char *gtk_gaim_status_box_get_message(GtkGaimStatusBox *status_box) +char *pidgin_status_box_get_message(PidginStatusBox *status_box) { if (status_box->imhtml_visible) return gtk_imhtml_get_markup(GTK_IMHTML(status_box->imhtml));
--- a/pidgin/gtkstatusbox.h Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkstatusbox.h Sat Feb 03 19:08:27 2007 +0000 @@ -24,8 +24,8 @@ */ -#ifndef __GTK_GAIM_STATUS_BOX_H__ -#define __GTK_GAIM_STATUS_BOX_H__ +#ifndef __PIDGIN_STATUS_BOX_H__ +#define __PIDGIN_STATUS_BOX_H__ #include <gtk/gtk.h> #include "gtkimhtml.h" @@ -37,12 +37,12 @@ G_BEGIN_DECLS -#define GTK_GAIM_TYPE_STATUS_BOX (gtk_gaim_status_box_get_type ()) -#define GTK_GAIM_STATUS_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_GAIM_TYPE_STATUS_BOX, GtkGaimStatusBox)) -#define GTK_GAIM_STATUS_BOX_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GTK_GAIM_TYPE_STATUS_BOX, GtkGaimStatusBoxClass)) -#define GTK_GAIM_IS_STATUS_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_GAIM_TYPE_STATUS_BOX)) -#define GTK_GAIM_IS_STATUS_BOX_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_GAIM_TYPE_STATUS_BOX)) -#define GTK_GAIM_STATUS_BOX_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), GTK_GAIM_TYPE_STATUS_BOX, GtkGaimStatusBoxClass)) +#define PIDGIN_TYPE_STATUS_BOX (pidgin_status_box_get_type ()) +#define PIDGIN_STATUS_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIDGIN_TYPE_STATUS_BOX, PidginStatusBox)) +#define PIDGIN_STATUS_BOX_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), PIDGIN_TYPE_STATUS_BOX, PidginStatusBoxClass)) +#define PIDGIN_IS_STATUS_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIDGIN_TYPE_STATUS_BOX)) +#define PIDGIN_IS_STATUS_BOX_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), PIDGIN_TYPE_STATUS_BOX)) +#define PIDGIN_STATUS_BOX_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), PIDGIN_TYPE_STATUS_BOX, PidginStatusBoxClass)) /** * This is a hidden field in the GtkStatusBox that identifies the @@ -52,18 +52,18 @@ */ typedef enum { - GTK_GAIM_STATUS_BOX_TYPE_SEPARATOR, - GTK_GAIM_STATUS_BOX_TYPE_PRIMITIVE, - GTK_GAIM_STATUS_BOX_TYPE_POPULAR, - GTK_GAIM_STATUS_BOX_TYPE_CUSTOM, - GTK_GAIM_STATUS_BOX_TYPE_SAVED, - GTK_GAIM_STATUS_BOX_NUM_TYPES -} GtkGaimStatusBoxItemType; + PIDGIN_STATUS_BOX_TYPE_SEPARATOR, + PIDGIN_STATUS_BOX_TYPE_PRIMITIVE, + PIDGIN_STATUS_BOX_TYPE_POPULAR, + PIDGIN_STATUS_BOX_TYPE_CUSTOM, + PIDGIN_STATUS_BOX_TYPE_SAVED, + PIDGIN_STATUS_BOX_NUM_TYPES +} PidginStatusBoxItemType; -typedef struct _GtkGaimStatusBox GtkGaimStatusBox; -typedef struct _GtkGaimStatusBoxClass GtkGaimStatusBoxClass; +typedef struct _PidginStatusBox PidginStatusBox; +typedef struct _PidginStatusBoxClass PidginStatusBoxClass; -struct _GtkGaimStatusBox +struct _PidginStatusBox { GtkContainer parent_instance; @@ -140,7 +140,7 @@ GtkTreeRowReference *active_row; }; -struct _GtkGaimStatusBoxClass +struct _PidginStatusBoxClass { GtkContainerClass parent_class; @@ -155,32 +155,32 @@ }; -GType gtk_gaim_status_box_get_type (void) G_GNUC_CONST; -GtkWidget *gtk_gaim_status_box_new (void); -GtkWidget *gtk_gaim_status_box_new_with_account (GaimAccount *); +GType pidgin_status_box_get_type (void) G_GNUC_CONST; +GtkWidget *pidgin_status_box_new (void); +GtkWidget *pidgin_status_box_new_with_account (GaimAccount *); void -gtk_gaim_status_box_add(GtkGaimStatusBox *status_box, GtkGaimStatusBoxItemType type, GdkPixbuf *pixbuf, const char *text, const char *sec_text, gpointer data); +pidgin_status_box_add(PidginStatusBox *status_box, PidginStatusBoxItemType type, GdkPixbuf *pixbuf, const char *text, const char *sec_text, gpointer data); void -gtk_gaim_status_box_add_separator(GtkGaimStatusBox *status_box); +pidgin_status_box_add_separator(PidginStatusBox *status_box); void -gtk_gaim_status_box_set_network_available(GtkGaimStatusBox *status_box, gboolean available); +pidgin_status_box_set_network_available(PidginStatusBox *status_box, gboolean available); void -gtk_gaim_status_box_set_connecting(GtkGaimStatusBox *status_box, gboolean connecting); +pidgin_status_box_set_connecting(PidginStatusBox *status_box, gboolean connecting); void -gtk_gaim_status_box_pulse_connecting(GtkGaimStatusBox *status_box); +pidgin_status_box_pulse_connecting(PidginStatusBox *status_box); void -gtk_gaim_status_box_set_buddy_icon(GtkGaimStatusBox *status_box, const char *filename); +pidgin_status_box_set_buddy_icon(PidginStatusBox *status_box, const char *filename); const char * -gtk_gaim_status_box_get_buddy_icon(GtkGaimStatusBox *status_box); +pidgin_status_box_get_buddy_icon(PidginStatusBox *status_box); -char *gtk_gaim_status_box_get_message(GtkGaimStatusBox *status_box); +char *pidgin_status_box_get_message(PidginStatusBox *status_box); G_END_DECLS
--- a/pidgin/gtkthemes.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkthemes.c Sat Feb 03 19:08:27 2007 +0000 @@ -21,7 +21,7 @@ * */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "conversation.h" #include "debug.h"
--- a/pidgin/gtkutils.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkutils.c Sat Feb 03 19:08:27 2007 +0000 @@ -23,7 +23,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #ifndef _WIN32 # include <X11/Xlib.h>
--- a/pidgin/gtkutils.h Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkutils.h Sat Feb 03 19:08:27 2007 +0000 @@ -26,7 +26,7 @@ #define _PIDGINUTILS_H_ #include "gtkconv.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "prpl.h" #include "util.h"
--- a/pidgin/gtkwhiteboard.h Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/gtkwhiteboard.h Sat Feb 03 19:08:27 2007 +0000 @@ -1,5 +1,5 @@ /** - * @file gtkwhiteboard.h The GtkGaimWhiteboard frontend object + * @file gtkwhiteboard.h The PidginWhiteboard frontend object * * gaim * @@ -25,7 +25,7 @@ #ifndef _PIDGINWHITEBOARD_H_ #define _PIDGINWHITEBOARD_H_ -#include "gtkgaim.h" +#include "pidgin.h" #include "whiteboard.h"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pidgin/pidgin.h Sat Feb 03 19:08:27 2007 +0000 @@ -0,0 +1,92 @@ +/** + * @file pidgin.h UI definitions and includes + * @ingroup gtkui + * + * gaim + * + * Pidgin is the legal property of its developers, whose names are too numerous + * to list here. Please refer to the COPYRIGHT file distributed with this + * source distribution. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +/* #warning ***pidgin*** */ +#ifndef _PIDGINGAIM_H_ +#define _PIDGINGAIM_H_ + +#ifndef _WIN32 +# include <gdk/gdkx.h> +#endif + +#include <gtk/gtk.h> + +#ifdef _WIN32 +# include "gtkwin32dep.h" +#endif + +/** + * Our UI's identifier. + */ +#define PIDGIN_UI "pidgin" + +#ifndef _WIN32 +# define GAIM_ALERT_TITLE "" +#else +# define GAIM_ALERT_TITLE PIDGIN_NAME +#endif + +/* + * This is backwards-compatibility code for older versions of GTK+ (< 2.4.x) + * It defines the new wrap behavior (unknown in earlier versions) + * as the old (slightly buggy) wrap behavior. + * It also includes our back-ported GtkExpander + */ +/** @cond */ +#if (!GTK_CHECK_VERSION(2,4,0)) +#define GTK_WRAP_WORD_CHAR GTK_WRAP_WORD +#include "gtkexpander.h" +#endif +/** @endcond */ + +/* + * We include the sources for GtkComboBox and GtkCellView because + * they don't exist in older version of Gtk+, and we use them + * in a few places. + */ +#if !GTK_CHECK_VERSION(2,6,0) +# include "gtkcellview.h" +# include "gtkcellviewmenuitem.h" +# if !GTK_CHECK_VERSION(2,4,0) +# include "gtkcelllayout.h" +# include "gaimcombobox.h" +# endif /* Gtk 2.4 */ +#endif /* Gtk 2.6 */ + +/* + * Spacings between components, as defined by the + * GNOME Human Interface Guidelines. + */ +#define GAIM_HIG_CAT_SPACE 18 +#define GAIM_HIG_BORDER 12 +#define GAIM_HIG_BOX_SPACE 6 + +/* + * See GNOME bug #307304 for some discussion about the invisible + * character. 0x25cf is a good choice, too. + */ +#define GAIM_INVISIBLE_CHAR (gunichar)0x2022 + +#endif /* _PIDGINGAIM_H_ */ +
--- a/pidgin/plugins/cap/cap.h Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/plugins/cap/cap.h Sat Feb 03 19:08:27 2007 +0000 @@ -23,7 +23,7 @@ #define _CAP_H_ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "conversation.h"
--- a/pidgin/plugins/contact_priority.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/plugins/contact_priority.c Sat Feb 03 19:08:27 2007 +0000 @@ -19,7 +19,7 @@ */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "gtkplugin.h" #include "gtkutils.h" #include "prefs.h"
--- a/pidgin/plugins/extplacement.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/plugins/extplacement.c Sat Feb 03 19:08:27 2007 +0000 @@ -21,7 +21,7 @@ */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "conversation.h" #include "version.h" #include "gtkplugin.h"
--- a/pidgin/plugins/gestures/gestures.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/plugins/gestures/gestures.c Sat Feb 03 19:08:27 2007 +0000 @@ -19,7 +19,7 @@ * 02111-1307, USA. */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "debug.h" #include "prefs.h"
--- a/pidgin/plugins/gevolution/add_buddy_dialog.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/plugins/gevolution/add_buddy_dialog.c Sat Feb 03 19:08:27 2007 +0000 @@ -20,7 +20,7 @@ */ #include "internal.h" #include "gtkblist.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "gtkutils.h" #include "debug.h"
--- a/pidgin/plugins/gevolution/assoc-buddy.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/plugins/gevolution/assoc-buddy.c Sat Feb 03 19:08:27 2007 +0000 @@ -21,7 +21,7 @@ #include "internal.h" #include "gtkblist.h" #include "gtkexpander.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "gtkutils.h" #include "gtkimhtml.h"
--- a/pidgin/plugins/gevolution/eds-utils.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/plugins/gevolution/eds-utils.c Sat Feb 03 19:08:27 2007 +0000 @@ -21,7 +21,7 @@ #include "internal.h" #include "gtkblist.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "gtkutils.h" #include "gtkimhtml.h"
--- a/pidgin/plugins/gevolution/gevo-util.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/plugins/gevolution/gevo-util.c Sat Feb 03 19:08:27 2007 +0000 @@ -20,7 +20,7 @@ */ #include "internal.h" #include "gtkblist.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "gtkutils.h" #include "gevolution.h"
--- a/pidgin/plugins/gevolution/gevolution.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/plugins/gevolution/gevolution.c Sat Feb 03 19:08:27 2007 +0000 @@ -19,7 +19,7 @@ * 02111-1307, USA. */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "connection.h" #include "debug.h"
--- a/pidgin/plugins/gevolution/new_person_dialog.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/plugins/gevolution/new_person_dialog.c Sat Feb 03 19:08:27 2007 +0000 @@ -19,7 +19,7 @@ * 02111-1307, USA. */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "gtkutils.h" #include "debug.h"
--- a/pidgin/plugins/history.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/plugins/history.c Sat Feb 03 19:08:27 2007 +0000 @@ -2,7 +2,7 @@ * stolen by Trillian "Pro") */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "conversation.h" #include "debug.h"
--- a/pidgin/plugins/iconaway.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/plugins/iconaway.c Sat Feb 03 19:08:27 2007 +0000 @@ -19,7 +19,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "conversation.h" #include "signals.h"
--- a/pidgin/plugins/musicmessaging/musicmessaging.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/plugins/musicmessaging/musicmessaging.c Sat Feb 03 19:08:27 2007 +0000 @@ -20,7 +20,7 @@ */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "conversation.h"
--- a/pidgin/plugins/notify.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/plugins/notify.c Sat Feb 03 19:08:27 2007 +0000 @@ -84,7 +84,7 @@ */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "gtkprefs.h" #include "conversation.h"
--- a/pidgin/plugins/perl/common/gtkmodule.h Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/plugins/perl/common/gtkmodule.h Sat Feb 03 19:08:27 2007 +0000 @@ -73,4 +73,4 @@ typedef PidginMenuTray * Gaim__GtkUI__MenuTray; /* gtkstatusbox.h */ -typedef GtkGaimStatusBox * Gaim__GtkUI__StatusBox; +typedef PidginStatusBox * Gaim__GtkUI__StatusBox;
--- a/pidgin/plugins/raw.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/plugins/raw.c Sat Feb 03 19:08:27 2007 +0000 @@ -22,7 +22,7 @@ */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "conversation.h" #include "debug.h"
--- a/pidgin/plugins/relnot.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/plugins/relnot.c Sat Feb 03 19:08:27 2007 +0000 @@ -38,7 +38,7 @@ #include "util.h" #include "version.h" -#include "gtkgaim.h" +#include "pidgin.h" /* 1 day */ #define MIN_CHECK_INTERVAL 60 * 60 * 24
--- a/pidgin/plugins/spellchk.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/plugins/spellchk.c Sat Feb 03 19:08:27 2007 +0000 @@ -31,7 +31,7 @@ */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "debug.h" #include "notify.h"
--- a/pidgin/plugins/ticker/ticker.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/plugins/ticker/ticker.c Sat Feb 03 19:08:27 2007 +0000 @@ -25,7 +25,7 @@ * pluginized- Sean Egan, Summer 2002 */ #include "internal.h" -#include "gtkgaim.h" +#include "pidgin.h" #include "blist.h" #include "conversation.h"
--- a/pidgin/win32/gtkwin32dep.c Sat Feb 03 18:57:23 2007 +0000 +++ b/pidgin/win32/gtkwin32dep.c Sat Feb 03 19:08:27 2007 +0000 @@ -56,7 +56,7 @@ * GLOBALS */ HINSTANCE gaimexe_hInstance = 0; -HINSTANCE gtkgaimdll_hInstance = 0; +HINSTANCE pidgindll_hInstance = 0; HWND messagewin_hwnd; static int gtkwin32_handle; @@ -360,7 +360,7 @@ /* DLL initializer */ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { - gtkgaimdll_hInstance = hinstDLL; + pidgindll_hInstance = hinstDLL; return TRUE; }