Re: libbonoboui-2.4.3 compilation derefencing type-punned pointer warning



Incidently, shouldn't the char* str by gchar *str?

Chris

[snip]
In bonobo-ui-preferences.c:

BonoboUIToolbarStyle
bonobo_ui_preferences_get_toolbar_style (void)
{
        BonoboUIToolbarStyle style;
        char *str;


        if (!client)
                client = gconf_client_get_default ();


        style = BONOBO_UI_TOOLBAR_STYLE_ICONS_AND_TEXT;


        str = gconf_client_get_string (client,

"/desktop/gnome/interface/toolbar_style",
                                       NULL);


        if (str != NULL) {
                gconf_string_to_enum (toolbar_styles,
                                      str, (gint *)&style);
                g_free (str);
        }


        return style;
}




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]