Button fixes, and quit when exit entered in typebuf

This commit is contained in:
Jaime Thomas
2008-09-22 17:48:41 +00:00
parent 6ce8e91cbf
commit 5a8f7993dc
2 changed files with 10 additions and 5 deletions

View File

@@ -171,7 +171,6 @@ ecdb_create_main_gui(void)
ecore_evas_callback_delete_request_set(em->main_win_ee, ecdb_shutdown);
ecore_evas_callback_destroy_set(em->main_win_ee, ecdb_shutdown);
ecore_event_handler_add(ECORE_EVENT_SIGNAL_EXIT, ecdb_shutdown, NULL);
ecore_evas_callback_mouse_in_set(em->main_win_ee, ecdb_cb_enter);
ecore_evas_callback_mouse_out_set(em->main_win_ee, ecdb_cb_leave);
@@ -377,6 +376,12 @@ ecdb_handle_typebuf(Evas_Object *gui)
NULL);
return;
}
else if (!ecdb_match_keyword(ext, "exit", 4))
{
/* This creates an ewl error... */
ecore_event_add(ECORE_EVENT_SIGNAL_EXIT, NULL, NULL, NULL);
return;
}
filter = ewl_filelist_filter_get(EWL_FILELIST(fl));
if (!filter)