Commit a4358b60 authored by Tristan Van Berkom's avatar Tristan Van Berkom

Removed unused prototypes


	* gladeui/glade-utils.h, gladeui/glade-builtins.h: Removed unused prototypes

	* gladeui/glade-editor.c: Added safety check.

	* gladeui/glade-property.c: Dont load virtual properties.

	* gladeui/glade-property-class.c: Fixed bug where G_PARAM_SPEC_BOXED was
	  used to check if the value held a boxed type.


svn path=/trunk/; revision=1810
parent 0e3c444b
2008-05-01 Tristan Van Berkom <tvb@gnome.org>
* plugins/gtk+/glade-keys.c: Removed.
* plugins/gtk+/Makefile.am, plugins/gtk+/glade-keysyms.c: Removed generated keysyms file.
* plugins/gtk+/glade-accels.c: Removed old modifier and handbuilt keycode
menus and obnoxious comboboxrenderers in favour of one simple accelrenderer.
* gladeui/glade-utils.h, gladeui/glade-builtins.h: Removed unused prototypes
* gladeui/glade-editor.c: Added safety check.
* gladeui/glade-property.c: Dont load virtual properties.
* gladeui/glade-property-class.c: Fixed bug where G_PARAM_SPEC_BOXED was
used to check if the value held a boxed type.
2008-04-17 Juan Pablo Ugarte <juanpablougarte@gmail.com>
* gladeui/glade-property-class.[ch]: added glade_property_class_compare()
......
......@@ -35,10 +35,6 @@ GType glade_glist_get_type (void) G_GNUC_CONST;
GType glade_param_objects_get_type (void) G_GNUC_CONST;
GType glade_item_appearance_get_type (void) G_GNUC_CONST;
guint glade_builtin_key_from_string (const gchar *string);
const gchar *glade_builtin_string_from_key (guint key);
GParamSpec *glade_param_spec_objects (const gchar *name,
const gchar *nick,
const gchar *blurb,
......
......@@ -511,9 +511,14 @@ glade_editor_table_append_item (GladeEditorTable *table,
{
GladeEditorProperty *property;
property = glade_widget_adaptor_create_eprop
(GLADE_WIDGET_ADAPTOR (klass->handle),
klass, from_query_dialog == FALSE);
if (!(property = glade_widget_adaptor_create_eprop
(GLADE_WIDGET_ADAPTOR (klass->handle),
klass, from_query_dialog == FALSE)))
{
g_critical ("Unable to create editor for property '%s' of class '%s'",
klass->id, GLADE_WIDGET_ADAPTOR (klass->handle)->name);
return NULL;
}
gtk_widget_show (GTK_WIDGET (property));
gtk_widget_show_all (property->item_label);
......
......@@ -1600,12 +1600,12 @@ glade_property_class_compare (GladePropertyClass *klass,
g_return_val_if_fail (GLADE_IS_PROPERTY_CLASS (klass), -1);
/* GLib does not know how to compare a boxed real value */
if (G_PARAM_SPEC_BOXED (klass->pspec))
if (G_VALUE_HOLDS_BOXED (value1))
{
gchar *val1, *val2;
val1 = glade_property_class_make_string_from_gvalue (klass, value1),
val2 = glade_property_class_make_string_from_gvalue (klass, value2);
val1 = glade_widget_adaptor_string_from_value (klass->handle, klass, value1);
val2 = glade_widget_adaptor_string_from_value (klass->handle, klass, value2);
if (val1 && val2)
retval = strcmp (val1, val2);
......
......@@ -380,6 +380,7 @@ glade_property_load_impl (GladeProperty *property)
GObjectClass *oclass;
if (property->widget == NULL ||
property->klass->virt ||
property->klass->packing ||
property->klass->ignore ||
!(property->klass->pspec->flags & G_PARAM_READABLE))
......
......@@ -21,8 +21,6 @@ typedef enum
GLADE_UI_YES_OR_NO
} GladeUIMessageType;
void glade_util_widget_set_tooltip (GtkWidget *widget, const gchar *str);
GType glade_util_get_type_from_name (const gchar *name, gboolean have_func);
GParamSpec *glade_utils_get_pspec_from_funcname (const gchar *funcname);
......
......@@ -23,12 +23,12 @@ libgladegtk_la_CFLAGS = \
$(PLUGINS_WARN_CFLAGS) \
$(AM_CFLAGS)
libgladegtk_la_SOURCES = glade-gtk.c glade-accels.c glade-keysyms.c fixed-bg.xpm
libgladegtk_la_SOURCES = glade-gtk.c glade-accels.c glade-attributes.c fixed-bg.xpm
libgladegtk_la_LDFLAGS = -module -avoid-version $(AM_LDFLAGS)
libgladegtk_la_LIBADD = $(libgladeui) $(GTK_LIBS)
libgladegtkincludedir= $(includedir)/libgladeui-1.0/gladeui
libgladegtkinclude_HEADERS = glade-gtk.h glade-accels.h
libgladegtkinclude_HEADERS = glade-gtk.h glade-accels.h glade-attributes.h
if PLATFORM_WIN32
libgladegtk_la_LDFLAGS += -no-undefined
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment