| 4864 |
4864 |
| 4865 static void |
4865 static void |
| 4866 pidgin_conv_setup_quickfind(PidginConversation *gtkconv, GtkWidget *container) |
4866 pidgin_conv_setup_quickfind(PidginConversation *gtkconv, GtkWidget *container) |
| 4867 { |
4867 { |
| 4868 GtkWidget *widget = gtk_hbox_new(FALSE, 0); |
4868 GtkWidget *widget = gtk_hbox_new(FALSE, 0); |
| 4869 GtkWidget *label, *entry, *close, *image; |
4869 GtkWidget *label, *entry, *close; |
| 4870 |
4870 |
| 4871 gtk_box_pack_start(GTK_BOX(container), widget, FALSE, FALSE, 0); |
4871 gtk_box_pack_start(GTK_BOX(container), widget, FALSE, FALSE, 0); |
| 4872 |
4872 |
| 4873 image = gtk_image_new_from_stock(GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU); |
4873 close = pidgin_create_small_button(gtk_label_new("×")); |
| 4874 close = pidgin_create_small_button(image); |
|
| 4875 gtk_box_pack_start(GTK_BOX(widget), close, FALSE, FALSE, 0); |
4874 gtk_box_pack_start(GTK_BOX(widget), close, FALSE, FALSE, 0); |
| 4876 gtk_tooltips_set_tip(gtkconv->tooltips, close, |
4875 gtk_tooltips_set_tip(gtkconv->tooltips, close, |
| 4877 _("Close Find bar"), NULL); |
4876 _("Close Find bar"), NULL); |
| 4878 |
4877 |
| 4879 label = gtk_label_new(_("Find:")); |
4878 label = gtk_label_new(_("Find:")); |
| 9448 PurpleConversation *conv = gtkconv->active_conv; |
9447 PurpleConversation *conv = gtkconv->active_conv; |
| 9449 PidginConversation *focus_gtkconv; |
9448 PidginConversation *focus_gtkconv; |
| 9450 GtkWidget *tab_cont = gtkconv->tab_cont; |
9449 GtkWidget *tab_cont = gtkconv->tab_cont; |
| 9451 PurpleConversationType conv_type; |
9450 PurpleConversationType conv_type; |
| 9452 const gchar *tmp_lab; |
9451 const gchar *tmp_lab; |
| 9453 GtkWidget *close_image; |
|
| 9454 |
9452 |
| 9455 conv_type = purple_conversation_get_type(conv); |
9453 conv_type = purple_conversation_get_type(conv); |
| 9456 |
9454 |
| 9457 win->gtkconvs = g_list_append(win->gtkconvs, gtkconv); |
9455 win->gtkconvs = g_list_append(win->gtkconvs, gtkconv); |
| 9458 gtkconv->win = win; |
9456 gtkconv->win = win; |
| 9460 if (win->gtkconvs && win->gtkconvs->next && win->gtkconvs->next->next == NULL) |
9458 if (win->gtkconvs && win->gtkconvs->next && win->gtkconvs->next->next == NULL) |
| 9461 pidgin_conv_tab_pack(win, ((PidginConversation*)win->gtkconvs->data)); |
9459 pidgin_conv_tab_pack(win, ((PidginConversation*)win->gtkconvs->data)); |
| 9462 |
9460 |
| 9463 |
9461 |
| 9464 /* Close button. */ |
9462 /* Close button. */ |
| 9465 close_image = gtk_image_new_from_stock(GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU); |
9463 gtkconv->close = pidgin_create_small_button(gtk_label_new("×")); |
| 9466 gtkconv->close = pidgin_create_small_button(close_image); |
|
| 9467 gtk_tooltips_set_tip(gtkconv->tooltips, gtkconv->close, |
9464 gtk_tooltips_set_tip(gtkconv->tooltips, gtkconv->close, |
| 9468 _("Close conversation"), NULL); |
9465 _("Close conversation"), NULL); |
| 9469 |
9466 |
| 9470 g_signal_connect(gtkconv->close, "clicked", G_CALLBACK (close_conv_cb), gtkconv); |
9467 g_signal_connect(gtkconv->close, "clicked", G_CALLBACK (close_conv_cb), gtkconv); |
| 9471 |
9468 |