comparison src/conversation.c @ 3683:e3583f15dfe0

[gaim-migrate @ 3813] Does this work better? committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Mon, 14 Oct 2002 04:52:31 +0000
parents 73c2b924703e
children 701348164c61
comparison
equal deleted inserted replaced
3682:73c2b924703e 3683:e3583f15dfe0
2898 GtkWidget *label = gtk_notebook_get_tab_label(notebook, 2898 GtkWidget *label = gtk_notebook_get_tab_label(notebook,
2899 gtk_notebook_get_nth_page(notebook, page_num)); 2899 gtk_notebook_get_nth_page(notebook, page_num));
2900 GtkStyle *style; 2900 GtkStyle *style;
2901 struct conversation *c; 2901 struct conversation *c;
2902 2902
2903 printf("THIS GOT CALLED.\n");
2904
2903 if ((convo_options & OPT_CONVO_COMBINE) && 2905 if ((convo_options & OPT_CONVO_COMBINE) &&
2904 (im_options & OPT_IM_ONE_WINDOW) && 2906 (im_options & OPT_IM_ONE_WINDOW) &&
2905 (chat_options & OPT_CHAT_ONE_WINDOW)) { 2907 (chat_options & OPT_CHAT_ONE_WINDOW)) {
2906 int len = g_list_length(conversations); 2908 int len = g_list_length(conversations);
2907 if (page_num < len) 2909 if (page_num < len)
2924 if (c) 2926 if (c)
2925 c->unseen = 0; 2927 c->unseen = 0;
2926 2928
2927 if (!c->is_chat) { 2929 if (!c->is_chat) {
2928 GtkWidget *menubar; 2930 GtkWidget *menubar;
2929 GtkWidget *parent = convo_menubar->parent; 2931 GtkWidget *parent = convo_notebook->parent;
2930 2932
2931 gtk_widget_freeze_child_notify(GTK_WIDGET(c->window)); 2933 gtk_widget_freeze_child_notify(GTK_WIDGET(c->window));
2932 2934
2933 gtk_widget_destroy(convo_menubar); 2935 if (convo_menubar != NULL)
2936 gtk_widget_destroy(convo_menubar);
2937
2934 menubar = build_conv_menubar(c); 2938 menubar = build_conv_menubar(c);
2935 gtk_box_pack_start(GTK_BOX(parent), menubar, FALSE, TRUE, 0); 2939 gtk_box_pack_start(GTK_BOX(parent), menubar, FALSE, TRUE, 0);
2936 gtk_box_reorder_child(GTK_BOX(parent), menubar, 0); 2940 gtk_box_reorder_child(GTK_BOX(parent), menubar, 0);
2937 convo_menubar = menubar; 2941 convo_menubar = menubar;
2938 2942
2939 gtk_widget_thaw_child_notify(GTK_WIDGET(c->window)); 2943 gtk_widget_thaw_child_notify(GTK_WIDGET(c->window));
2940 } else { 2944 } else {
2941 gtk_widget_destroy(convo_menubar); 2945 gtk_widget_destroy(convo_menubar);
2946 convo_menubar = NULL;
2942 } 2947 }
2943 } 2948 }
2944 2949
2945 void show_typing(struct conversation *c) { 2950 void show_typing(struct conversation *c) {
2946 2951
3104 3109
3105 testidea = gtk_vbox_new(FALSE, 0); 3110 testidea = gtk_vbox_new(FALSE, 0);
3106 3111
3107 menubar = build_conv_menubar(c); 3112 menubar = build_conv_menubar(c);
3108 gtk_box_pack_start(GTK_BOX(testidea), menubar, FALSE, TRUE, 0); 3113 gtk_box_pack_start(GTK_BOX(testidea), menubar, FALSE, TRUE, 0);
3109 gtk_box_pack_start(GTK_BOX(testidea), convo_notebook, FALSE, TRUE, 0); 3114 gtk_box_pack_start(GTK_BOX(testidea), convo_notebook, TRUE, TRUE, 0);
3115 gtk_widget_show(testidea);
3116 gtk_widget_show(convo_notebook);
3110 convo_menubar = menubar; 3117 convo_menubar = menubar;
3118
3119 printf("I GOT HERE BIZNOTCHY.\n");
3111 3120
3112 gtk_container_add(GTK_CONTAINER(win), testidea); 3121 gtk_container_add(GTK_CONTAINER(win), testidea);
3113 gtk_signal_connect(GTK_OBJECT(convo_notebook), "switch-page", 3122 gtk_signal_connect(GTK_OBJECT(convo_notebook), "switch-page",
3114 GTK_SIGNAL_FUNC(convo_switch), NULL); 3123 GTK_SIGNAL_FUNC(convo_switch), NULL);
3115 gtk_widget_show(testidea); 3124
3116 gtk_widget_show(convo_notebook);
3117 } else 3125 } else
3118 win = c->window = all_convos; 3126 win = c->window = all_convos;
3119 3127
3120 cont = gtk_vbox_new(FALSE, 5); 3128 cont = gtk_vbox_new(FALSE, 5);
3121 gtk_container_set_border_width(GTK_CONTAINER(cont), 5); 3129 gtk_container_set_border_width(GTK_CONTAINER(cont), 5);