[goffice] Compilation: anticipate g_object_ref changes



commit dbaca7f18b3ee49bc915f5c196e77b3eabb1bf3a
Author: Morten Welinder <terra gnome org>
Date:   Mon Dec 11 12:48:14 2017 -0500

    Compilation: anticipate g_object_ref changes
    
    Going forward, g_object_ref will have a properly typed result.

 goffice/gtk/go-combo-box.c |    2 +-
 goffice/utils/go-emf.c     |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/goffice/gtk/go-combo-box.c b/goffice/gtk/go-combo-box.c
index f370111..e37b653 100644
--- a/goffice/gtk/go-combo-box.c
+++ b/goffice/gtk/go-combo-box.c
@@ -235,7 +235,7 @@ go_combo_box_popup_hide_unconditional (GOComboBox *combo_box)
        gdk_device_ungrab (gtk_get_current_event_device (),
                           GDK_CURRENT_TIME);
 
-       pdc = g_object_ref (combo_box->priv->popdown_container);
+       pdc = (GObject *)g_object_ref (combo_box->priv->popdown_container);
        g_signal_emit (combo_box,
                       go_combo_box_signals [POP_DOWN_DONE], 0,
                       pdc, &popup_info_destroyed);
diff --git a/goffice/utils/go-emf.c b/goffice/utils/go-emf.c
index 6b7f15b..9790466 100644
--- a/goffice/utils/go-emf.c
+++ b/goffice/utils/go-emf.c
@@ -203,10 +203,11 @@ GSF_CLASS (GOEmf, go_emf,
  * Returns: (transfer full): the canvas displaying the EMF image, adding a
  * reference to it.
  **/
-GObject *go_emf_get_canvas (GOEmf *emf)
+GObject *
+go_emf_get_canvas (GOEmf *emf)
 {
        g_return_val_if_fail (GO_IS_EMF (emf), NULL);
-       return g_object_ref (emf->canvas);
+       return (GObject *)g_object_ref (emf->canvas);
 }
 
 GOImage *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]