From 5b389a924980436106c289eea573e1fee4ead299 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Mon, 28 Mar 2011 11:25:56 -0300 Subject: plugins/gtk+/glade-gtk.h: moved constant macros to common header plugins/gtk+/glade-gtk-activatable.h: added GtkActivatable declaration --- plugins/gtk+/glade-gtk-activatable.h | 43 +++++++++++++++++++++++++++++++++++ plugins/gtk+/glade-gtk.h | 44 ++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 plugins/gtk+/glade-gtk-activatable.h create mode 100644 plugins/gtk+/glade-gtk.h 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 + * + * 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 + +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 + * + * 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__ -- cgit v1.2.1