[Gtk-sharp-list] Changing stock item buttons
Fredrik Nilsson
jymdman at home.se
Sat Jan 7 16:53:19 EST 2006
Hi,
A quick look in the gtk API docs on developer.gnome.org says that
GTK_STOCK_EDIT was added in gtk+ 2.6.
So this means that you have to use gtk# 2.6 or better.
/Fredrik
P.S. You can find a lot of useful information how to use gtk# by looking
at the docs for C on developer.gnome.org.
Clark Endrizzi wrote:
> Hmmm, for some very strange reason I don't have Gtk.Stock.Edit. I
> have all the others pretty much but not edit. I know I don't have the
> most current version, could this be the problem? Edit seems like a
> pretty common one though so I don't understand how this could be the
> case.
>
> Any ideas?
>
> Thanks!
>
> On 1/7/06, Clark Endrizzi <cendrizzi at gmail.com> wrote:
>
>> Thank you!
>>
>> I'll try it out.
>>
>> On 1/7/06, Fredrik Nilsson <jymdman at home.se> wrote:
>>
>>> Hi!
>>>
>>> button.Label = Gtk.Stock.Add;
>>>
>>> should do the work for you!
>>>
>>> /Fredrik
>>>
>>>> Hi, I define a button in Glade as the stock edit button. Later in my
>>>> progrma I want to change it to the stock add button.
>>>>
>>>> The problem is, and I've looked at this for over an hour, it looks
>>>> like you define a button using the stock stuff at creation time, not
>>>> allowing you to dynamically change it. Is this correct?
>>>>
>>>> Does this mean I'm going to have destroy and recreate the buttons?
>>>>
>>>> --
>>>> -Clark Endrizzi
>>>> _______________________________________________
>>>> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
>>>> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>>>>
>>>>
>>>>
>>>>
>>>
>> --
>> -Clark Endrizzi
>>
>>
>
>
> --
> -Clark Endrizzi
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>
>
More information about the Gtk-sharp-list
mailing list