diff --git a/blueman/plugins/manager/Info.py b/blueman/plugins/manager/Info.py index f0e31d56e..58aaae164 100644 --- a/blueman/plugins/manager/Info.py +++ b/blueman/plugins/manager/Info.py @@ -53,9 +53,10 @@ def on_accel_activated(_group: Gtk.AccelGroup, _dialog: GObject, key: int, _modi return False clipboard = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD) - dialog = Gtk.Dialog(icon_name="blueman", title="blueman") - dialog.set_transient_for(parent) - dialog_content_area = dialog.get_content_area() + dialog = Gtk.Window(icon_name="blueman", title="blueman", transient_for=parent) + + dialog_content_area = Gtk.Box(orientation=Gtk.Orientation.VERTICAL) + dialog.add(dialog_content_area) label = Gtk.Label() label.set_markup(_("Select row(s) and use Control + C to copy")) @@ -112,8 +113,7 @@ def on_accel_activated(_group: Gtk.AccelGroup, _dialog: GObject, key: int, _modi logging.info(f"Could not add property {name}") pass - dialog.run() - dialog.destroy() + dialog.show_all() class Info(ManagerPlugin, MenuItemsProvider):