[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[E-devel] Edje_Viewer patch



urandom, here is a patch for edje_viewer to attach the delete_event to the window, so closing edje_viewer via the close button works.

Cheers,
devilhorns
--- etk_gui.c.orig	2006-06-26 07:19:33.000000000 -0400
+++ etk_gui.c	2006-06-26 07:18:44.000000000 -0400
@@ -35,6 +35,7 @@
    etk_window_title_set(ETK_WINDOW(gui->win), _(WINDOW_TITLE));
    etk_window_wmclass_set(ETK_WINDOW(gui->win), "edje_viewer", "Edje_viewer");
    etk_container_border_width_set(ETK_CONTAINER(gui->win), 0);
+   etk_signal_connect("delete_event", ETK_OBJECT(gui->win), ETK_CALLBACK(_gui_main_window_deleted_cb), gui);
    etk_window_resize(ETK_WINDOW(gui->win), WINDOW_WIDTH, WINDOW_HEIGHT);
 
    vbox = etk_vbox_new(ETK_FALSE, 0);