Re: question on GtkScrolledWindow

2008-02-02 Thread Gregory Hosler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Iago Rubio wrote: | Sorry, looks like the attachment got stripped. | | Here you've got the code. | a. Many thanks. - -Greg | | | #include | // gcc `pkg-config --cflags --libs gtk+-2.0` test_w.c | | gboolean | scroll_viewport (gpointer data) |

Re: question on GtkScrolledWindow

2008-02-01 Thread Gregory Hosler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Iago Rubio wrote: | Hi Gregory, | | On Fri, 2008-02-01 at 20:31 +0800, Gregory Hosler wrote: | Hi, | | I have 2 questions on GtkScrolledWindow | | The 1st. | | I want the scroll bar to be "looser". As an example. Suppose I have one item, an icon, in |

Re: question on GtkScrolledWindow

2008-02-01 Thread Iago Rubio
Sorry, looks like the attachment got stripped. Here you've got the code. #include // gcc `pkg-config --cflags --libs gtk+-2.0` test_w.c gboolean scroll_viewport (gpointer data) { GtkWidget *viewport = (GtkWidget*)data; GtkAdjustment *adj; gdouble upper; adj = gtk_viewport_get

Re: question on GtkScrolledWindow

2008-02-01 Thread Iago Rubio
Hi Gregory, On Fri, 2008-02-01 at 20:31 +0800, Gregory Hosler wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > I have 2 questions on GtkScrolledWindow > > The 1st. > > I want the scroll bar to be "looser". As an example. Suppose I have one item, > an icon, in > a horizonta

question on GtkScrolledWindow

2008-02-01 Thread Gregory Hosler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have 2 questions on GtkScrolledWindow The 1st. I want the scroll bar to be "looser". As an example. Suppose I have one item, an icon, in a horizontally scrollable window. Lets say that the window is 200 pixels across, and the icon is 10 pixe