billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=98fd3b0a118a3035e119f91091c562f2671bc3a1

commit 98fd3b0a118a3035e119f91091c562f2671bc3a1
Author: Boris Faure <[email protected]>
Date:   Sun Feb 2 10:50:12 2014 +0100

    force grid size. Closes T662
    
    This commit was done at the enlightenment stand at FOSDEM
---
 src/bin/main.c   | 22 ++++++++++++----------
 src/bin/termio.c | 12 ++++++++----
 2 files changed, 20 insertions(+), 14 deletions(-)

diff --git a/src/bin/main.c b/src/bin/main.c
index 3d6c94d..18de15a 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -2425,16 +2425,6 @@ main_ipc_new(Ipc_Instance *inst)
      }
    config = config_fork(main_config);
    ecore_app_args_set(nargc, (const char **)nargv);
-   wn = main_win_new(inst->name, inst->role, inst->title, inst->icon_name,
-                     config, inst->fullscreen, inst->iconic,
-                     inst->borderless, inst->override, inst->maximized);
-   if (!wn)
-     {
-        ecore_app_args_set(pargc, (const char **)pargv);
-        free(nargv);
-        config_del(config);
-        return;
-     }
    
    config = config_fork(config);
    
@@ -2493,6 +2483,18 @@ main_ipc_new(Ipc_Instance *inst)
 
    if (inst->w <= 0) inst->w = 80;
    if (inst->h <= 0) inst->h = 24;
+
+   wn = main_win_new(inst->name, inst->role, inst->title, inst->icon_name,
+                     config, inst->fullscreen, inst->iconic,
+                     inst->borderless, inst->override, inst->maximized);
+   if (!wn)
+     {
+        ecore_app_args_set(pargc, (const char **)pargv);
+        free(nargv);
+        config_del(config);
+        return;
+     }
+
    term = main_term_new(wn, config, inst->cmd, inst->login_shell,
                         inst->cd, inst->w, inst->h, inst->hold);
    if (!term)
diff --git a/src/bin/termio.c b/src/bin/termio.c
index 31dd74d..f8cd836 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -3899,8 +3899,9 @@ _smart_resize(Evas_Object *obj, Evas_Coord w, Evas_Coord 
h)
    evas_object_geometry_get(obj, NULL, NULL, &ow, &oh);
    if ((ow == w) && (oh == h)) return;
    evas_object_smart_changed(obj);
-   if (!sd->delayed_size_timer) sd->delayed_size_timer = 
-     ecore_timer_add(0.0, _smart_cb_delayed_size, obj);
+   if (!sd->delayed_size_timer)
+     sd->delayed_size_timer = ecore_timer_add(0.0, _smart_cb_delayed_size,
+                                              obj);
    else ecore_timer_delay(sd->delayed_size_timer, 0.0);
    evas_object_resize(sd->event, ow, oh);
 }
@@ -3915,14 +3916,17 @@ _smart_calculate(Evas_Object *obj)
 
    evas_object_geometry_get(obj, &ox, &oy, &ow, &oh);
    evas_object_move(sd->grid.obj, ox, oy);
+   evas_object_move(sd->event, ox, oy);
+   evas_object_resize(sd->event, ow, oh);
+   evas_object_resize(obj,
+                      sd->grid.w * sd->font.chw,
+                      sd->grid.h * sd->font.chh);
    evas_object_resize(sd->grid.obj,
                       sd->grid.w * sd->font.chw,
                       sd->grid.h * sd->font.chh);
    evas_object_move(sd->cursor.obj,
                     ox + (sd->cursor.x * sd->font.chw),
                     oy + (sd->cursor.y * sd->font.chh));
-   evas_object_move(sd->event, ox, oy);
-   evas_object_resize(sd->event, ow, oh);
 }
 
 static void

-- 


Reply via email to