Mercurial > pidgin
comparison src/gtkconv.c @ 9917:e74eb0d11f86
[gaim-migrate @ 10809]
view chat logs curtesy of datallah
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Tue, 31 Aug 2004 01:45:12 +0000 |
parents | ebca3bbc6719 |
children | c9f95600d6ce |
comparison
equal
deleted
inserted
replaced
9916:4d17a945aab3 | 9917:e74eb0d11f86 |
---|---|
933 static void | 933 static void |
934 menu_view_log_cb(gpointer data, guint action, GtkWidget *widget) | 934 menu_view_log_cb(gpointer data, guint action, GtkWidget *widget) |
935 { | 935 { |
936 GaimConvWindow *win = (GaimConvWindow *)data; | 936 GaimConvWindow *win = (GaimConvWindow *)data; |
937 GaimConversation *conv; | 937 GaimConversation *conv; |
938 GaimLogType type; | |
938 | 939 |
939 conv = gaim_conv_window_get_active_conversation(win); | 940 conv = gaim_conv_window_get_active_conversation(win); |
940 | 941 |
941 gaim_gtk_log_show((char *)gaim_conversation_get_name(conv), | 942 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) |
943 type = GAIM_LOG_IM; | |
944 else if (gaim_conversation_get_type(conv) == GAIM_CONV_CHAT) | |
945 type = GAIM_LOG_CHAT; | |
946 else | |
947 return; | |
948 | |
949 gaim_gtk_log_show(type, gaim_conversation_get_name(conv), | |
942 gaim_conversation_get_account(conv)); | 950 gaim_conversation_get_account(conv)); |
943 } | 951 } |
944 | 952 |
945 static void | 953 static void |
946 menu_clear_cb(gpointer data, guint action, GtkWidget *widget) | 954 menu_clear_cb(gpointer data, guint action, GtkWidget *widget) |
2750 gtk_widget_show(gtkconv->info); | 2758 gtk_widget_show(gtkconv->info); |
2751 gtk_widget_show(gtkconv->send); | 2759 gtk_widget_show(gtkconv->send); |
2752 gtk_widget_show(gtkconv->u.chat->invite); | 2760 gtk_widget_show(gtkconv->u.chat->invite); |
2753 | 2761 |
2754 /* Deal with menu items */ | 2762 /* Deal with menu items */ |
2755 gtk_widget_hide(gtkwin->menu.view_log); | 2763 gtk_widget_show(gtkwin->menu.view_log); |
2756 gtk_widget_hide(gtkwin->menu.send_file); | 2764 gtk_widget_hide(gtkwin->menu.send_file); |
2757 gtk_widget_hide(gtkwin->menu.add_pounce); | 2765 gtk_widget_hide(gtkwin->menu.add_pounce); |
2758 gtk_widget_hide(gtkwin->menu.get_info); | 2766 gtk_widget_hide(gtkwin->menu.get_info); |
2759 gtk_widget_hide(gtkwin->menu.warn); | 2767 gtk_widget_hide(gtkwin->menu.warn); |
2760 gtk_widget_show(gtkwin->menu.invite); | 2768 gtk_widget_show(gtkwin->menu.invite); |