From e330067acbf2f48f9115eab3083682582624d24b Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 18 Mar 2015 11:48:46 -0400 Subject: [PATCH] remove E_Comp from object/about dialogs --- src/bin/e_about.c | 4 ++-- src/bin/e_about.h | 2 +- src/bin/e_int_menus.c | 4 ++-- src/bin/e_obj_dialog.c | 2 +- src/bin/e_obj_dialog.h | 2 +- src/bin/e_sys.c | 9 +++------ src/bin/e_theme_about.c | 4 ++-- src/bin/e_theme_about.h | 2 +- 8 files changed, 13 insertions(+), 16 deletions(-) diff --git a/src/bin/e_about.c b/src/bin/e_about.c index 11f617e1f..6b57c9d28 100644 --- a/src/bin/e_about.c +++ b/src/bin/e_about.c @@ -7,14 +7,14 @@ /* externally accessible functions */ EAPI E_About * -e_about_new(E_Comp *c) +e_about_new(void) { E_Obj_Dialog *od; char buf[16384]; FILE *f; Eina_Strbuf *tbuf; - od = e_obj_dialog_new(c, _("About Enlightenment"), "E", "_about"); + od = e_obj_dialog_new(_("About Enlightenment"), "E", "_about"); if (!od) return NULL; e_obj_dialog_obj_theme_set(od, "base/theme/about", "e/widgets/about/main"); e_obj_dialog_obj_part_text_set(od, "e.text.label", _("Close")); diff --git a/src/bin/e_about.h b/src/bin/e_about.h index 612c765a6..bff33e393 100644 --- a/src/bin/e_about.h +++ b/src/bin/e_about.h @@ -6,7 +6,7 @@ typedef struct _E_Obj_Dialog E_About; #ifndef E_ABOUT_H #define E_ABOUT_H -EAPI E_About *e_about_new (E_Comp *c); +EAPI E_About *e_about_new (void); EAPI void e_about_show (E_About *about); #endif diff --git a/src/bin/e_int_menus.c b/src/bin/e_int_menus.c index 7d0b349ba..730c35b12 100644 --- a/src/bin/e_int_menus.c +++ b/src/bin/e_int_menus.c @@ -587,7 +587,7 @@ _e_int_menus_main_about(void *data __UNUSED__, E_Menu *m __UNUSED__, E_Menu_Item { E_About *about; - about = e_about_new(e_comp); + about = e_about_new(); if (about) e_about_show(about); } @@ -596,7 +596,7 @@ _e_int_menus_themes_about(void *data __UNUSED__, E_Menu *m __UNUSED__, E_Menu_It { E_Theme_About *about; - about = e_theme_about_new(e_comp); + about = e_theme_about_new(); if (about) e_theme_about_show(about); } diff --git a/src/bin/e_obj_dialog.c b/src/bin/e_obj_dialog.c index 526062ff9..3cb74451b 100644 --- a/src/bin/e_obj_dialog.c +++ b/src/bin/e_obj_dialog.c @@ -19,7 +19,7 @@ _key_down_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void * } EAPI E_Obj_Dialog * -e_obj_dialog_new(E_Comp *c EINA_UNUSED, char *title, char *class_name, char *class_class) +e_obj_dialog_new(char *title, char *class_name, char *class_class) { E_Obj_Dialog *od; Evas_Object *o; diff --git a/src/bin/e_obj_dialog.h b/src/bin/e_obj_dialog.h index 59f7baa38..a6dc9524d 100644 --- a/src/bin/e_obj_dialog.h +++ b/src/bin/e_obj_dialog.h @@ -18,7 +18,7 @@ struct _E_Obj_Dialog void (*cb_delete)(E_Obj_Dialog *od); }; -EAPI E_Obj_Dialog *e_obj_dialog_new(E_Comp *c, char *title, char *class_name, char *class_class); +EAPI E_Obj_Dialog *e_obj_dialog_new(char *title, char *class_name, char *class_class); EAPI void e_obj_dialog_icon_set(E_Obj_Dialog *od, char *icon); EAPI void e_obj_dialog_show(E_Obj_Dialog *od); EAPI void e_obj_dialog_obj_part_text_set(E_Obj_Dialog *od, const char *part, const char *text); diff --git a/src/bin/e_sys.c b/src/bin/e_sys.c index 70cd352aa..15ff12373 100644 --- a/src/bin/e_sys.c +++ b/src/bin/e_sys.c @@ -766,8 +766,7 @@ _e_sys_logout_begin(E_Sys_Action a_after, Eina_Bool raw) /* start logout - at end do the a_after action */ if (!raw) { - od = e_obj_dialog_new(e_comp, - _("Logout in progress"), "E", "_sys_logout"); + od = e_obj_dialog_new(_("Logout in progress"), "E", "_sys_logout"); e_obj_dialog_obj_theme_set(od, "base/theme/sys", "e/sys/logout"); e_obj_dialog_obj_part_text_set(od, "e.textblock.message", _("Logout in progress.
" @@ -961,8 +960,7 @@ _e_sys_action_do(E_Sys_Action a, char *param __UNUSED__, Eina_Bool raw) ret = 0; _e_sys_begin_time = ecore_time_get(); - od = e_obj_dialog_new(NULL, - _("Power off"), "E", "_sys_halt"); + od = e_obj_dialog_new(_("Power off"), "E", "_sys_halt"); e_obj_dialog_obj_theme_set(od, "base/theme/sys", "e/sys/halt"); e_obj_dialog_obj_part_text_set(od, "e.textblock.message", _("Power off.
" @@ -1007,8 +1005,7 @@ _e_sys_action_do(E_Sys_Action a, char *param __UNUSED__, Eina_Bool raw) { ret = 0; _e_sys_begin_time = ecore_time_get(); - od = e_obj_dialog_new(NULL, - _("Resetting"), "E", "_sys_reboot"); + od = e_obj_dialog_new(_("Resetting"), "E", "_sys_reboot"); e_obj_dialog_obj_theme_set(od, "base/theme/sys", "e/sys/reboot"); e_obj_dialog_obj_part_text_set(od, "e.textblock.message", _("Resetting.
" diff --git a/src/bin/e_theme_about.c b/src/bin/e_theme_about.c index 6aa6649b7..bc825ea65 100644 --- a/src/bin/e_theme_about.c +++ b/src/bin/e_theme_about.c @@ -12,11 +12,11 @@ _cb_settings_theme(void *data EINA_UNUSED, Evas_Object *obj __UNUSED__, const ch /* externally accessible functions */ EAPI E_Theme_About * -e_theme_about_new(E_Comp *c) +e_theme_about_new(void) { E_Obj_Dialog *od; - od = e_obj_dialog_new(c, _("About Theme"), "E", "_theme_about"); + od = e_obj_dialog_new(_("About Theme"), "E", "_theme_about"); if (!od) return NULL; e_obj_dialog_obj_theme_set(od, "base/theme", "e/theme/about"); e_obj_dialog_obj_part_text_set(od, "e.text.label", _("Close")); diff --git a/src/bin/e_theme_about.h b/src/bin/e_theme_about.h index 2bc38e737..6e348b146 100644 --- a/src/bin/e_theme_about.h +++ b/src/bin/e_theme_about.h @@ -6,7 +6,7 @@ typedef struct _E_Obj_Dialog E_Theme_About; #ifndef E_THEME_ABOUT_H #define E_THEME_ABOUT_H -EAPI E_Theme_About *e_theme_about_new (E_Comp *c); +EAPI E_Theme_About *e_theme_about_new (void); EAPI void e_theme_about_show (E_Theme_About *about); #endif