Re: How to detect the presence of scrollbar on scrolled window.
- From: "Ed Catmur" <ed catmur co uk>
- To: amol <amol kulkarni celunite com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: How to detect the presence of scrollbar on scrolled window.
- Date: Wed, 03 Jan 2007 12:04:31 +0000
amol wrote:
Does anyone know how to find out whether a vertical scrollbar is present
on scolled window or not.
I need to detect its presence at runtime.
below is the code which i tried to find out.but it is not working as
expected.
line 3 is always returning false.irrespective of vscrollbar presence.
1. scrolled_window = (GtkScrolledWindow *) gtk_scrolled_window_new
(NULL, NULL);
2. gtk_scrolled_window_set_policy (scrolled_window, GTK_POLICY_NEVER,
GTK_POLICY_AUTOMATIC);
3. if (scrolled_window->vscrollbar_visible) {
There's no such member as vscrollbar_visible in the GtkScrolledWindow
struct. Use gtk_scrolled_window_get_vscrollbar(), and possibly
GTK_WIDGET_VISIBLE.
Ed
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]