static void html_editor_find_dialog_hide (GtkWidget *widget) { EHTMLEditorFindDialog *dialog = E_HTML_EDITOR_FIND_DIALOG (widget); e_content_editor_on_find_dialog_close (dialog->priv->cnt_editor); /* Chain up to parent's implementation */ GTK_WIDGET_CLASS (e_html_editor_find_dialog_parent_class)->hide (widget); }
static void html_editor_find_dialog_show (GtkWidget *widget) { EHTMLEditorFindDialog *dialog = E_HTML_EDITOR_FIND_DIALOG (widget); reset_dialog (dialog); gtk_widget_grab_focus (dialog->priv->entry); /* Chain up to parent's implementation */ GTK_WIDGET_CLASS (e_html_editor_find_dialog_parent_class)->show (widget); }
static void html_editor_find_dialog_constructed (GObject *object) { EHTMLEditor *editor; EHTMLEditorFindDialog *dialog; EContentEditor *cnt_editor; dialog = E_HTML_EDITOR_FIND_DIALOG (object); dialog->priv = E_HTML_EDITOR_FIND_DIALOG_GET_PRIVATE (dialog); editor = e_html_editor_dialog_get_editor (E_HTML_EDITOR_DIALOG (dialog)); cnt_editor = e_html_editor_get_content_editor (editor); dialog->priv->find_done_handler_id = g_signal_connect ( cnt_editor, "find-done", G_CALLBACK (content_editor_find_done_cb), dialog); dialog->priv->cnt_editor = cnt_editor; G_OBJECT_CLASS (e_html_editor_find_dialog_parent_class)->constructed (object); }