Re:Re: HScale don't move

2011-08-09 Thread Xi Yang
I changed both page size and page increment to 0, and the slider moves. 
However, why I get an initial value of 0, instead of 5?




At 2011-08-09 13:46:54,Tadej Borovšak tadeb...@gmail.com wrote:
Hi.

 object class=GtkAdjustment id=adj_assign
property name=value5/property
property name=upper10/property
property name=step_increment0.10001/property
property name=page_increment10/property
property name=page_size10/property
  /object

page-size property of GtkAdjustment should be set to 0 when not being
used with scrollbars. value property of GtkAdjustment is confined to
interval [lower, upper - page_size], which in your case is only single
value 0.

Cheers,
Tadej

-- 
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: HScale don't move

2011-08-09 Thread David Nečas
On Tue, Aug 09, 2011 at 02:24:30PM +0800, Xi Yang wrote:
 I changed both page size and page increment to 0, and the slider moves. 
 However, why I get an initial value of 0, instead of 5?
 

By changing the value property:

 property name=value5/property

Yeti

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


How can I get argc and argv from Gtk+ API?

2011-08-09 Thread zxx zxx
Hi all:

I have some experience in Qt but not Gtk+. I can get argc and argv from
Qt API when I develop application with Qt4:
QCoreApplication::argc();
QCoreApplication::argv();

But I don't know how to get argc and argv from Gtk+ API when I develop
application with Gtk+.
Does anyone know how to get argc and argv from Gtk+ API? please tell
me.

Thanks :)
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: How can I get argc and argv from Gtk+ API?

2011-08-09 Thread David Nečas
On Tue, Aug 09, 2011 at 03:19:16PM +0800, zxx zxx wrote:
 I have some experience in Qt but not Gtk+. I can get argc and argv from
 Qt API when I develop application with Qt4:
 QCoreApplication::argc();
 QCoreApplication::argv();
 
 But I don't know how to get argc and argv from Gtk+ API when I develop
 application with Gtk+.
 Does anyone know how to get argc and argv from Gtk+ API? please tell
 me.

You get argc and argv as arguments to your main() function as usual.

Or from the GApplicationCommandLine argment passed to your
command-line handler of GtkApplication/GApplication if you use the
GApplication framework.

Yeti

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Re: HScale don't move

2011-08-09 Thread Tadej Borovšak
Hi.

 I changed both page size and page increment to 0, and the slider moves.
 However, why I get an initial value of 0, instead of 5?

Make sure your value is defined after lower and upper, otherwise it
may be clamped to something unexpected.

BTW, what version of glade are you using? Recent versions produce
GtkAdjustment's properties in proper order.

-- 
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re:Re: Re: HScale don't move

2011-08-09 Thread Xi Yang
I use glade 3.6.7 which is the newest version available in windows. It did not 
produce correct order of those properties.




At 2011-08-09 15:58:21,Tadej Borovšak tadeb...@gmail.com wrote:
Hi.

 I changed both page size and page increment to 0, and the slider moves.
 However, why I get an initial value of 0, instead of 5?

Make sure your value is defined after lower and upper, otherwise it
may be clamped to something unexpected.

BTW, what version of glade are you using? Recent versions produce
GtkAdjustment's properties in proper order.

-- 
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list