[totem] properties: Make _view_set_location() private
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] properties: Make _view_set_location() private
- Date: Thu, 14 Mar 2013 17:39:41 +0000 (UTC)
commit 4ef1111df86f851bfb2be4c440f9e08de7efa64e
Author: Bastien Nocera <hadess hadess net>
Date: Thu Mar 14 16:33:45 2013 +0100
properties: Make _view_set_location() private
As it's only used internally.
src/totem-properties-view.c | 27 +++++++++++++--------------
src/totem-properties-view.h | 2 --
2 files changed, 13 insertions(+), 16 deletions(-)
---
diff --git a/src/totem-properties-view.c b/src/totem-properties-view.c
index 86a22f1..5a24dcd 100644
--- a/src/totem-properties-view.c
+++ b/src/totem-properties-view.c
@@ -344,20 +344,7 @@ totem_properties_view_finalize (GObject *object)
G_OBJECT_CLASS (parent_class)->finalize (object);
}
-GtkWidget *
-totem_properties_view_new (const char *location, GtkWidget *label)
-{
- TotemPropertiesView *self;
-
- self = g_object_new (TOTEM_TYPE_PROPERTIES_VIEW, NULL);
- g_object_ref (label);
- self->priv->label = label;
- totem_properties_view_set_location (self, location);
-
- return GTK_WIDGET (self);
-}
-
-void
+static void
totem_properties_view_set_location (TotemPropertiesView *props,
const char *location)
{
@@ -378,3 +365,15 @@ totem_properties_view_set_location (TotemPropertiesView *props,
}
}
+GtkWidget *
+totem_properties_view_new (const char *location, GtkWidget *label)
+{
+ TotemPropertiesView *self;
+
+ self = g_object_new (TOTEM_TYPE_PROPERTIES_VIEW, NULL);
+ g_object_ref (label);
+ self->priv->label = label;
+ totem_properties_view_set_location (self, location);
+
+ return GTK_WIDGET (self);
+}
diff --git a/src/totem-properties-view.h b/src/totem-properties-view.h
index 7f75bbb..6b0a9f2 100644
--- a/src/totem-properties-view.h
+++ b/src/totem-properties-view.h
@@ -53,7 +53,5 @@ void totem_properties_view_register_type (GTypeModule *module);
GtkWidget *totem_properties_view_new (const char *location,
GtkWidget *label);
-void totem_properties_view_set_location (TotemPropertiesView *view,
- const char *location);
#endif /* TOTEM_PROPERTIES_VIEW_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]