Skip to content

Commit bbd0783

Browse files
authored
Apply transient for invalid image dialog
1 parent a820dbf commit bbd0783

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

faugus-launcher.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -4107,7 +4107,7 @@ def is_valid_image(file_path):
41074107
if response == Gtk.ResponseType.OK:
41084108
file_path = filechooser.get_filename()
41094109
if not file_path or not is_valid_image(file_path):
4110-
dialog_image = Gtk.Dialog(title="Faugus Launcher", modal=True)
4110+
dialog_image = Gtk.Dialog(title="Faugus Launcher", transient_for=dialog, modal=True)
41114111
dialog_image.set_resizable(False)
41124112
dialog_image.set_icon_from_file(faugus_png)
41134113
subprocess.Popen(["canberra-gtk-play", "-i", "dialog-error"])
@@ -4828,7 +4828,7 @@ def is_valid_image(file_path):
48284828
if response == Gtk.ResponseType.OK:
48294829
file_path = filechooser.get_filename()
48304830
if not file_path or not is_valid_image(file_path):
4831-
dialog_image = Gtk.Dialog(title="Faugus Launcher", modal=True)
4831+
dialog_image = Gtk.Dialog(title="Faugus Launcher", transient_for=dialog, modal=True)
48324832
dialog_image.set_resizable(False)
48334833
dialog_image.set_icon_from_file(faugus_png)
48344834
subprocess.Popen(["canberra-gtk-play", "-i", "dialog-error"])
@@ -5975,7 +5975,7 @@ def is_valid_image(file_path):
59755975
if response == Gtk.ResponseType.OK:
59765976
file_path = filechooser.get_filename()
59775977
if not file_path or not is_valid_image(file_path):
5978-
dialog_image = Gtk.Dialog(title="Faugus Launcher", modal=True)
5978+
dialog_image = Gtk.Dialog(title="Faugus Launcher", transient_for=dialog, modal=True)
59795979
dialog_image.set_resizable(False)
59805980
dialog_image.set_icon_from_file(faugus_png)
59815981
subprocess.Popen(["canberra-gtk-play", "-i", "dialog-error"])

0 commit comments

Comments
 (0)