comparison src/gtkconv.c @ 5563:9eb5b13fd412

[gaim-migrate @ 5965] Just a taste of what's coming. Standard "This won't compile" thing. Plugin authors, you're going to hate me, but that's okay, because I have friends too! It's really late. My brain resembles that of fish swimming in jello pudding with neon lights flying around chanting musicals. I'm not on drugs. I'm just that tired. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 30 May 2003 09:38:29 +0000
parents 51699de873af
children e2f2d8857f9f
comparison
equal deleted inserted replaced
5562:3c8d34574601 5563:9eb5b13fd412
118 static void do_big(GtkWidget *small, struct gaim_gtk_conversation *gtkconv); 118 static void do_big(GtkWidget *small, struct gaim_gtk_conversation *gtkconv);
119 static void toggle_font(GtkWidget *font, struct gaim_conversation *conv); 119 static void toggle_font(GtkWidget *font, struct gaim_conversation *conv);
120 static void toggle_fg_color(GtkWidget *color, struct gaim_conversation *conv); 120 static void toggle_fg_color(GtkWidget *color, struct gaim_conversation *conv);
121 static void toggle_bg_color(GtkWidget *color, struct gaim_conversation *conv); 121 static void toggle_bg_color(GtkWidget *color, struct gaim_conversation *conv);
122 static void got_typing_keypress(struct gaim_conversation *conv, gboolean first); 122 static void got_typing_keypress(struct gaim_conversation *conv, gboolean first);
123 static GList *generate_invite_user_names(struct gaim_connection *gc); 123 static GList *generate_invite_user_names(GaimConnection *gc);
124 static void add_chat_buddy_common(struct gaim_conversation *conv, 124 static void add_chat_buddy_common(struct gaim_conversation *conv,
125 const char *name, int pos); 125 const char *name, int pos);
126 static void tab_complete(struct gaim_conversation *conv); 126 static void tab_complete(struct gaim_conversation *conv);
127 static void update_typing_icon(struct gaim_conversation *conv); 127 static void update_typing_icon(struct gaim_conversation *conv);
128 static gboolean update_send_as_selection(struct gaim_window *win); 128 static gboolean update_send_as_selection(struct gaim_window *win);
363 { 363 {
364 struct gaim_gtk_conversation *gtkconv; 364 struct gaim_gtk_conversation *gtkconv;
365 char *buf, *buf2; 365 char *buf, *buf2;
366 GtkTextIter start_iter, end_iter; 366 GtkTextIter start_iter, end_iter;
367 int limit; 367 int limit;
368 struct gaim_connection *gc = gaim_conversation_get_gc(conv); 368 GaimConnection *gc = gaim_conversation_get_gc(conv);
369 369
370 gtkconv = GAIM_GTK_CONVERSATION(conv); 370 gtkconv = GAIM_GTK_CONVERSATION(conv);
371 371
372 gtk_text_buffer_get_start_iter(gtkconv->entry_buffer, &start_iter); 372 gtk_text_buffer_get_start_iter(gtkconv->entry_buffer, &start_iter);
373 gtk_text_buffer_get_end_iter(gtkconv->entry_buffer, &end_iter); 373 gtk_text_buffer_get_end_iter(gtkconv->entry_buffer, &end_iter);
472 } 472 }
473 473
474 static void 474 static void
475 add_cb(GtkWidget *widget, struct gaim_conversation *conv) 475 add_cb(GtkWidget *widget, struct gaim_conversation *conv)
476 { 476 {
477 struct gaim_connection *gc; 477 GaimConnection *gc;
478 struct buddy *b; 478 struct buddy *b;
479 const char *name; 479 const char *name;
480 480
481 gc = gaim_conversation_get_gc(conv); 481 gc = gaim_conversation_get_gc(conv);
482 name = gaim_conversation_get_name(conv); 482 name = gaim_conversation_get_name(conv);
534 } 534 }
535 535
536 static void 536 static void
537 block_cb(GtkWidget *widget, struct gaim_conversation *conv) 537 block_cb(GtkWidget *widget, struct gaim_conversation *conv)
538 { 538 {
539 struct gaim_connection *gc; 539 GaimConnection *gc;
540 540
541 gc = gaim_conversation_get_gc(conv); 541 gc = gaim_conversation_get_gc(conv);
542 542
543 if (gc != NULL) 543 if (gc != NULL)
544 show_add_perm(gc, (char *)gaim_conversation_get_name(conv), FALSE); 544 show_add_perm(gc, (char *)gaim_conversation_get_name(conv), FALSE);
550 im_cb(GtkWidget *widget, struct gaim_conversation *conv) 550 im_cb(GtkWidget *widget, struct gaim_conversation *conv)
551 { 551 {
552 struct gaim_conversation *conv2; 552 struct gaim_conversation *conv2;
553 struct gaim_gtk_conversation *gtkconv; 553 struct gaim_gtk_conversation *gtkconv;
554 struct gaim_gtk_chat_pane *gtkchat; 554 struct gaim_gtk_chat_pane *gtkchat;
555 struct gaim_account *account; 555 GaimAccount *account;
556 GtkTreeIter iter; 556 GtkTreeIter iter;
557 GtkTreeModel *model; 557 GtkTreeModel *model;
558 GtkTreeSelection *sel; 558 GtkTreeSelection *sel;
559 const char *name; 559 const char *name;
560 560
624 static void 624 static void
625 menu_im_cb(GtkWidget *w, struct gaim_conversation *conv) 625 menu_im_cb(GtkWidget *w, struct gaim_conversation *conv)
626 { 626 {
627 const char *who; 627 const char *who;
628 struct gaim_conversation *conv2; 628 struct gaim_conversation *conv2;
629 struct gaim_account *account; 629 GaimAccount *account;
630 630
631 who = g_object_get_data(G_OBJECT(w), "user_data"); 631 who = g_object_get_data(G_OBJECT(w), "user_data");
632 632
633 account = gaim_conversation_get_account(conv); 633 account = gaim_conversation_get_account(conv);
634 634
642 642
643 static void 643 static void
644 menu_info_cb(GtkWidget *w, struct gaim_conversation *conv) 644 menu_info_cb(GtkWidget *w, struct gaim_conversation *conv)
645 { 645 {
646 GaimPluginProtocolInfo *prpl_info = NULL; 646 GaimPluginProtocolInfo *prpl_info = NULL;
647 struct gaim_connection *gc; 647 GaimConnection *gc;
648 char *who; 648 char *who;
649 649
650 gc = gaim_conversation_get_gc(conv); 650 gc = gaim_conversation_get_gc(conv);
651 who = g_object_get_data(G_OBJECT(w), "user_data"); 651 who = g_object_get_data(G_OBJECT(w), "user_data");
652 652
666 666
667 static void 667 static void
668 menu_away_cb(GtkWidget *w, struct gaim_conversation *conv) 668 menu_away_cb(GtkWidget *w, struct gaim_conversation *conv)
669 { 669 {
670 GaimPluginProtocolInfo *prpl_info = NULL; 670 GaimPluginProtocolInfo *prpl_info = NULL;
671 struct gaim_connection *gc; 671 GaimConnection *gc;
672 char *who; 672 char *who;
673 673
674 gc = gaim_conversation_get_gc(conv); 674 gc = gaim_conversation_get_gc(conv);
675 who = g_object_get_data(G_OBJECT(w), "user_data"); 675 who = g_object_get_data(G_OBJECT(w), "user_data");
676 676
687 } 687 }
688 688
689 static void 689 static void
690 menu_add_cb(GtkWidget *w, struct gaim_conversation *conv) 690 menu_add_cb(GtkWidget *w, struct gaim_conversation *conv)
691 { 691 {
692 struct gaim_connection *gc; 692 GaimConnection *gc;
693 struct buddy *b; 693 struct buddy *b;
694 char *name; 694 char *name;
695 695
696 gc = gaim_conversation_get_gc(conv); 696 gc = gaim_conversation_get_gc(conv);
697 name = g_object_get_data(G_OBJECT(w), "user_data"); 697 name = g_object_get_data(G_OBJECT(w), "user_data");
710 struct gaim_conversation *conv) 710 struct gaim_conversation *conv)
711 { 711 {
712 GaimPluginProtocolInfo *prpl_info = NULL; 712 GaimPluginProtocolInfo *prpl_info = NULL;
713 struct gaim_gtk_conversation *gtkconv; 713 struct gaim_gtk_conversation *gtkconv;
714 struct gaim_gtk_chat_pane *gtkchat; 714 struct gaim_gtk_chat_pane *gtkchat;
715 struct gaim_connection *gc; 715 GaimConnection *gc;
716 struct gaim_account *account; 716 GaimAccount *account;
717 GtkTreePath *path; 717 GtkTreePath *path;
718 GtkTreeIter iter; 718 GtkTreeIter iter;
719 GtkTreeModel *model; 719 GtkTreeModel *model;
720 GtkTreeViewColumn *column; 720 GtkTreeViewColumn *column;
721 gchar *who; 721 gchar *who;
861 invite_cb(GtkWidget *widget, struct gaim_conversation *conv) 861 invite_cb(GtkWidget *widget, struct gaim_conversation *conv)
862 { 862 {
863 struct InviteBuddyInfo *info = NULL; 863 struct InviteBuddyInfo *info = NULL;
864 864
865 if (invite_dialog == NULL) { 865 if (invite_dialog == NULL) {
866 struct gaim_connection *gc; 866 GaimConnection *gc;
867 struct gaim_window *win; 867 struct gaim_window *win;
868 struct gaim_gtk_window *gtkwin; 868 struct gaim_gtk_window *gtkwin;
869 GtkWidget *label; 869 GtkWidget *label;
870 GtkWidget *vbox, *hbox; 870 GtkWidget *vbox, *hbox;
871 GtkWidget *table; 871 GtkWidget *table;
1266 1266
1267 static void 1267 static void
1268 menu_conv_sel_send_cb(GObject *m, gpointer data) 1268 menu_conv_sel_send_cb(GObject *m, gpointer data)
1269 { 1269 {
1270 struct gaim_window *win = g_object_get_data(m, "user_data"); 1270 struct gaim_window *win = g_object_get_data(m, "user_data");
1271 struct gaim_account *account = g_object_get_data(m, "gaim_account"); 1271 GaimAccount *account = g_object_get_data(m, "gaim_account");
1272 struct gaim_conversation *conv; 1272 struct gaim_conversation *conv;
1273 1273
1274 conv = gaim_window_get_active_conversation(win); 1274 conv = gaim_window_get_active_conversation(win);
1275 1275
1276 gaim_conversation_set_account(conv, account); 1276 gaim_conversation_set_account(conv, account);
1736 GaimPluginProtocolInfo *prpl_info = NULL; 1736 GaimPluginProtocolInfo *prpl_info = NULL;
1737 struct gaim_window *win; 1737 struct gaim_window *win;
1738 struct gaim_conversation *conv; 1738 struct gaim_conversation *conv;
1739 struct gaim_gtk_conversation *gtkconv; 1739 struct gaim_gtk_conversation *gtkconv;
1740 struct gaim_gtk_window *gtkwin; 1740 struct gaim_gtk_window *gtkwin;
1741 struct gaim_connection *gc; 1741 GaimConnection *gc;
1742 1742
1743 win = (struct gaim_window *)user_data; 1743 win = (struct gaim_window *)user_data;
1744 1744
1745 conv = gaim_window_get_conversation_at(win, page_num); 1745 conv = gaim_window_get_conversation_at(win, page_num);
1746 1746
2001 } 2001 }
2002 2002
2003 static gboolean 2003 static gboolean
2004 update_send_as_selection(struct gaim_window *win) 2004 update_send_as_selection(struct gaim_window *win)
2005 { 2005 {
2006 struct gaim_account *account; 2006 GaimAccount *account;
2007 struct gaim_conversation *conv; 2007 struct gaim_conversation *conv;
2008 struct gaim_gtk_window *gtkwin; 2008 struct gaim_gtk_window *gtkwin;
2009 GtkWidget *menu; 2009 GtkWidget *menu;
2010 GList *child; 2010 GList *child;
2011 2011
2035 for (child = gtk_container_get_children(GTK_CONTAINER(menu)); 2035 for (child = gtk_container_get_children(GTK_CONTAINER(menu));
2036 child != NULL; 2036 child != NULL;
2037 child = child->next) { 2037 child = child->next) {
2038 2038
2039 GtkWidget *item = child->data; 2039 GtkWidget *item = child->data;
2040 struct gaim_account *item_account = g_object_get_data(G_OBJECT(item), 2040 GaimAccount *item_account = g_object_get_data(G_OBJECT(item),
2041 "gaim_account"); 2041 "gaim_account");
2042 2042
2043 if (account == item_account) { 2043 if (account == item_account) {
2044 gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(item), TRUE); 2044 gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(item), TRUE);
2045 break; 2045 break;
2053 struct gaim_conversation *deleted_conv) 2053 struct gaim_conversation *deleted_conv)
2054 { 2054 {
2055 struct gaim_gtk_window *gtkwin; 2055 struct gaim_gtk_window *gtkwin;
2056 GtkWidget *menu; 2056 GtkWidget *menu;
2057 GtkWidget *menuitem; 2057 GtkWidget *menuitem;
2058 GSList *gcs; 2058 GList *gcs;
2059 GList *convs; 2059 GList *convs;
2060 GSList *group = NULL; 2060 GSList *group = NULL;
2061 gboolean first_offline = TRUE; 2061 gboolean first_offline = TRUE;
2062 gboolean found_online = FALSE; 2062 gboolean found_online = FALSE;
2063 GtkSizeGroup *sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); 2063 GtkSizeGroup *sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
2066 2066
2067 if (gtkwin->menu.send_as != NULL) 2067 if (gtkwin->menu.send_as != NULL)
2068 gtk_widget_destroy(gtkwin->menu.send_as); 2068 gtk_widget_destroy(gtkwin->menu.send_as);
2069 2069
2070 /* See if we have > 1 connection active. */ 2070 /* See if we have > 1 connection active. */
2071 if (g_slist_length(connections) < 2) { 2071 if (g_list_length(gaim_connections_get_all()) < 2) {
2072 /* Now make sure we don't have any Offline entries. */ 2072 /* Now make sure we don't have any Offline entries. */
2073 gboolean found_offline = FALSE; 2073 gboolean found_offline = FALSE;
2074 2074
2075 for (convs = gaim_get_conversations(); 2075 for (convs = gaim_get_conversations();
2076 convs != NULL; 2076 convs != NULL;
2077 convs = convs->next) { 2077 convs = convs->next) {
2078 2078
2079 struct gaim_conversation *conv; 2079 struct gaim_conversation *conv;
2080 struct gaim_account *account; 2080 GaimAccount *account;
2081 2081
2082 conv = (struct gaim_conversation *)convs->data; 2082 conv = (struct gaim_conversation *)convs->data;
2083 account = gaim_conversation_get_account(conv); 2083 account = gaim_conversation_get_account(conv);
2084 2084
2085 if (account->gc == NULL) { 2085 if (account->gc == NULL) {
2105 gtk_menu_item_set_submenu(GTK_MENU_ITEM(gtkwin->menu.send_as), menu); 2105 gtk_menu_item_set_submenu(GTK_MENU_ITEM(gtkwin->menu.send_as), menu);
2106 2106
2107 gtk_widget_show(menu); 2107 gtk_widget_show(menu);
2108 2108
2109 /* Fill it with entries. */ 2109 /* Fill it with entries. */
2110 for (gcs = connections; gcs != NULL; gcs = gcs->next) { 2110 for (gcs = gaim_connections_get_all(); gcs != NULL; gcs = gcs->next) {
2111 2111
2112 struct gaim_connection *gc; 2112 GaimConnection *gc;
2113 GaimAccount *account;
2113 GtkWidget *box; 2114 GtkWidget *box;
2114 GtkWidget *label; 2115 GtkWidget *label;
2115 GtkWidget *image; 2116 GtkWidget *image;
2116 GdkPixbuf *pixbuf, *scale; 2117 GdkPixbuf *pixbuf, *scale;
2117 2118
2118 found_online = TRUE; 2119 found_online = TRUE;
2119 2120
2120 gc = (struct gaim_connection *)gcs->data; 2121 gc = (GaimConnection *)gcs->data;
2121 2122
2122 /* Create a pixmap for the protocol icon. */ 2123 /* Create a pixmap for the protocol icon. */
2123 pixbuf = create_prpl_icon(gc->account); 2124 pixbuf = create_prpl_icon(gc->account);
2124 scale = gdk_pixbuf_scale_simple(pixbuf, 16, 16, GDK_INTERP_BILINEAR); 2125 scale = gdk_pixbuf_scale_simple(pixbuf, 16, 16, GDK_INTERP_BILINEAR);
2125 2126
2132 gtk_size_group_add_widget(sg, image); 2133 gtk_size_group_add_widget(sg, image);
2133 2134
2134 g_object_unref(G_OBJECT(scale)); 2135 g_object_unref(G_OBJECT(scale));
2135 g_object_unref(G_OBJECT(pixbuf)); 2136 g_object_unref(G_OBJECT(pixbuf));
2136 2137
2138 account = gaim_connection_get_account(gc);
2139
2137 /* Make our menu item */ 2140 /* Make our menu item */
2138 menuitem = gtk_radio_menu_item_new_with_label(group, gc->username); 2141 menuitem = gtk_radio_menu_item_new_with_label(group,
2142 gaim_account_get_username(account));
2139 group = gtk_radio_menu_item_get_group(GTK_RADIO_MENU_ITEM(menuitem)); 2143 group = gtk_radio_menu_item_get_group(GTK_RADIO_MENU_ITEM(menuitem));
2140 2144
2141 /* Do some evil, see some evil, speak some evil. */ 2145 /* Do some evil, see some evil, speak some evil. */
2142 box = gtk_hbox_new(FALSE, 0); 2146 box = gtk_hbox_new(FALSE, 0);
2143 2147
2174 for (convs = gaim_get_conversations(); 2178 for (convs = gaim_get_conversations();
2175 convs != NULL; 2179 convs != NULL;
2176 convs = convs->next) { 2180 convs = convs->next) {
2177 2181
2178 struct gaim_conversation *conv; 2182 struct gaim_conversation *conv;
2179 struct gaim_account *account; 2183 GaimAccount *account;
2180 GtkWidget *box; 2184 GtkWidget *box;
2181 GtkWidget *label; 2185 GtkWidget *label;
2182 GtkWidget *image; 2186 GtkWidget *image;
2183 GdkPixbuf *pixbuf, *scale; 2187 GdkPixbuf *pixbuf, *scale;
2184 2188
2255 gtk_widget_show(gtkwin->menu.send_as); 2259 gtk_widget_show(gtkwin->menu.send_as);
2256 update_send_as_selection(win); 2260 update_send_as_selection(win);
2257 } 2261 }
2258 2262
2259 static GList * 2263 static GList *
2260 generate_invite_user_names(struct gaim_connection *gc) 2264 generate_invite_user_names(GaimConnection *gc)
2261 { 2265 {
2262 GaimBlistNode *gnode,*bnode; 2266 GaimBlistNode *gnode,*bnode;
2263 struct group *g; 2267 struct group *g;
2264 struct buddy *buddy; 2268 struct buddy *buddy;
2265 static GList *tmp = NULL; 2269 static GList *tmp = NULL;
2615 } 2619 }
2616 2620
2617 static void 2621 static void
2618 setup_im_buttons(struct gaim_conversation *conv, GtkWidget *parent) 2622 setup_im_buttons(struct gaim_conversation *conv, GtkWidget *parent)
2619 { 2623 {
2620 struct gaim_connection *gc; 2624 GaimConnection *gc;
2621 struct gaim_gtk_conversation *gtkconv; 2625 struct gaim_gtk_conversation *gtkconv;
2622 struct gaim_gtk_im_pane *gtkim; 2626 struct gaim_gtk_im_pane *gtkim;
2623 GaimConversationType type = GAIM_CONV_IM; 2627 GaimConversationType type = GAIM_CONV_IM;
2624 2628
2625 gtkconv = GAIM_GTK_CONVERSATION(conv); 2629 gtkconv = GAIM_GTK_CONVERSATION(conv);
2715 } 2719 }
2716 2720
2717 static void 2721 static void
2718 setup_chat_buttons(struct gaim_conversation *conv, GtkWidget *parent) 2722 setup_chat_buttons(struct gaim_conversation *conv, GtkWidget *parent)
2719 { 2723 {
2720 struct gaim_connection *gc; 2724 GaimConnection *gc;
2721 struct gaim_gtk_conversation *gtkconv; 2725 struct gaim_gtk_conversation *gtkconv;
2722 struct gaim_gtk_chat_pane *gtkchat; 2726 struct gaim_gtk_chat_pane *gtkchat;
2723 struct gaim_gtk_window *gtkwin; 2727 struct gaim_gtk_window *gtkwin;
2724 GtkWidget *sep; 2728 GtkWidget *sep;
2725 2729
2943 setup_chat_pane(struct gaim_conversation *conv) 2947 setup_chat_pane(struct gaim_conversation *conv)
2944 { 2948 {
2945 GaimPluginProtocolInfo *prpl_info = NULL; 2949 GaimPluginProtocolInfo *prpl_info = NULL;
2946 struct gaim_gtk_conversation *gtkconv; 2950 struct gaim_gtk_conversation *gtkconv;
2947 struct gaim_gtk_chat_pane *gtkchat; 2951 struct gaim_gtk_chat_pane *gtkchat;
2948 struct gaim_connection *gc; 2952 GaimConnection *gc;
2949 GtkWidget *vpaned, *hpaned; 2953 GtkWidget *vpaned, *hpaned;
2950 GtkWidget *vbox, *hbox; 2954 GtkWidget *vbox, *hbox;
2951 GtkWidget *lbox, *bbox; 2955 GtkWidget *lbox, *bbox;
2952 GtkWidget *label; 2956 GtkWidget *label;
2953 GtkWidget *sw2; 2957 GtkWidget *sw2;
3767 static void 3771 static void
3768 update_convo_add_button(struct gaim_conversation *conv) 3772 update_convo_add_button(struct gaim_conversation *conv)
3769 { 3773 {
3770 GaimPluginProtocolInfo *prpl_info = NULL; 3774 GaimPluginProtocolInfo *prpl_info = NULL;
3771 struct gaim_gtk_conversation *gtkconv; 3775 struct gaim_gtk_conversation *gtkconv;
3772 struct gaim_connection *gc; 3776 GaimConnection *gc;
3773 GaimConversationType type; 3777 GaimConversationType type;
3774 GtkWidget *parent; 3778 GtkWidget *parent;
3775 3779
3776 type = gaim_conversation_get_type(conv); 3780 type = gaim_conversation_get_type(conv);
3777 gc = gaim_conversation_get_gc(conv); 3781 gc = gaim_conversation_get_gc(conv);
3942 const char *message, size_t length, int flags, 3946 const char *message, size_t length, int flags,
3943 time_t mtime) 3947 time_t mtime)
3944 { 3948 {
3945 struct gaim_gtk_conversation *gtkconv; 3949 struct gaim_gtk_conversation *gtkconv;
3946 struct gaim_window *win; 3950 struct gaim_window *win;
3947 struct gaim_connection *gc; 3951 GaimConnection *gc;
3948 int gtk_font_options = 0; 3952 int gtk_font_options = 0;
3949 GString *log_str; 3953 GString *log_str;
3950 FILE *fd; 3954 FILE *fd;
3951 char buf[BUF_LONG]; 3955 char buf[BUF_LONG];
3952 char buf2[BUF_LONG]; 3956 char buf2[BUF_LONG];
5029 } 5033 }
5030 5034
5031 void 5035 void
5032 gaim_gtkconv_update_chat_button_style() 5036 gaim_gtkconv_update_chat_button_style()
5033 { 5037 {
5034 GSList *l; 5038 GList *l;
5035 struct gaim_connection *g; 5039 GaimConnection *g;
5036 GtkWidget *parent; 5040 GtkWidget *parent;
5037 GaimConversationType type = GAIM_CONV_CHAT; 5041 GaimConversationType type = GAIM_CONV_CHAT;
5038 5042
5039 for (l = connections; l != NULL; l = l->next) { 5043 for (l = gaim_connections_get_all(); l != NULL; l = l->next) {
5040 GSList *bcs; 5044 GSList *bcs;
5041 struct gaim_conversation *conv; 5045 struct gaim_conversation *conv;
5042 struct gaim_gtk_conversation *gtkconv; 5046 struct gaim_gtk_conversation *gtkconv;
5043 struct gaim_gtk_window *gtkwin; 5047 struct gaim_gtk_window *gtkwin;
5044 5048
5045 g = (struct gaim_connection *)l->data; 5049 g = (GaimConnection *)l->data;
5046 5050
5047 for (bcs = g->buddy_chats; bcs != NULL; bcs = bcs->next) { 5051 for (bcs = g->buddy_chats; bcs != NULL; bcs = bcs->next) {
5048 conv = (struct gaim_conversation *)bcs->data; 5052 conv = (struct gaim_conversation *)bcs->data;
5049 5053
5050 if (gaim_conversation_get_type(conv) != GAIM_CONV_CHAT) 5054 if (gaim_conversation_get_type(conv) != GAIM_CONV_CHAT)
5105 { 5109 {
5106 GaimPluginProtocolInfo *prpl_info = NULL; 5110 GaimPluginProtocolInfo *prpl_info = NULL;
5107 struct gaim_window *win; 5111 struct gaim_window *win;
5108 struct gaim_gtk_window *gtkwin = NULL; 5112 struct gaim_gtk_window *gtkwin = NULL;
5109 struct gaim_gtk_conversation *gtkconv; 5113 struct gaim_gtk_conversation *gtkconv;
5110 struct gaim_connection *gc; 5114 GaimConnection *gc;
5111 5115
5112 if (!GAIM_IS_GTK_CONVERSATION(conv)) 5116 if (!GAIM_IS_GTK_CONVERSATION(conv))
5113 return; 5117 return;
5114 5118
5115 gc = gaim_conversation_get_gc(conv); 5119 gc = gaim_conversation_get_gc(conv);