comparison src/gtkconv.c @ 9287:2fa81d44ee6f

[gaim-migrate @ 10090] Re-add the Conversation->Insert Image doohicky. That's right, I just said doohicky. My grandmother would be proud. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 15 Jun 2004 04:18:27 +0000
parents 7a8aa87164ae
children 391a6533296a
comparison
equal deleted inserted replaced
9286:46cfbd17ce3e 9287:2fa81d44ee6f
958 958
959 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toolbar->link), 959 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toolbar->link),
960 !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(toolbar->link))); 960 !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(toolbar->link)));
961 } 961 }
962 962
963 #if 0
964 static void 963 static void
965 menu_insert_image_cb(gpointer data, guint action, GtkWidget *widget) 964 menu_insert_image_cb(gpointer data, guint action, GtkWidget *widget)
966 { 965 {
967 GaimConvWindow *win = (GaimConvWindow *)data; 966 GaimConvWindow *win = (GaimConvWindow *)data;
968 GaimConversation *conv; 967 GaimConversation *conv;
974 toolbar = GTK_IMHTMLTOOLBAR(gtkconv->toolbar); 973 toolbar = GTK_IMHTMLTOOLBAR(gtkconv->toolbar);
975 974
976 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toolbar->image), 975 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toolbar->image),
977 !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(toolbar->image))); 976 !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(toolbar->image)));
978 } 977 }
979 #endif
980 978
981 static void 979 static void
982 menu_alias_cb(gpointer data, guint action, GtkWidget *widget) 980 menu_alias_cb(gpointer data, guint action, GtkWidget *widget)
983 { 981 {
984 GaimConvWindow *win = (GaimConvWindow *)data; 982 GaimConvWindow *win = (GaimConvWindow *)data;
2519 gtk_widget_hide(gtkconv->add); 2517 gtk_widget_hide(gtkconv->add);
2520 gtk_widget_show(gtkconv->remove); 2518 gtk_widget_show(gtkconv->remove);
2521 } 2519 }
2522 2520
2523 gtk_widget_show(gtkwin->menu.insert_link); 2521 gtk_widget_show(gtkwin->menu.insert_link);
2524 /* XXX - IMIMAGE - Fix IM images then show this. */ 2522 gtk_widget_show(gtkwin->menu.insert_image);
2525 gtk_widget_hide(gtkwin->menu.insert_image);
2526 } else if (gaim_conversation_get_type(conv) == GAIM_CONV_CHAT) { 2523 } else if (gaim_conversation_get_type(conv) == GAIM_CONV_CHAT) {
2527 /* Show stuff that applies to IMs, hide stuff that applies to chats */ 2524 /* Show stuff that applies to IMs, hide stuff that applies to chats */
2528 2525
2529 /* Deal with buttons */ 2526 /* Deal with buttons */
2530 gtk_widget_show(gtkconv->info); 2527 gtk_widget_show(gtkconv->info);
3357 3354
3358 { "/Conversation/sep3", NULL, NULL, 0, "<Separator>" }, 3355 { "/Conversation/sep3", NULL, NULL, 0, "<Separator>" },
3359 3356
3360 { N_("/Conversation/Insert Lin_k..."), NULL, menu_insert_link_cb, 0, 3357 { N_("/Conversation/Insert Lin_k..."), NULL, menu_insert_link_cb, 0,
3361 "<StockItem>", GAIM_STOCK_LINK }, 3358 "<StockItem>", GAIM_STOCK_LINK },
3362 { N_("/Conversation/Insert Imag_e..."), NULL, NULL, 0, /* menu_insert_image_cb, 0, */ 3359 { N_("/Conversation/Insert Imag_e..."), NULL, menu_insert_image_cb, 0,
3363 "<StockItem>", GAIM_STOCK_IMAGE }, 3360 "<StockItem>", GAIM_STOCK_IMAGE },
3364 3361
3365 { "/Conversation/sep4", NULL, NULL, 0, "<Separator>" }, 3362 { "/Conversation/sep4", NULL, NULL, 0, "<Separator>" },
3366 3363
3367 { N_("/Conversation/_Close"), NULL, menu_close_conv_cb, 0, 3364 { N_("/Conversation/_Close"), NULL, menu_close_conv_cb, 0,