[Xfce4-commits] <midori:master> Drop scarcely useful katze_object_get_float
Christian Dywan
noreply at xfce.org
Thu Mar 7 20:16:02 CET 2013
Updating branch refs/heads/master
to 601147e625fffce70b304590b1247e7088ce124c (commit)
from dc7a18d77827abbb43e04379e9250d352896226d (commit)
commit 601147e625fffce70b304590b1247e7088ce124c
Author: Christian Dywan <christian at twotoasts.de>
Date: Thu Mar 7 20:14:06 2013 +0100
Drop scarcely useful katze_object_get_float
katze/katze-utils.c | 25 ++-----------------------
katze/katze-utils.h | 16 ----------------
2 files changed, 2 insertions(+), 39 deletions(-)
diff --git a/katze/katze-utils.c b/katze/katze-utils.c
index 41b8d1f..fd1aa0a 100644
--- a/katze/katze-utils.c
+++ b/katze/katze-utils.c
@@ -667,7 +667,8 @@ katze_property_proxy (gpointer object,
}
else if (type == G_TYPE_PARAM_FLOAT)
{
- gfloat value = katze_object_get_float (object, property);
+ gfloat value;
+ g_object_get (object, property, &value, NULL);
widget = gtk_spin_button_new_with_range (
G_PARAM_SPEC_FLOAT (pspec)->minimum,
@@ -1091,28 +1092,6 @@ katze_object_get_int (gpointer object,
}
/**
- * katze_object_get_float:
- * @object: a #GObject
- * @property: the name of the property to get
- *
- * Retrieve the float value of the specified property.
- *
- * Return value: a float
- **/
-gfloat
-katze_object_get_float (gpointer object,
- const gchar* property)
-{
- gfloat value = -1.0f;
-
- g_return_val_if_fail (G_IS_OBJECT (object), -1.0f);
- /* FIXME: Check value type */
-
- g_object_get (object, property, &value, NULL);
- return value;
-}
-
-/**
* katze_object_get_enum:
* @object: a #GObject
* @property: the name of the property to get
diff --git a/katze/katze-utils.h b/katze/katze-utils.h
index def21ca..90a55f9 100644
--- a/katze/katze-utils.h
+++ b/katze/katze-utils.h
@@ -20,15 +20,6 @@
G_BEGIN_DECLS
/**
- * KATZE_OBJECT_NAME:
- * @object: an object
- *
- * Return the name of an object's class structure's type.
- **/
-#define KATZE_OBJECT_NAME(object) \
- G_OBJECT_CLASS_NAME (G_OBJECT_GET_CLASS (object))
-
-/**
* katze_assign:
* @lvalue: a pointer
* @rvalue: the new value
@@ -116,10 +107,6 @@ gint
katze_object_get_int (gpointer object,
const gchar* property);
-gfloat
-katze_object_get_float (gpointer object,
- const gchar* property);
-
gint
katze_object_get_enum (gpointer object,
const gchar* property);
@@ -136,9 +123,6 @@ int
katze_mkdir_with_parents (const gchar* pathname,
int mode);
-gboolean
-katze_widget_has_touchscreen_mode (GtkWidget* widget);
-
GtkWidget*
katze_uri_entry_new (GtkWidget* other_widget);
More information about the Xfce4-commits
mailing list