1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ 2 /* 3 * brasero 4 * Copyright (C) Philippe Rouquier 2007-2008 <bonfire-app@wanadoo.fr> 5 * 6 * Brasero is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * brasero is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 * See the GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with brasero. If not, write to: 18 * The Free Software Foundation, Inc., 19 * 51 Franklin Street, Fifth Floor 20 * Boston, MA 02110-1301, USA. 21 */ 22 23 #ifndef _BRASERO_TIME_BUTTON_H_ 24 #define _BRASERO_TIME_BUTTON_H_ 25 26 #include <glib-object.h> 27 28 #include <gtk/gtk.h> 29 30 G_BEGIN_DECLS 31 32 #define BRASERO_TYPE_TIME_BUTTON (brasero_time_button_get_type ()) 33 #define BRASERO_TIME_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BRASERO_TYPE_TIME_BUTTON, BraseroTimeButton)) 34 #define BRASERO_TIME_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BRASERO_TYPE_TIME_BUTTON, BraseroTimeButtonClass)) 35 #define BRASERO_IS_TIME_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BRASERO_TYPE_TIME_BUTTON)) 36 #define BRASERO_IS_TIME_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BRASERO_TYPE_TIME_BUTTON)) 37 #define BRASERO_TIME_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BRASERO_TYPE_TIME_BUTTON, BraseroTimeButtonClass)) 38 39 typedef struct _BraseroTimeButtonClass BraseroTimeButtonClass; 40 typedef struct _BraseroTimeButton BraseroTimeButton; 41 42 struct _BraseroTimeButtonClass 43 { 44 GtkBoxClass parent_class; 45 46 void (*value_changed) (BraseroTimeButton *self); 47 }; 48 49 struct _BraseroTimeButton 50 { 51 GtkBox parent_instance; 52 }; 53 54 GType brasero_time_button_get_type (void) G_GNUC_CONST; 55 56 GtkWidget * 57 brasero_time_button_new (void); 58 59 gint64 60 brasero_time_button_get_value (BraseroTimeButton *time); 61 62 void 63 brasero_time_button_set_value (BraseroTimeButton *time, 64 gint64 value); 65 void 66 brasero_time_button_set_max (BraseroTimeButton *time, 67 gint64 max); 68 69 void 70 brasero_time_button_set_show_frames (BraseroTimeButton *time, 71 gboolean show); 72 73 G_END_DECLS 74 75 #endif /* _BRASERO_TIME_BUTTON_H_ */ 76