public
Description: a tiny graphical app kit for ruby
Homepage: http://code.whytheluckystiff.net/shoes
Clone URL: git://github.com/why/shoes.git
 * shoes/canvas.c: use inner width and height of slots for limits of the things 
 inside.
 * shoes/app.c: don't prefix the title with "Shoes - "
why (author)
Fri Jul 11 18:00:00 -0700 2008
commit  50a6a1e4501dd29e4a1f13778c69675b0f763365
tree    95e3e76442f38e2805d55da1f11b8247d13389c8
parent  37ea5ffad6076dfd17152ce988648688db2a5faf
...
146
147
148
149
150
151
152
153
154
 
 
 
155
156
157
...
146
147
148
 
149
 
 
 
 
150
151
152
153
154
155
0
@@ -146,12 +146,10 @@ void
0
 shoes_app_title(shoes_app *app, VALUE title)
0
 {
0
   char *msg;
0
-  app->title = rb_str_new2(SHOES_APPNAME);
0
   if (!NIL_P(title))
0
-  {
0
-    rb_str_cat2(app->title, " - ");
0
-    rb_str_append(app->title, title);
0
-  }
0
+    app->title = title;
0
+  else
0
+    app->title = rb_str_new2(SHOES_APPNAME);
0
   msg = RSTRING_PTR(app->title);
0
   shoes_native_app_title(app, msg);
0
 }
...
1250
1251
1252
1253
1254
 
 
1255
1256
1257
...
1250
1251
1252
 
 
1253
1254
1255
1256
1257
0
@@ -1250,8 +1250,8 @@ shoes_canvas_draw(VALUE self, VALUE c, VALUE actual)
0
       else
0
       {
0
         shoes_place_decide(&c1->place, c1->parent, c1->attr, c1->width, c1->height, REL_CANVAS, FALSE);
0
-        c1->height = c1->place.h;
0
-        c1->width = c1->place.w;
0
+        c1->height = c1->place.ih;
0
+        c1->width = c1->place.iw;
0
         c1->place.flags |= FLAG_ORIGIN;
0
         if (!ABSY(c1->place)) {
0
           self_t->cx = c1->place.x + c1->place.w;

Comments