RE: Default values for spin buttons in Glade




Thanks for your reply Nicola. It's very helpful :)

 

I would rather not edit the glade file itself, incase it introduces compatibility problems with glade itself.

 

Is there a way to set the default value without an adjustment? The only other solution I can think of is to 
create the adjustment in code and then apply it to the spin button at runtime.

 

Any input appreciated :)
 
Date: Sat, 24 Apr 2010 09:53:44 +0200
From: ntd entidi it
To: abxccd msn com
CC: gtk-app-devel-list gnome org
Subject: Re: Default values for spin buttons in Glade

Il giorno Sat, 24 Apr 2010 06:26:03 +0000
dfg dfg <abxccd msn com> ha scritto:

Can someone tell me how to set up a default value for a spin button in Glade?

The adjustment generated by glade has the following properties:

<property name="value">...</property>
<property name="lower">...</property>
<property name="upper">...</property>

I manually moved the "value" property *after* the limits and the
default values started to work. This has the huge drawback you
cannot use glade3 anymore.

By using GtkAdjustment you'll probably meet also the issue
#575714 [0], present in old versions of GtkBuilder such as
the one shipped with gtk-2.16.6 (the windows stable gtk).

Ciao.
-- 
Nicola

[0] http://bugzilla.gnome.org/show_bug.cgi?id=575714
                                          
_________________________________________________________________
Live connected. Get Hotmail & Messenger on your phone.
http://go.microsoft.com/?linkid=9724462


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