I have a class that inherits button and it looks like this:
public class MyButton : Button {
Gtk.Image image; // This doesn't work
}
I need to initiate a GTK Widget that belongs to the class “MyButton”. However, I can’t really do it. Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s hard to tell what exactly you’re trying to do… If you’re trying to set the image property of the GtkButton (see http://developer.gnome.org/gtk/stable/GtkButton.html#GtkButton–image), something like this should work: