rm another useless cast

This commit is contained in:
Daniel Micay 2012-05-31 07:12:39 -04:00
parent d1c38ae02c
commit b74d1d5e1c
1 changed files with 2 additions and 3 deletions

View File

@ -36,12 +36,11 @@ static void search(VteTerminal *vte, const char *pattern, bool reverse) {
vte_terminal_copy_primary(vte); vte_terminal_copy_primary(vte);
} }
static void search_response_cb(GtkDialog *dialog, gint response_id, search_dialog_info *info) { static void search_response_cb(GtkWidget *dialog, gint response_id, search_dialog_info *info) {
if (response_id == GTK_RESPONSE_ACCEPT) { if (response_id == GTK_RESPONSE_ACCEPT) {
search(VTE_TERMINAL(info->vte), gtk_entry_get_text(GTK_ENTRY(info->entry)), info->reverse); search(VTE_TERMINAL(info->vte), gtk_entry_get_text(GTK_ENTRY(info->entry)), info->reverse);
} }
gtk_widget_destroy(dialog);
gtk_widget_destroy(GTK_WIDGET(dialog));
info->open = false; info->open = false;
} }