gnome-control-center/shell/list-box-helper.h
Rui Matos ddd2d5ce8b shell: Add GtkListBox/Row derived types that do single row activations
We often use rows representing different things in the same list
box. In these cases it's often desirable to have rows emitting their
own activation signals instead of having a single handler for the
whole list box that dispatches according to the activated row.

https://bugzilla.gnome.org/show_bug.cgi?id=785949
2017-08-09 19:27:08 +02:00

37 lines
1.3 KiB
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>
#define CC_TYPE_LIST_BOX_ROW (cc_list_box_row_get_type ())
G_DECLARE_FINAL_TYPE (CcListBoxRow, cc_list_box_row, CC, LIST_BOX_ROW, GtkListBoxRow)
#define CC_TYPE_LIST_BOX (cc_list_box_get_type ())
G_DECLARE_FINAL_TYPE (CcListBox, cc_list_box, CC, LIST_BOX, GtkListBox)
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,
guint num_rows);