diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2013-04-20 17:06:42 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2013-04-20 17:10:05 +0900 |
commit | 92592e15179c3cda2ed44fc1ef7ad6b28d611b4a (patch) | |
tree | 2481237c3df7451f2b6a3bc80898dfd131a34cec /gladeui/glade-project-properties.h | |
parent | ce301a0be976abe4948add67a6d11f5612416d05 (diff) | |
download | glade-92592e15179c3cda2ed44fc1ef7ad6b28d611b4a.tar.gz |
Created GladeProjectProperties dialog
Split out the code in GladeProject and created a separate object implementing
the project properties dialog as a composite template widget.
Diffstat (limited to 'gladeui/glade-project-properties.h')
-rw-r--r-- | gladeui/glade-project-properties.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/gladeui/glade-project-properties.h b/gladeui/glade-project-properties.h new file mode 100644 index 00000000..e9684f80 --- /dev/null +++ b/gladeui/glade-project-properties.h @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2013 Tristan Van Berkom. + * + * This library is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * Authors: + * Tristan Van Berkom <tvb@gnome.org> + */ + +#ifndef __GLADE_PROJECT_PROPERTIES_H__ +#define __GLADE_PROJECT_PROPERTIES_H__ + +#include <gtk/gtk.h> +#include <gladeui/glade-xml-utils.h> + +G_BEGIN_DECLS + +#define GLADE_TYPE_PROJECT_PROPERTIES (glade_project_properties_get_type ()) +#define GLADE_PROJECT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST \ + ((obj), GLADE_TYPE_PROJECT_PROPERTIES, GladeProjectProperties)) +#define GLADE_PROJECT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST \ + ((klass), GLADE_TYPE_PROJECT_PROPERTIES, GladeProjectPropertiesClass)) +#define GLADE_IS_PROJECT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GLADE_TYPE_PROJECT_PROPERTIES)) +#define GLADE_IS_PROJECT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GLADE_TYPE_PROJECT_PROPERTIES)) +#define GLADE_PROJECT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS \ + ((obj), GLADE_TYPE_PROJECT_PROPERTIES, GladeProjectPropertiesClass)) + +typedef struct _GladeProjectProperties GladeProjectProperties; +typedef struct _GladeProjectPropertiesClass GladeProjectPropertiesClass; +typedef struct _GladeProjectPropertiesPrivate GladeProjectPropertiesPrivate; + +struct _GladeProjectProperties +{ + /*< private >*/ + GtkDialog dialog; + + GladeProjectPropertiesPrivate *priv; +}; + +struct _GladeProjectPropertiesClass +{ + GtkDialogClass parent_class; +}; + +GType glade_project_properties_get_type (void) G_GNUC_CONST; +GtkWidget *glade_project_properties_new (GladeProject *project); + +G_END_DECLS + +#endif /* __GLADE_PROJECT_PROPERTIES_H__ */ |