Enlightenment CVS committal
Author : raster
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_about.c e_border.c e_obj_dialog.c e_theme_about.c
Log Message:
handle forced resized in about dialogs
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_about.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- e_about.c 4 May 2007 16:21:53 -0000 1.19
+++ e_about.c 8 Jul 2008 19:41:42 -0000 1.20
@@ -7,6 +7,7 @@
static void _e_about_free(E_About *about);
static void _e_about_cb_delete(E_Win *win);
static void _e_about_cb_close(void *data, Evas_Object *obj, const char
*emission, const char *source);
+static void _e_about_cb_resize(E_Win *win);
static E_About *_e_about = NULL;
@@ -60,6 +61,7 @@
return NULL;
}
e_win_delete_callback_set(about->win, _e_about_cb_delete);
+ e_win_resize_callback_set(about->win, _e_about_cb_resize);
about->win->data = about;
e_win_dialog_set(about->win, 1);
e_win_name_class_set(about->win, "E", "_about");
@@ -200,4 +202,13 @@
about = data;
if (!about) return;
e_util_defer_object_del(E_OBJECT(about));
+}
+
+static void
+_e_about_cb_resize(E_Win *win)
+{
+ E_About *about;
+
+ about = win->data;
+ evas_object_resize(about->bg_object, about->win->w, about->win->h);
}
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.635
retrieving revision 1.636
diff -u -3 -r1.635 -r1.636
--- e_border.c 19 May 2008 04:15:47 -0000 1.635
+++ e_border.c 8 Jul 2008 19:41:42 -0000 1.636
@@ -1376,7 +1376,8 @@
{
if (e_border_under_pointer_get(bd->desk, bd))
{
- if (!e_border_pointer_warp_to_center(bd))
+// FIXME: make this config. this is just annoying to warp all the time here!
+// if (!e_border_pointer_warp_to_center(bd))
e_border_focus_set(bd, 1, 1);
}
else
@@ -1385,7 +1386,8 @@
else if (e_config->focus_policy == E_FOCUS_CLICK)
e_border_focus_set(bd, 1, 1);
else
- if (!e_border_pointer_warp_to_center(bd))
+// FIXME: make this config. this is just annoying to warp all the time here!
+// if (!e_border_pointer_warp_to_center(bd))
e_border_focus_set(bd, 1, 1);
ecore_x_pointer_ungrab();
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_obj_dialog.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_obj_dialog.c 4 May 2007 16:21:53 -0000 1.4
+++ e_obj_dialog.c 8 Jul 2008 19:41:42 -0000 1.5
@@ -7,6 +7,7 @@
static void _e_obj_dialog_free(E_Obj_Dialog *od);
static void _e_obj_dialog_cb_delete(E_Win *win);
static void _e_obj_dialog_cb_close(void *data, Evas_Object *obj, const char
*emission, const char *source);
+static void _e_obj_dialog_cb_resize(E_Win *win);
/* local subsystem globals */
@@ -36,6 +37,7 @@
return NULL;
}
e_win_delete_callback_set(od->win, _e_obj_dialog_cb_delete);
+ e_win_resize_callback_set(od->win, _e_obj_dialog_cb_resize);
od->win->data = od;
e_win_dialog_set(od->win, 1);
e_win_name_class_set(od->win, class_name, class_class);
@@ -137,4 +139,13 @@
if (od->cb_delete)
od->cb_delete(od);
e_util_defer_object_del(E_OBJECT(od));
+}
+
+static void
+_e_obj_dialog_cb_resize(E_Win *win)
+{
+ E_Obj_Dialog *od;
+
+ od = win->data;
+ evas_object_resize(od->bg_object, od->win->w, od->win->h);
}
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_theme_about.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- e_theme_about.c 4 May 2007 16:21:53 -0000 1.10
+++ e_theme_about.c 8 Jul 2008 19:41:42 -0000 1.11
@@ -7,6 +7,7 @@
static void _e_theme_about_free(E_Theme_About *about);
static void _e_theme_about_cb_delete(E_Win *win);
static void _e_theme_about_cb_close(void *data, Evas_Object *obj, const char
*emission, const char *source);
+static void _e_theme_about_cb_resize(E_Win *win);
static E_Theme_About *_e_theme_about = NULL;
@@ -60,6 +61,7 @@
return NULL;
}
e_win_delete_callback_set(about->win, _e_theme_about_cb_delete);
+ e_win_resize_callback_set(about->win, _e_theme_about_cb_resize);
about->win->data = about;
e_win_dialog_set(about->win, 1);
e_win_name_class_set(about->win, "E", "_theme_about");
@@ -129,4 +131,13 @@
about = data;
if (!about) return;
e_util_defer_object_del(E_OBJECT(about));
+}
+
+static void
+_e_theme_about_cb_resize(E_Win *win)
+{
+ E_Theme_About *about;
+
+ about = win->data;
+ evas_object_resize(about->bg_object, about->win->w, about->win->h);
}
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs