mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 05:43:28 +02:00
gdebugcontroller: Drop dup_default() method as it’s broken
If `GDebugControllerDBus` remains as the only, or default, implementation of `GDebugController`, `dup_default()` cannot work. `GDebugControllerDBus` requires a `GDBusConnection` at construction time, which the `GIOModule` construction code can’t provide it. Either we use a default D-Bus connection (but which one? and how would it be changed by the user later if it was the wrong one?), or delegate singleton handling of the `GDebugController` to the user. The latter approach seems more flexible. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #1190
This commit is contained in:
@@ -68,9 +68,6 @@ struct _GDebugControllerInterface {
|
||||
GTypeInterface g_iface;
|
||||
};
|
||||
|
||||
GLIB_AVAILABLE_IN_2_72
|
||||
GDebugController *g_debug_controller_dup_default (void);
|
||||
|
||||
GLIB_AVAILABLE_IN_2_72
|
||||
gboolean g_debug_controller_get_debug_enabled (GDebugController *self);
|
||||
GLIB_AVAILABLE_IN_2_72
|
||||
|
Reference in New Issue
Block a user