1 /* 2 Copyright 2011 Canonical Ltd. 3 4 Authors: 5 Conor Curran <conor.curran@canonical.com> 6 7 This program is free software: you can redistribute it and/or modify it 8 under the terms of the GNU General Public License version 3, as published 9 by the Free Software Foundation. 10 11 This program is distributed in the hope that it will be useful, but 12 WITHOUT ANY WARRANTY; without even the implied warranties of 13 MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 14 PURPOSE. See the GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License along 17 with this program. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 #ifndef __VOIP_INPUT_WIDGET_H__ 20 #define __VOIP_INPUT_WIDGET_H__ 21 22 #include <glib.h> 23 #include <glib-object.h> 24 #include <gtk/gtk.h> 25 #include <libdbusmenu-gtk/menuitem.h> 26 27 G_BEGIN_DECLS 28 29 #define VOIP_INPUT_WIDGET_TYPE (voip_input_widget_get_type ()) 30 #define VOIP_INPUT_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VOIP_INPUT_WIDGET_TYPE, VoipInputWidget)) 31 #define VOIP_INPUT_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VOIP_INPUT_WIDGET_TYPE, VoipInputWidgetClass)) 32 #define IS_VOIP_INPUT_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VOIP_INPUT_WIDGET_TYPE)) 33 #define IS_VOIP_INPUT_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VOIP_INPUT_WIDGET_TYPE)) 34 #define VOIP_INPUT_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VOIP_INPUT_WIDGET_TYPE, VoipInputWidgetClass)) 35 36 typedef struct _VoipInputWidget VoipInputWidget; 37 typedef struct _VoipInputWidgetClass VoipInputWidgetClass; 38 39 struct _VoipInputWidgetClass { 40 GObjectClass parent_class; 41 }; 42 43 struct _VoipInputWidget { 44 GObject parent; 45 }; 46 47 GType voip_input_widget_get_type (void) G_GNUC_CONST; 48 GtkWidget* voip_input_widget_new(DbusmenuMenuitem* twin_item); 49 GtkWidget* voip_input_widget_get_ido_slider(VoipInputWidget* self); 50 void voip_input_widget_update(VoipInputWidget* self, gdouble update); 51 void voip_input_widget_tidy_up (GtkWidget *widget); 52 53 G_END_DECLS 54 55 #endif 56 57