On Tue, 2 Mar 2010, Enlightenment SVN wrote:
> Log:
> shorter strings and apss -Wextra
about the warning flags, you can look at how i added them in efreet, if
you want to use them. I use an m4 macro
Vincent
>
> Please consider the added note about "slide pointer to window". IMHO
> it does not make sense to have this set in lots of places, it should
> be a mouse or focus policy, and setting it will set all related
> options.
>
>
> Author: barbieri
> Date: 2010-03-02 08:33:35 -0800 (Tue, 02 Mar 2010)
> New Revision: 46792
>
> Modified:
> trunk/e/src/modules/conf_window_focus/e_int_config_focus.c
> trunk/e/src/modules/conf_window_focus/e_mod_main.c
>
> Modified: trunk/e/src/modules/conf_window_focus/e_int_config_focus.c
> ===================================================================
> --- trunk/e/src/modules/conf_window_focus/e_int_config_focus.c
> 2010-03-02 16:22:52 UTC (rev 46791)
> +++ trunk/e/src/modules/conf_window_focus/e_int_config_focus.c
> 2010-03-02 16:33:35 UTC (rev 46792)
> @@ -70,7 +70,7 @@
> }
>
> static void *
> -_create_data(E_Config_Dialog *cfd)
> +_create_data(E_Config_Dialog *cfd __UNUSED__)
> {
> /* Create cfdata - cfdata is a temporary block of config data that this
> * dialog will be dealing with while configuring. it will be applied to
> @@ -84,7 +84,7 @@
> }
>
> static void
> -_free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
> +_free_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
> {
> /* Free the cfdata */
> E_FREE(cfdata);
> @@ -92,7 +92,7 @@
>
> /**--APPLY--**/
> static int
> -_basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
> +_basic_apply_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data
> *cfdata)
> {
> /* Actually take our cfdata settings and apply them in real life */
> e_border_button_bindings_ungrab_all();
> @@ -135,7 +135,7 @@
> }
>
> static int
> -_advanced_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
> +_advanced_apply_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data
> *cfdata)
> {
> /* Actually take our cfdata settings and apply them in real life */
> e_border_button_bindings_ungrab_all();
> @@ -154,7 +154,7 @@
>
> /**--GUI--**/
> static Evas_Object *
> -_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data
> *cfdata)
> +_basic_create_widgets(E_Config_Dialog *cfd __UNUSED__, Evas *evas,
> E_Config_Dialog_Data *cfdata)
> {
> /* generate the core widget layout for a basic dialog */
> Evas_Object *o, *ob, *of;
> @@ -175,7 +175,7 @@
> }
>
> static Evas_Object *
> -_advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas,
> E_Config_Dialog_Data *cfdata)
> +_advanced_create_widgets(E_Config_Dialog *cfd __UNUSED__, Evas *evas,
> E_Config_Dialog_Data *cfdata)
> {
> /* generate the core widget layout for an advanced dialog */
> Evas_Object *o, *ob, *of;
> @@ -185,26 +185,23 @@
>
> of = e_widget_framelist_add(evas, _("Focus"), 0);
> rg = e_widget_radio_group_new(&(cfdata->focus_policy));
> - ob = e_widget_radio_add(evas, _("Click to focus"), E_FOCUS_CLICK, rg);
> + ob = e_widget_radio_add(evas, _("Click"), E_FOCUS_CLICK, rg);
> e_widget_framelist_object_append(of, ob);
> - ob = e_widget_radio_add(evas, _("Pointer focus"), E_FOCUS_MOUSE, rg);
> + ob = e_widget_radio_add(evas, _("Pointer"), E_FOCUS_MOUSE, rg);
> e_widget_framelist_object_append(of, ob);
> - ob = e_widget_radio_add(evas, _("Sloppy focus"), E_FOCUS_SLOPPY, rg);
> + ob = e_widget_radio_add(evas, _("Sloppy"), E_FOCUS_SLOPPY, rg);
> e_widget_framelist_object_append(of, ob);
> e_widget_list_object_append(o, of, 1, 0, 0.5);
>
> of = e_widget_framelist_add(evas, _("New Window Focus"), 0);
> rg = e_widget_radio_group_new(&(cfdata->focus_setting));
> - ob = e_widget_radio_add(evas, _("No new windows get focus"),
> - E_FOCUS_NONE, rg);
> + ob = e_widget_radio_add(evas, _("None"), E_FOCUS_NONE, rg);
> e_widget_framelist_object_append(of, ob);
> - ob = e_widget_radio_add(evas, _("All new windows get focus"),
> - E_FOCUS_NEW_WINDOW, rg);
> + ob = e_widget_radio_add(evas, _("All"), E_FOCUS_NEW_WINDOW, rg);
> e_widget_framelist_object_append(of, ob);
> - ob = e_widget_radio_add(evas, _("Only new dialogs get focus"),
> - E_FOCUS_NEW_DIALOG, rg);
> + ob = e_widget_radio_add(evas, _("Only dialogs"), E_FOCUS_NEW_DIALOG, rg);
> e_widget_framelist_object_append(of, ob);
> - ob = e_widget_radio_add(evas, _("Only new dialogs get focus if the parent
> has focus"),
> + ob = e_widget_radio_add(evas, _("Only dialogs with focused parent"),
> E_FOCUS_NEW_DIALOG_IF_OWNER_FOCUSED, rg);
> e_widget_framelist_object_append(of, ob);
> e_widget_list_object_append(o, of, 1, 0, 0.5);
> @@ -213,18 +210,26 @@
> ob = e_widget_check_add(evas, _("Always pass click events to programs"),
> &(cfdata->pass_click_on));
> e_widget_framelist_object_append(of, ob);
> - ob = e_widget_check_add(evas, _("A click on a window always raises it"),
> + ob = e_widget_check_add(evas, _("Click raises the window"),
> &(cfdata->always_click_to_raise));
> e_widget_framelist_object_append(of, ob);
> - ob = e_widget_check_add(evas, _("A click in a window always focuses it"),
> + ob = e_widget_check_add(evas, _("Click focuses the window"),
> &(cfdata->always_click_to_focus));
> e_widget_framelist_object_append(of, ob);
> - ob = e_widget_check_add(evas, _("Refocus last focused window on desktop
> switch"),
> + ob = e_widget_check_add(evas, _("Refocus last window on desktop switch"),
> &(cfdata->focus_last_focused_per_desktop));
> e_widget_framelist_object_append(of, ob);
> - ob = e_widget_check_add(evas, _("Revert focus when hiding or closing a
> window"),
> + ob = e_widget_check_add(evas, _("Revert focus when it is lost"),
> &(cfdata->focus_revert_on_hide_or_close));
> e_widget_framelist_object_append(of, ob);
> +
> + /* NOTE/TODO:
> + *
> + * IMHO all these slide-pointer-to-window, warp and all should have
> + * an unique and consistent setting. In some cases it just do not
> + * make sense to have one but not the other.
> + */
> +
> ob = e_widget_check_add(evas, _("Slide pointer to a new focused window"),
> &(cfdata->pointer_slide));
> e_widget_framelist_object_append(of, ob);
>
> Modified: trunk/e/src/modules/conf_window_focus/e_mod_main.c
> ===================================================================
> --- trunk/e/src/modules/conf_window_focus/e_mod_main.c 2010-03-02
> 16:22:52 UTC (rev 46791)
> +++ trunk/e/src/modules/conf_window_focus/e_mod_main.c 2010-03-02
> 16:33:35 UTC (rev 46792)
> @@ -25,7 +25,7 @@
> }
>
> EAPI int
> -e_modapi_shutdown(E_Module *m)
> +e_modapi_shutdown(E_Module *m __UNUSED__)
> {
> E_Config_Dialog *cfd;
> while ((cfd = e_config_dialog_get("E", "windows/window_focus")))
> e_object_del(E_OBJECT(cfd));
> @@ -36,7 +36,7 @@
> }
>
> EAPI int
> -e_modapi_save(E_Module *m)
> +e_modapi_save(E_Module *m __UNUSED__)
> {
> return 1;
> }
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> enlightenment-svn mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel