Ok, tested the toolbook code again (with the updated theme file), but the problem still persists :( I've attached my test code and an updated screenshot it here:

http://devilhorns.us/images/toolbook2.png

To reiterate, when adding an image to the toolbook, the toolbar portion of the code is not sized correctly.

dh
#include "e.h"

/* local function prototypes */
static void *_create_data(E_Config_Dialog *cfd);
static void _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
static int _basic_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
static Evas_Object *_basic_create(E_Config_Dialog *cfd, Evas *evas, 
E_Config_Dialog_Data *cfdata);

struct _E_Config_Dialog_Data 
{
   E_Shelf *es;
   E_Config_Shelf *escfg;
   int mode;
};

EAPI void 
e_int_shelf_config(E_Shelf *es) 
{
   E_Config_Dialog *cfd;
   E_Config_Dialog_View *v;

   v = E_NEW(E_Config_Dialog_View, 1);
   if (!v) return;
   v->create_cfdata = _create_data;
   v->free_cfdata = _free_data;
   v->basic.create_widgets = _basic_create;
   v->basic.apply_cfdata = _basic_apply;

   cfd = e_config_dialog_new(es->zone->container, _("Shelf Settings"), 
                             "E", "_shelf_config_dialog", 
                             "preferences-desktop-shelf", 0, v, es);
   es->config_dialog = cfd;
}

/* local function prototypes */
static void *
_create_data(E_Config_Dialog *cfd) 
{
   E_Config_Dialog_Data *cfdata;

   cfdata = E_NEW(E_Config_Dialog_Data, 1);
   cfdata->es = cfd->data;
   cfdata->escfg = cfdata->es->cfg;
   return cfdata;
}

static void 
_free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) 
{
   cfdata->es->config_dialog = NULL;
   E_FREE(cfdata);
}

static int 
_basic_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) 
{
   return 1;
}

static Evas_Object *
_basic_create(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata) 
{
   Evas_Object *o, *otb;
   Evas_Object *icon, *ow;

   o = e_widget_list_add(evas, 0, 0);

   otb = e_widget_toolbook_add(evas, 32, 32);
   ow = e_widget_button_add(evas, _("Test"), NULL, NULL, NULL, NULL);
   icon = e_icon_add(evas);
   if (!e_util_icon_theme_set(icon, "preferences-appearance")) 
     {
        evas_object_del(icon);
        icon = e_util_icon_add("preferences-appearance", evas);
     }

   e_widget_toolbook_page_append(otb, icon, _("Layout"), ow, 1, 1, 1, 1, 0.0, 
0.0);
   e_widget_list_object_append(o, otb, 1, 1, 0.5);
   return o;
}
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to