diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2007-03-17 15:02:41 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@src.gnome.org> | 2007-03-17 15:02:41 +0000 |
commit | de74fffdc73bcb6a56cabbbaf11d9659ec3d51f2 (patch) | |
tree | 22370e4377c6cd3009a4aa474d915901887980a5 /gtk/gtkrecentaction.c | |
parent | 2c1a285f1bcf11dcb853c7268dbea4136d4de0e2 (diff) | |
download | gtk+-de74fffdc73bcb6a56cabbbaf11d9659ec3d51f2.tar.gz |
Remove useless inlined function and propagate the properties to the
2007-03-17 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentaction.c (recent_chooser_set_property),
(gtk_recent_action_set_property): Remove useless inlined
function and propagate the properties to the GtkRecentChooser
objects we create, instead of all the proxies.
(set_current_filter): Remove 'inline' marker.
svn path=/trunk/; revision=17536
Diffstat (limited to 'gtk/gtkrecentaction.c')
-rw-r--r-- | gtk/gtkrecentaction.c | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/gtk/gtkrecentaction.c b/gtk/gtkrecentaction.c index c55c68ab35..2a70c4a16c 100644 --- a/gtk/gtkrecentaction.c +++ b/gtk/gtkrecentaction.c @@ -81,23 +81,6 @@ G_DEFINE_TYPE_WITH_CODE (GtkRecentAction, G_IMPLEMENT_INTERFACE (GTK_TYPE_RECENT_CHOOSER, gtk_recent_chooser_iface_init)); -static inline void -recent_chooser_set_property (GtkRecentAction *action, - const gchar *property_name, - const GValue *value) -{ - GSList *proxies, *l; - - proxies = gtk_action_get_proxies (GTK_ACTION (action)); - for (l = proxies; l != NULL; l = l->next) - { - GObject *proxy = l->data; - - g_object_set_property (proxy, property_name, value); - } - g_slist_free (proxies); -} - static gboolean gtk_recent_action_set_current_uri (GtkRecentChooser *chooser, const gchar *uri, @@ -227,7 +210,7 @@ gtk_recent_action_set_sort_func (GtkRecentChooser *chooser, } } -static inline void +static void set_current_filter (GtkRecentAction *action, GtkRecentFilter *filter) { @@ -540,6 +523,7 @@ gtk_recent_action_set_property (GObject *gobject, { GtkRecentAction *action = GTK_RECENT_ACTION (gobject); GtkRecentActionPrivate *priv = action->priv; + GSList *l; switch (prop_id) { @@ -583,7 +567,13 @@ gtk_recent_action_set_property (GObject *gobject, return; } - recent_chooser_set_property (action, pspec->name, value); + /* propagate the properties to the proxies we have created */ + for (l = priv->choosers; l != NULL; l = l->next) + { + GObject *proxy = l->data; + + g_object_set_property (proxy, pspec->name, value); + } } static void |