comparison src/gtkconv.c @ 10839:7a3d8d498f45

[gaim-migrate @ 12511] sf patch #1185478, from Richard Laager Eliminate some gtkconv.c compile warnings by removing some unused static functions. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 19 Apr 2005 03:12:44 +0000
parents 53e7884c549a
children dd7f59f5252d
comparison
equal deleted inserted replaced
10838:bf7e5ae7baae 10839:7a3d8d498f45
1629 gtkconv = (GaimGtkConversation *)data; 1629 gtkconv = (GaimGtkConversation *)data;
1630 conv = gtkconv->active_conv;; 1630 conv = gtkconv->active_conv;;
1631 win = gaim_conversation_get_window(conv); 1631 win = gaim_conversation_get_window(conv);
1632 gtkwin = GAIM_GTK_WINDOW(win); 1632 gtkwin = GAIM_GTK_WINDOW(win);
1633 curconv = gtk_notebook_get_current_page(GTK_NOTEBOOK(gtkwin->notebook)); 1633 curconv = gtk_notebook_get_current_page(GTK_NOTEBOOK(gtkwin->notebook));
1634 1634
1635 /* If CTRL was held down... */ 1635 /* If CTRL was held down... */
1636 if (event->state & GDK_CONTROL_MASK) { 1636 if (event->state & GDK_CONTROL_MASK) {
1637 switch (event->keyval) { 1637 switch (event->keyval) {
1638 case GDK_Up: 1638 case GDK_Up:
1639 if (!conv->send_history) 1639 if (!conv->send_history)
4559 4559
4560 generate_send_as_items(win, conv); 4560 generate_send_as_items(win, conv);
4561 } 4561 }
4562 } 4562 }
4563 4563
4564 static void
4565 gaim_gtk_move_conversation(GaimConvWindow *win, GaimConversation *conv,
4566 unsigned int new_index)
4567 {
4568 GaimGtkWindow *gtkwin;
4569 GaimGtkConversation *gtkconv;
4570
4571 gtkwin = GAIM_GTK_WINDOW(win);
4572 gtkconv = GAIM_GTK_CONVERSATION(conv);
4573
4574 gtk_notebook_reorder_child(GTK_NOTEBOOK(gtkwin->notebook),
4575 gtkconv->tab_cont, new_index);
4576 }
4577
4578 static int
4579 gaim_gtk_get_active_index(const GaimConvWindow *win)
4580 {
4581 GaimGtkWindow *gtkwin;
4582 int index;
4583
4584 gtkwin = GAIM_GTK_WINDOW(win);
4585
4586 index = gtk_notebook_get_current_page(GTK_NOTEBOOK(gtkwin->notebook));
4587
4588 /*
4589 * A fix, because the first conversation may be active, but not
4590 * appear in the notebook just yet. -- ChipX86
4591 */
4592 return (index == -1 ? 0 : index);
4593 }
4594
4595 GaimGtkConversation * 4564 GaimGtkConversation *
4596 gaim_gtk_get_gtkconv_at_index(const GaimConvWindow *win, int index) 4565 gaim_gtk_get_gtkconv_at_index(const GaimConvWindow *win, int index)
4597 { 4566 {
4598 GaimGtkWindow *gtkwin; 4567 GaimGtkWindow *gtkwin;
4599 GtkWidget *tab_cont; 4568 GtkWidget *tab_cont;