diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-05-14 20:09:44 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-05-14 20:09:44 +0000 |
commit | 599806ca82b7b37b9efbbfd4f6e0643d1bbd48fa (patch) | |
tree | 478ef1dcd6e414cce87cd24a947c612c67428e85 /gtk/gtkapplication.c | |
parent | c0096114010a09687c9dc8cb79c18b3bc082d82c (diff) | |
download | gtk+-599806ca82b7b37b9efbbfd4f6e0643d1bbd48fa.tar.gz |
Try again to fix profiler setup
We were trying to store the profiler_id
in a struct that does not exist at the time.
Store it somewhere else.
Diffstat (limited to 'gtk/gtkapplication.c')
-rw-r--r-- | gtk/gtkapplication.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c index 69e8e3b85c..9b992f686d 100644 --- a/gtk/gtkapplication.c +++ b/gtk/gtkapplication.c @@ -168,6 +168,7 @@ typedef struct GtkActionMuxer *muxer; GtkBuilder *menus_builder; gchar *help_overlay_path; + guint profiler_id; } GtkApplicationPrivate; G_DEFINE_TYPE_WITH_PRIVATE (GtkApplication, gtk_application, G_TYPE_APPLICATION) @@ -689,8 +690,7 @@ gtk_application_dbus_register (GApplication *application, const char *obect_path, GError **error) { - GtkApplicationPrivate *priv = gtk_application_get_instance_private (application); - GtkApplicationImplDBus *dbus = (GtkApplicationImplDBus *) priv->impl; + GtkApplicationPrivate *priv = gtk_application_get_instance_private (GTK_APPLICATION (application)); GDBusInterfaceVTable vtable = { sysprof_profiler_method_call, NULL, @@ -710,7 +710,7 @@ gtk_application_dbus_register (GApplication *application, g_dbus_node_info_unref (info); } - dbus->profiler_id = g_dbus_connection_register_object (connection, + priv->profiler_id = g_dbus_connection_register_object (connection, "/org/gtk/Profiler", org_gnome_Sysprof3_Profiler, &vtable, @@ -726,9 +726,9 @@ gtk_application_dbus_unregister (GApplication *application, GDBusConnection *connection, const char *obect_path) { - GtkApplicationImplDBus *dbus = (GtkApplicationImplDBus *) application; + GtkApplicationPrivate *priv = gtk_application_get_instance_private (GTK_APPLICATION (application)); - g_dbus_connection_unregister_object (connection, dbus->profiler_id); + g_dbus_connection_unregister_object (connection, priv->profiler_id); } #else |