pidgin/gtkconv.c

changeset 40958
c365ae7720ac
parent 40957
15f30be0fec9
child 40964
8c352ec12439
equal deleted inserted replaced
40957:15f30be0fec9 40958:c365ae7720ac
3029 } 3029 }
3030 3030
3031 static GtkWidget * 3031 static GtkWidget *
3032 setup_common_pane(PidginConversation *gtkconv) 3032 setup_common_pane(PidginConversation *gtkconv)
3033 { 3033 {
3034 GtkWidget *vbox, *input, *infopane; 3034 GtkWidget *vbox, *input;
3035 PurpleConversation *conv = gtkconv->active_conv; 3035 PurpleConversation *conv = gtkconv->active_conv;
3036 gboolean chat = PURPLE_IS_CHAT_CONVERSATION(conv); 3036 gboolean chat = PURPLE_IS_CHAT_CONVERSATION(conv);
3037 3037
3038 /* Setup the top part of the pane */ 3038 /* Setup the top part of the pane */
3039 vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 6); 3039 vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 6);
3040 gtk_widget_show(vbox); 3040 gtk_widget_show(vbox);
3041 3041
3042 /* Setup the info pane */ 3042 /* Setup the info pane */
3043 infopane = pidgin_info_pane_new(conv); 3043 gtkconv->infopane = pidgin_info_pane_new(conv);
3044 gtk_box_pack_start(GTK_BOX(vbox), infopane, FALSE, FALSE, 0); 3044 gtk_box_pack_start(GTK_BOX(vbox), gtkconv->infopane, FALSE, FALSE, 0);
3045 gtk_widget_show(infopane); 3045 gtk_widget_show(gtkconv->infopane);
3046 3046
3047 /* Setup the history widget */ 3047 /* Setup the history widget */
3048 gtkconv->history_sw = talkatu_scrolled_window_new(NULL, NULL); 3048 gtkconv->history_sw = talkatu_scrolled_window_new(NULL, NULL);
3049 gtk_scrolled_window_set_shadow_type( 3049 gtk_scrolled_window_set_shadow_type(
3050 GTK_SCROLLED_WINDOW(gtkconv->history_sw), 3050 GTK_SCROLLED_WINDOW(gtkconv->history_sw),
5219 to_right = to_right && (win != dest_win); 5219 to_right = to_right && (win != dest_win);
5220 tab = pidgin_conv_window_get_gtkconv_at_index(dest_win, page_num)->tabby; 5220 tab = pidgin_conv_window_get_gtkconv_at_index(dest_win, page_num)->tabby;
5221 } else { 5221 } else {
5222 page_num = 0; 5222 page_num = 0;
5223 to_right = pidgin_conv_xy_to_right_infopane(dest_win, e->x_root, e->y_root); 5223 to_right = pidgin_conv_xy_to_right_infopane(dest_win, e->x_root, e->y_root);
5224 tab = pidgin_conv_window_get_gtkconv_at_index(dest_win, page_num)->infopane_hbox; 5224 tab = pidgin_conv_window_get_gtkconv_at_index(dest_win, page_num)->infopane;
5225 } 5225 }
5226 5226
5227 if (gtk_notebook_get_tab_pos(dest_notebook) == GTK_POS_TOP || 5227 if (gtk_notebook_get_tab_pos(dest_notebook) == GTK_POS_TOP ||
5228 gtk_notebook_get_tab_pos(dest_notebook) == GTK_POS_BOTTOM) { 5228 gtk_notebook_get_tab_pos(dest_notebook) == GTK_POS_BOTTOM) {
5229 horiz_tabs = TRUE; 5229 horiz_tabs = TRUE;

mercurial