Re: List of gtkrc-2.0 options?



On Tue, 2004-11-02 at 18:26 +0100, Manuel Op de Coul wrote:
> I could use the "gtk-button-images" setting. The stock buttons
> are sensitive to this setting, but I have my own buttons with
> a custom pixmap and label inside.
> 

Getting the properties from the settings object using g_object_get()
works, e.g in gtkbutton.c:

static gboolean
show_image (GtkButton *button)
{
  GtkSettings *settings = gtk_widget_get_settings (GTK_WIDGET
(button));  
  gboolean show;

  g_object_get (settings, "gtk-button-images", &show, NULL);

  return show;
}

Matthias





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