summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2011-03-28 11:25:56 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2011-04-04 15:46:32 -0300
commit5b389a924980436106c289eea573e1fee4ead299 (patch)
tree4c7d971780f29d559b71406cdb5ed1e9d5d608da
parent7a15fba82cf8959dcc038f4b7b205d7ad9a8cc25 (diff)
downloadglade-5b389a924980436106c289eea573e1fee4ead299.tar.gz
plugins/gtk+/glade-gtk.h: moved constant macros to common header
plugins/gtk+/glade-gtk-activatable.h: added GtkActivatable declaration
-rw-r--r--plugins/gtk+/glade-gtk-activatable.h43
-rw-r--r--plugins/gtk+/glade-gtk.h44
2 files changed, 87 insertions, 0 deletions
diff --git a/plugins/gtk+/glade-gtk-activatable.h b/plugins/gtk+/glade-gtk-activatable.h
new file mode 100644
index 00000000..d825bc09
--- /dev/null
+++ b/plugins/gtk+/glade-gtk-activatable.h
@@ -0,0 +1,43 @@
+/*
+ * glade-gtk-activatable.h
+ *
+ * Copyright (C) 2010 Tristan Van Berkom.
+ *
+ * Author:
+ * Tristan Van Berkom <tvb@gnome.org>
+ *
+ * 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.
+ *
+ */
+
+#ifndef __GLADE_GTK_ACTIVATABLE_H__
+#define __GLADE_GTK_ACTIVATABLE_H__
+
+#include <gladeui/glade.h>
+
+G_BEGIN_DECLS
+
+void
+glade_gtk_activatable_parse_finished (GladeProject *project,
+ GladeWidget *widget);
+
+void
+glade_gtk_activatable_evaluate_property_sensitivity (GObject *object,
+ const gchar *id,
+ const GValue *value);
+
+G_END_DECLS
+
+#endif __GLADE_GTK_ACTIVATABLE_H__
diff --git a/plugins/gtk+/glade-gtk.h b/plugins/gtk+/glade-gtk.h
new file mode 100644
index 00000000..d37496a8
--- /dev/null
+++ b/plugins/gtk+/glade-gtk.h
@@ -0,0 +1,44 @@
+/*
+ * glade-gtk.h
+ *
+ * Copyright (C) 2004 - 2011 Tristan Van Berkom.
+ *
+ * Author:
+ * Tristan Van Berkom <tvb@gnome.org>
+ *
+ * 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.
+ *
+ */
+
+#ifndef __GLADE_GTK_H__
+#define __GLADE_GTK_H__
+
+G_BEGIN_DECLS
+
+/* --------------------------------- Constants ------------------------------ */
+
+#define FIXED_DEFAULT_CHILD_WIDTH 100
+#define FIXED_DEFAULT_CHILD_HEIGHT 60
+
+#define MNEMONIC_INSENSITIVE_MSG _("This property does not apply unless Use Underline is set.")
+#define NOT_SELECTED_MSG _("Property not selected")
+#define RESPID_INSENSITIVE_MSG _("This property is only for use in dialog action buttons")
+#define ACTION_APPEARANCE_MSG _("This property is set to be controlled by an Action")
+
+#define ONLY_THIS_GOES_IN_THAT_MSG _("Only objects of type %s can be added to objects of type %s.")
+
+G_END_DECLS
+
+#endif __GLADE_GTK_H__