comparison src/gtkimhtmltoolbar.c @ 8322:ffb601c6b833

[gaim-migrate @ 9046] Fix the response handler for the Insert Image dialog. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 23 Feb 2004 22:35:12 +0000
parents eb269b81fff8
children 2df8b01af581
comparison
equal deleted inserted replaced
8321:eb269b81fff8 8322:ffb601c6b833
334 "is optional."), 334 "is optional."),
335 fields, 335 fields,
336 _("_Insert"), G_CALLBACK(do_insert_link_cb), 336 _("_Insert"), G_CALLBACK(do_insert_link_cb),
337 _("Cancel"), G_CALLBACK(cancel_link_cb), 337 _("Cancel"), G_CALLBACK(cancel_link_cb),
338 toolbar); 338 toolbar);
339 } else { 339 } else {
340 close_link_dialog(toolbar); 340 close_link_dialog(toolbar);
341 } 341 }
342 gtk_widget_grab_focus(toolbar->imhtml); 342 gtk_widget_grab_focus(toolbar->imhtml);
343 } 343 }
344 344
352 GError *error = NULL; 352 GError *error = NULL;
353 int id; 353 int id;
354 354
355 if (resp != GTK_RESPONSE_OK) { 355 if (resp != GTK_RESPONSE_OK) {
356 //set_toggle(toolbar->image, FALSE); 356 //set_toggle(toolbar->image, FALSE);
357 gtk_widget_destroy(widget);
358 toolbar->image_dialog = NULL;
359 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toolbar->image), FALSE); 357 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toolbar->image), FALSE);
360 return; 358 return;
361 } 359 }
362 360
363 name = g_strdup(gtk_file_selection_get_filename(GTK_FILE_SELECTION(widget))); 361 name = g_strdup(gtk_file_selection_get_filename(GTK_FILE_SELECTION(widget)));