And adjust size hint when setting icon too. (Same problem as previous commit
authorChristopher Michael <cpmichael1@comcast.net>
Wed, 10 Feb 2010 02:41:39 +0000 (02:41 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Wed, 10 Feb 2010 02:41:39 +0000 (02:41 +0000)
wrt text).

SVN revision: 46033

src/bin/e_widget_button.c

index b1960778a34f139a547bacfbf66eda7af562a6d7..dc11e1bf922c9ef112b4c38458db0ac6e51a3236 100644 (file)
@@ -107,6 +107,7 @@ EAPI void
 e_widget_button_icon_set(Evas_Object *obj, Evas_Object *icon)
 {
    E_Widget_Data *wd;
+   int mw, mh;
 
    wd = e_widget_data_get(obj);
    if (wd->o_icon)
@@ -129,6 +130,8 @@ e_widget_button_icon_set(Evas_Object *obj, Evas_Object *icon)
    else
      wd->type = ~(wd->type & E_WIDGET_BUTTON_ICON);
    _e_wid_button_state_send(wd);
+   edje_object_size_min_calc(wd->o_button, &mw, &mh);
+   e_widget_size_min_set(obj, mw, mh);
 }
 
 static void