summaryrefslogtreecommitdiff
path: root/thunarx
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2009-08-23 22:10:26 +0200
committerNick Schermer <nick@xfce.org>2009-08-23 22:10:26 +0200
commitd19261c304f66af4318e8a533715b7597fbf3bb7 (patch)
tree37ee25ac7e6773fe31d1f4988dc44d1144d4500a /thunarx
parent1e2096fcb6bacaadc134d1d99d085532c3df819e (diff)
downloadthunar-d19261c304f66af4318e8a533715b7597fbf3bb7.tar.gz
Drop some deprecated API.
Most of them are the new tooltip api in plugins and GtkEntry -> GtkEditable functions.
Diffstat (limited to 'thunarx')
-rw-r--r--thunarx/thunarx-property-page-provider.c3
-rw-r--r--thunarx/thunarx-property-page.c5
-rw-r--r--thunarx/thunarx-renamer-provider.c5
3 files changed, 3 insertions, 10 deletions
diff --git a/thunarx/thunarx-property-page-provider.c b/thunarx/thunarx-property-page-provider.c
index 2a97dd41..b56b7e8f 100644
--- a/thunarx/thunarx-property-page-provider.c
+++ b/thunarx/thunarx-property-page-provider.c
@@ -94,8 +94,7 @@ thunarx_property_page_provider_get_type (void)
* The caller is responsible to free the returned list of pages using
* something like this when no longer needed:
* <informalexample><programlisting>
- * g_list_foreach (list, (GFunc) g_object_ref, NULL);
- * g_list_foreach (list, (GFunc) gtk_object_sink, NULL);
+ * g_list_foreach (list, (GFunc) g_object_ref_sink, NULL);
* g_list_foreach (list, (GFunc) g_object_unref, NULL);
* g_list_free (list);
* </programlisting></informalexample>
diff --git a/thunarx/thunarx-property-page.c b/thunarx/thunarx-property-page.c
index f521a223..7d59299e 100644
--- a/thunarx/thunarx-property-page.c
+++ b/thunarx/thunarx-property-page.c
@@ -382,10 +382,7 @@ thunarx_property_page_set_label_widget (ThunarxPropertyPage *property_page,
/* connect to the new label widget */
if (G_LIKELY (label_widget != NULL))
- {
- g_object_ref (G_OBJECT (label_widget));
- gtk_object_sink (GTK_OBJECT (label_widget));
- }
+ g_object_ref_sink (G_OBJECT (label_widget));
/* notify listeners */
g_object_freeze_notify (G_OBJECT (property_page));
diff --git a/thunarx/thunarx-renamer-provider.c b/thunarx/thunarx-renamer-provider.c
index ebcf2e5f..78c10194 100644
--- a/thunarx/thunarx-renamer-provider.c
+++ b/thunarx/thunarx-renamer-provider.c
@@ -99,10 +99,7 @@ thunarx_renamer_provider_get_renamers (ThunarxRenamerProvider *provider)
/* ref&sink all returned renamers */
for (lp = renamers; lp != NULL; lp = lp->next)
- {
- g_object_ref (G_OBJECT (lp->data));
- gtk_object_sink (GTK_OBJECT (lp->data));
- }
+ g_object_ref_sink (G_OBJECT (lp->data));
/* take a reference for all renamers on the provider */
thunarx_object_list_take_reference (renamers, provider);