Mercurial > pidgin.yaz
comparison src/gtkconv.c @ 8756:67f733c1cff8
[gaim-migrate @ 9511]
marv pointed out that the conversation menu item "Insert Link" wasn't
working. This fixes it. I'm also hiding the insert image button
and menu item, since they don't work.
Although, it seems no one really noticed that the menu item wasn't
working... perhaps it should be removed?
And Michele says hi!
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 22 Apr 2004 05:15:10 +0000 |
parents | d0364feabf96 |
children | 2db51720fd09 |
comparison
equal
deleted
inserted
replaced
8755:d0364feabf96 | 8756:67f733c1cff8 |
---|---|
715 | 715 |
716 gaim_gtkpounce_dialog_show(gaim_conversation_get_account(conv), | 716 gaim_gtkpounce_dialog_show(gaim_conversation_get_account(conv), |
717 gaim_conversation_get_name(conv), NULL); | 717 gaim_conversation_get_name(conv), NULL); |
718 } | 718 } |
719 | 719 |
720 #if 0 | |
721 static void | 720 static void |
722 menu_insert_link_cb(gpointer data, guint action, GtkWidget *widget) | 721 menu_insert_link_cb(gpointer data, guint action, GtkWidget *widget) |
723 { | 722 { |
724 GaimConvWindow *win = (GaimConvWindow *)data; | 723 GaimConvWindow *win = (GaimConvWindow *)data; |
725 GaimConversation *conv; | 724 GaimConversation *conv; |
726 GaimGtkConversation *gtkconv; | 725 GaimGtkConversation *gtkconv; |
726 GtkIMHtmlToolbar *toolbar; | |
727 | 727 |
728 conv = gaim_conv_window_get_active_conversation(win); | 728 conv = gaim_conv_window_get_active_conversation(win); |
729 gtkconv = GAIM_GTK_CONVERSATION(conv); | 729 gtkconv = GAIM_GTK_CONVERSATION(conv); |
730 | 730 toolbar = GTK_IMHTMLTOOLBAR(gtkconv->toolbar); |
731 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(gtkconv->toolbar.link), | 731 |
732 !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gtkconv->toolbar.link))); | 732 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toolbar->link), |
733 } | 733 !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(toolbar->link))); |
734 | 734 } |
735 | |
736 #if 0 | |
735 static void | 737 static void |
736 menu_insert_image_cb(gpointer data, guint action, GtkWidget *widget) | 738 menu_insert_image_cb(gpointer data, guint action, GtkWidget *widget) |
737 { | 739 { |
738 GaimConvWindow *win = (GaimConvWindow *)data; | 740 GaimConvWindow *win = (GaimConvWindow *)data; |
741 GaimConversation *conv; | |
739 GaimGtkConversation *gtkconv; | 742 GaimGtkConversation *gtkconv; |
740 | 743 GtkIMHtmlToolbar *toolbar; |
744 | |
745 conv = gaim_conv_window_get_active_conversation(win); | |
741 gtkconv = GAIM_GTK_CONVERSATION(gaim_conv_window_get_active_conversation(win)); | 746 gtkconv = GAIM_GTK_CONVERSATION(gaim_conv_window_get_active_conversation(win)); |
742 | 747 toolbar = GTK_IMHTMLTOOLBAR(gtkconv->toolbar); |
743 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(gtkconv->toolbar.image), | 748 |
744 !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gtkconv->toolbar.image))); | 749 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toolbar->image), |
750 !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(toolbar->image))); | |
745 } | 751 } |
746 #endif | 752 #endif |
747 | 753 |
748 static void | 754 static void |
749 menu_alias_cb(gpointer data, guint action, GtkWidget *widget) | 755 menu_alias_cb(gpointer data, guint action, GtkWidget *widget) |
2302 gtk_widget_hide(gtkconv->add); | 2308 gtk_widget_hide(gtkconv->add); |
2303 gtk_widget_show(gtkconv->remove); | 2309 gtk_widget_show(gtkconv->remove); |
2304 } | 2310 } |
2305 | 2311 |
2306 gtk_widget_show(gtkwin->menu.insert_link); | 2312 gtk_widget_show(gtkwin->menu.insert_link); |
2307 gtk_widget_show(gtkwin->menu.insert_image); | 2313 /* XXX - IMIMAGE - Fix IM images then show this. */ |
2314 gtk_widget_hide(gtkwin->menu.insert_image); | |
2308 } else if (gaim_conversation_get_type(conv) == GAIM_CONV_CHAT) { | 2315 } else if (gaim_conversation_get_type(conv) == GAIM_CONV_CHAT) { |
2309 /* Show stuff that applies to IMs, hide stuff that applies to chats */ | 2316 /* Show stuff that applies to IMs, hide stuff that applies to chats */ |
2310 | 2317 |
2311 /* Deal with buttons */ | 2318 /* Deal with buttons */ |
2312 gtk_widget_show(gtkconv->info); | 2319 gtk_widget_show(gtkconv->info); |
3175 { N_("/Conversation/_Remove..."), NULL, menu_add_remove_cb, 0, | 3182 { N_("/Conversation/_Remove..."), NULL, menu_add_remove_cb, 0, |
3176 "<StockItem>", GTK_STOCK_REMOVE }, | 3183 "<StockItem>", GTK_STOCK_REMOVE }, |
3177 | 3184 |
3178 { "/Conversation/sep3", NULL, NULL, 0, "<Separator>" }, | 3185 { "/Conversation/sep3", NULL, NULL, 0, "<Separator>" }, |
3179 | 3186 |
3180 { N_("/Conversation/Insert Lin_k..."), NULL, NULL, 0, /* menu_insert_link_cb, 0, */ | 3187 { N_("/Conversation/Insert Lin_k..."), NULL, menu_insert_link_cb, 0, |
3181 "<StockItem>", GAIM_STOCK_LINK }, | 3188 "<StockItem>", GAIM_STOCK_LINK }, |
3182 { N_("/Conversation/Insert Imag_e..."), NULL, NULL, 0, /* menu_insert_image_cb, 0, */ | 3189 { N_("/Conversation/Insert Imag_e..."), NULL, NULL, 0, /* menu_insert_image_cb, 0, */ |
3183 "<StockItem>", GAIM_STOCK_IMAGE }, | 3190 "<StockItem>", GAIM_STOCK_IMAGE }, |
3184 | 3191 |
3185 { "/Conversation/sep4", NULL, NULL, 0, "<Separator>" }, | 3192 { "/Conversation/sep4", NULL, NULL, 0, "<Separator>" }, |