1 /* GTK - The GIMP Toolkit 2 * Copyright (C) 2013-2014 Red Hat, Inc. 3 * 4 * Authors: 5 * - Bastien Nocera <bnocera@redhat.com> 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Lesser General Public 9 * License as published by the Free Software Foundation; either 10 * version 2 of the License, or (at your option) any later version. 11 * 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General Public 18 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 21 /* 22 * Modified by the GTK+ Team and others 2013. See the AUTHORS 23 * file for a list of people on the GTK+ Team. See the ChangeLog 24 * files for a list of changes. These files are distributed with 25 * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 26 */ 27 28 #ifndef __TOTEM_SELECTION_TOOLBAR_H__ 29 #define __TOTEM_SELECTION_TOOLBAR_H__ 30 31 #include <gtk/gtkbox.h> 32 33 G_BEGIN_DECLS 34 35 #define TOTEM_TYPE_SELECTION_TOOLBAR (totem_selection_toolbar_get_type ()) 36 #define TOTEM_SELECTION_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOTEM_TYPE_SELECTION_TOOLBAR, TotemSelectionToolbar)) 37 #define TOTEM_SELECTION_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOTEM_TYPE_SELECTION_TOOLBAR, TotemSelectionToolbarClass)) 38 #define TOTEM_IS_SELECTION_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOTEM_TYPE_SELECTION_TOOLBAR)) 39 #define TOTEM_IS_SELECTION_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOTEM_TYPE_SELECTION_TOOLBAR)) 40 #define TOTEM_SELECTION_TOOLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOTEM_TYPE_SELECTION_TOOLBAR, TotemSelectionToolbarClass)) 41 42 typedef struct _TotemSelectionToolbar TotemSelectionToolbar; 43 typedef struct _TotemSelectionToolbarPrivate TotemSelectionToolbarPrivate; 44 typedef struct _TotemSelectionToolbarClass TotemSelectionToolbarClass; 45 46 struct _TotemSelectionToolbar 47 { 48 /*< private >*/ 49 GtkActionBar parent; 50 51 TotemSelectionToolbarPrivate *priv; 52 }; 53 54 struct _TotemSelectionToolbarClass 55 { 56 GtkActionBarClass parent_class; 57 }; 58 59 GType totem_selection_toolbar_get_type (void) G_GNUC_CONST; 60 GtkWidget* totem_selection_toolbar_new (void); 61 62 void totem_selection_toolbar_set_n_selected (TotemSelectionToolbar *bar, 63 guint n_selected); 64 guint totem_selection_toolbar_get_n_selected (TotemSelectionToolbar *bar); 65 66 void totem_selection_toolbar_set_show_delete_button (TotemSelectionToolbar *bar, 67 gboolean show_delete_button); 68 gboolean totem_selection_toolbar_get_show_delete_button (TotemSelectionToolbar *bar); 69 70 void totem_selection_toolbar_set_delete_button_sensitive (TotemSelectionToolbar *bar, 71 gboolean sensitive); 72 gboolean totem_selection_toolbar_get_delete_button_sensitive (TotemSelectionToolbar *bar); 73 74 G_END_DECLS 75 76 #endif /* __TOTEM_SELECTION_TOOLBAR_H__ */ 77