Re: My take icon icon resizing
- From: Owen Taylor <otaylor redhat com>
- To: Tim Janik <timj gtk org>
- Cc: Brian Cameron <Brian Cameron sun com>, calum benson sun com,	Bill Haneman <bill haneman sun com>, markmc sun com,	Gtk+ Developers <gtk-devel-list gnome org>
- Subject: Re: My take icon icon resizing
- Date: Wed,  2 Oct 2002 00:33:35 -0400 (EDT)
Tim Janik <timj gtk org> writes:
> On Tue, 1 Oct 2002, Owen Taylor wrote:
> 
> > (Tim: if you want to check it over, that could be useful - it's mostly
> > changing your code.)
> 
> +void
> +_gtk_settings_set_property_value_from_rc (GtkSettings            *settings,
> +                                         const gchar            *prop_name,
> +                                         const GtkSettingsValue *new_value)
> +{
> [...]
> 
> +void
> +reset_rc_values_foreach (GQuark    key_id,
> +                        gpointer  data,
> +                        gpointer  user_data)
> this function should be static.
Thanks.
 
> +void
> +_gtk_settings_reset_rc_values (GtkSettings *settings)
> [...]
> +  for (p = pspecs; *p; p++)
> +    {
> +      GParamSpec *pspec = *p;
> +
> +      g_value_unset (&settings->property_values[i].value);
> +
> +      g_value_init (&settings->property_values[i].value, G_PARAM_SPEC_VALUE_TYPE (pspec));
> +      g_param_value_set_default (pspec, &settings->property_values[i].value);
> i don't see the point in unsetting and newly initializing the value, couldn't
> you simply just set_default() ?
Yeah, most likely :-)
>  /* implementation details */
> +void gtk_settings_set_property_value_from_rc (GtkSettings            *settings,
> +                                             const gchar            *name,
> +                                             const GtkSettingsValue *svalue);
> the function prototype needs an underscore prefix as quoted above.
Hmm, this points out that I forgot to change gtkrc.c to actually
use this function. I guess I need to investigate why settings set
using using the non-rc variant of the function were being reset...
Regards,
                                        Owen
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]