GtkListBox doesn't implement GtkScrollable so it needs to be added to a GtkViewport. Instead of having to do this in all .ui files, add a new helper function to setup the widget tree correctly. https://bugzilla.gnome.org/show_bug.cgi?id=732175
30 lines
996 B
C
30 lines
996 B
C
/*
|
|
* Copyright (C) 2014 Red Hat, Inc
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
void
|
|
cc_list_box_update_header_func (GtkListBoxRow *row,
|
|
GtkListBoxRow *before,
|
|
gpointer user_data);
|
|
|
|
void
|
|
cc_list_box_adjust_scrolling (GtkListBox *listbox);
|
|
|
|
void
|
|
cc_list_box_setup_scrolling (GtkListBox *listbox);
|