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 _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list