1 /* 2 * Nautilus-Actions 3 * A Nautilus extension which offers configurable context menu actions. 4 * 5 * Copyright (C) 2005 The GNOME Foundation 6 * Copyright (C) 2006-2008 Frederic Ruaudel and others (see AUTHORS) 7 * Copyright (C) 2009-2014 Pierre Wieser and others (see AUTHORS) 8 * 9 * Nautilus-Actions is free software; you can redistribute it and/or 10 * modify it under the terms of the GNU General Public License as 11 * published by the Free Software Foundation; either version 2 of 12 * the License, or (at your option) any later version. 13 * 14 * Nautilus-Actions is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 * General Public License for more details. 18 * 19 * You should have received a copy of the GNU General Public License 20 * along with Nautilus-Actions; see the file COPYING. If not, see 21 * <http://www.gnu.org/licenses/>. 22 * 23 * Authors: 24 * Frederic Ruaudel <grumz@grumz.net> 25 * Rodrigo Moya <rodrigo@gnome-db.org> 26 * Pierre Wieser <pwieser@trychlos.org> 27 * ... and many others (see AUTHORS) 28 */ 29 30 #ifndef __NACT_SORT_BUTTONS_H__ 31 #define __NACT_SORT_BUTTONS_H__ 32 33 /** 34 * SECTION: nact-sort-buttons 35 * @title: NactSortButtons 36 * @short_description: The Sort Buttons class definition 37 * @include: nact-sort-buttons.h 38 * 39 * A convenience class to manager sort buttons in the user interface. 40 * 41 * The sort order mode is monitored, so that buttons automatically display 42 * the right order mode if it is modified by another way (e.g. from 43 * Preferences editor). 44 * 45 * Modifying the sort order mode requires that: 46 * - level zero is writable (see NAUpdater) 47 * - preferences are not locked (see NAUpdater) 48 * - sort order mode is not a mandatory preference. 49 */ 50 51 #include "base-window.h" 52 53 G_BEGIN_DECLS 54 55 #define NACT_TYPE_SORT_BUTTONS ( nact_sort_buttons_get_type()) 56 #define NACT_SORT_BUTTONS( object ) ( G_TYPE_CHECK_INSTANCE_CAST( object, NACT_TYPE_SORT_BUTTONS, NactSortButtons )) 57 #define NACT_SORT_BUTTONS_CLASS( klass ) ( G_TYPE_CHECK_CLASS_CAST( klass, NACT_TYPE_SORT_BUTTONS, NactSortButtonsClass )) 58 #define NACT_IS_SORT_BUTTONS( object ) ( G_TYPE_CHECK_INSTANCE_TYPE( object, NACT_TYPE_SORT_BUTTONS )) 59 #define NACT_IS_SORT_BUTTONS_CLASS( klass ) ( G_TYPE_CHECK_CLASS_TYPE(( klass ), NACT_TYPE_SORT_BUTTONS )) 60 #define NACT_SORT_BUTTONS_GET_CLASS( object ) ( G_TYPE_INSTANCE_GET_CLASS(( object ), NACT_TYPE_SORT_BUTTONS, NactSortButtonsClass )) 61 62 typedef struct _NactSortButtonsPrivate NactSortButtonsPrivate; 63 64 typedef struct { 65 /*< private >*/ 66 GObject parent; 67 NactSortButtonsPrivate *private; 68 } 69 NactSortButtons; 70 71 typedef struct _NactSortButtonsClassPrivate NactSortButtonsClassPrivate; 72 73 typedef struct { 74 /*< private >*/ 75 GObjectClass parent; 76 NactSortButtonsClassPrivate *private; 77 } 78 NactSortButtonsClass; 79 80 GType nact_sort_buttons_get_type( void ); 81 NactSortButtons *nact_sort_buttons_new ( BaseWindow *window ); 82 83 G_END_DECLS 84 85 #endif /* __NACT_SORT_BUTTONS_H__ */ 86