1 more TODO�item gone :)


			
			
				devs/princeamd/enlightenment-0.17-elive
			
			
		
Carsten Haitzler 18 years ago
parent e67d067ccf
commit 5a42f97a60
  1. 2
      TODO
  2. 14
      data/init/init.edc
  3. 16
      src/bin/e_init.c
  4. 3
      src/bin/e_init.h
  5. 10
      src/bin/e_main.c
  6. 8
      src/bin/e_startup.c

@ -137,8 +137,6 @@ These are in no particular order:
* make xrandr support get rotation and store it
* add separate app menu bars at top of screen support
* add really nice "about" box with theme, authors credits list etc etc.
* init splash needs te be able to be signalled "end of init" and it can
respond with a "splash end" signal
* "immortal" windows (e will not allow that window to be closed or will
refuse to exit as long as the immortal flags is set until it is unset to
stop users from doing silly things like logging out while important stuff

@ -1304,6 +1304,20 @@ collections {
after: "logo_animate4";
}
program {
name: "done1";
signal: "done";
source: "";
action: STATE_SET "default" 0.0;
transition: SINUSOIDAL 1.0;
target: "logo_point";
after: "done2";
}
program {
name: "done2";
action: SIGNAL_EMIT "done_ok" "";
}
program {
name: "disable_down";
signal: "mouse,down,1";

@ -5,6 +5,7 @@
static void _e_init_icons_del(void);
static void _e_init_cb_signal_disable(void *data, Evas_Object *obj, const char *emission, const char *source);
static void _e_init_cb_signal_done_ok(void *data, Evas_Object *obj, const char *emission, const char *source);
/* local subsystem globals */
static Ecore_X_Window _e_init_win = 0;
@ -110,6 +111,8 @@ e_init_init(void)
_("Disable this splash screen in the future?"));
edje_object_signal_callback_add(_e_init_object, "disable_state", "*",
_e_init_cb_signal_disable, NULL);
edje_object_signal_callback_add(_e_init_object, "done_ok", "*",
_e_init_cb_signal_done_ok, NULL);
free(roots);
return 1;
}
@ -175,7 +178,12 @@ e_init_window_get(void)
return _e_init_win;
}
/* code for displaying startup icons */
void
e_init_done(void)
{
if (!_e_init_object) return;
edje_object_signal_emit(_e_init_object, "done", "");
}
void
e_init_icons_app_add(E_App *app)
@ -247,3 +255,9 @@ _e_init_cb_signal_disable(void *data, Evas_Object *obj, const char *emission, co
else e_config->show_splash = 1;
e_config_save_queue();
}
static void
_e_init_cb_signal_done_ok(void *data, Evas_Object *obj, const char *emission, const char *source)
{
e_init_hide();
}

@ -14,7 +14,8 @@ EAPI void e_init_title_set(const char *str);
EAPI void e_init_version_set(const char *str);
EAPI void e_init_status_set(const char *str);
EAPI Ecore_X_Window e_init_window_get(void);
EAPI void e_init_done(void);
EAPI void e_init_icons_app_add(E_App *app);
#endif

@ -481,9 +481,6 @@ main(int argc, char **argv)
if (!((!e_config->show_splash) || (after_restart)))
{
ecore_timer_add( 3.0, _e_main_cb_startup_fake_status, _("Artificially slowing startup so you can see it all."));
ecore_timer_add( 7.5, _e_main_cb_startup_fake_status, _("This is development code, so be warned."));
ecore_timer_add(12.0, _e_main_cb_startup_fake_status, _("Most features do not work yet, and those that do are buggy."));
ecore_timer_add(16.0, _e_main_cb_startup_fake_end, NULL);
}
@ -976,13 +973,6 @@ _e_main_cb_idler_after(void *data __UNUSED__)
return 1;
}
static int
_e_main_cb_startup_fake_status(void *data)
{
e_init_status_set((const char *)data);
return 0;
}
static int
_e_main_cb_startup_fake_end(void *data __UNUSED__)
{

@ -47,7 +47,11 @@ _e_startup(void)
E_App *a;
char buf[4096];
if (!startup_apps) return;
if (!startup_apps)
{
e_init_done();
return;
}
a = evas_list_nth(startup_apps->subapps, start_app_pos);
start_app_pos++;
if (!a)
@ -57,7 +61,7 @@ _e_startup(void)
start_app_pos = -1;
waiting_app = NULL;
e_app_change_callback_del(_e_startup_app_exit_cb, NULL);
// e_init_hide();
e_init_done();
return;
}
e_app_exec(a);

Loading…
Cancel
Save