diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-10-19 13:40:22 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-10-19 13:40:22 +0800 |
commit | c68091255ef12850aade51ce317292179515377f (patch) | |
tree | 86eb70ee78214f07e0d0c80c8a073991c1e9c0a7 /libempathy-gtk/empathy-dialpad-widget.h | |
parent | 4df0759871f6539af24a5e88650f0c219cd0505a (diff) | |
download | gsoc2013-empathy-c68091255ef12850aade51ce317292179515377f.tar gsoc2013-empathy-c68091255ef12850aade51ce317292179515377f.tar.gz gsoc2013-empathy-c68091255ef12850aade51ce317292179515377f.tar.bz2 gsoc2013-empathy-c68091255ef12850aade51ce317292179515377f.tar.lz gsoc2013-empathy-c68091255ef12850aade51ce317292179515377f.tar.xz gsoc2013-empathy-c68091255ef12850aade51ce317292179515377f.tar.zst gsoc2013-empathy-c68091255ef12850aade51ce317292179515377f.zip |
Move dialpad into a widget of its own
Let's face it, the whole thing was getting a little unwieldly there in the
UI utils, and if we're going to be using it in more places, let's start by
abstracting it into a widget.
Diffstat (limited to 'libempathy-gtk/empathy-dialpad-widget.h')
-rw-r--r-- | libempathy-gtk/empathy-dialpad-widget.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-dialpad-widget.h b/libempathy-gtk/empathy-dialpad-widget.h new file mode 100644 index 000000000..f4cb83052 --- /dev/null +++ b/libempathy-gtk/empathy-dialpad-widget.h @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2011 Collabora Ltd. + * + * 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, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + * + * Authors: Danielle Madeley <danielle.madeley@collabora.co.uk> + */ + +#ifndef __EMPATHY_DIALPAD_WIDGET_H__ +#define __EMPATHY_DIALPAD_WIDGET_H__ + +#include <gtk/gtk.h> + +G_BEGIN_DECLS + +#define EMPATHY_TYPE_DIALPAD_WIDGET (empathy_dialpad_widget_get_type ()) +#define EMPATHY_DIALPAD_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EMPATHY_TYPE_DIALPAD_WIDGET, EmpathyDialpadWidget)) +#define EMPATHY_DIALPAD_WIDGET_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), EMPATHY_TYPE_DIALPAD_WIDGET, EmpathyDialpadWidgetClass)) +#define EMPATHY_IS_DIALPAD_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EMPATHY_TYPE_DIALPAD_WIDGET)) +#define EMPATHY_IS_DIALPAD_WIDGET_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), EMPATHY_TYPE_DIALPAD_WIDGET)) +#define EMPATHY_DIALPAD_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_DIALPAD_WIDGET, EmpathyDialpadWidgetClass)) + +typedef struct _EmpathyDialpadWidget EmpathyDialpadWidget; +typedef struct _EmpathyDialpadWidgetClass EmpathyDialpadWidgetClass; +typedef struct _EmpathyDialpadWidgetPrivate EmpathyDialpadWidgetPrivate; + +struct _EmpathyDialpadWidget +{ + GtkBox parent; + + EmpathyDialpadWidgetPrivate *priv; +}; + +struct _EmpathyDialpadWidgetClass +{ + GtkBoxClass parent_class; +}; + +GType empathy_dialpad_widget_get_type (void); +GtkWidget *empathy_dialpad_widget_new (void); + +G_END_DECLS + +#endif |