Re: List of gtkrc-2.0 options?

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

 



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


_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux