[virt-tools-list] [PATCH] virt-viewer: set transient parent in connection's error dialog

Fabiano Fidêncio fabiano at fidencio.org
Thu Jan 8 15:14:25 UTC 2015


On Thu, Jan 8, 2015 at 3:46 PM, Pavel Grunt <pgrunt at redhat.com> wrote:
> Yes, I forgot this one.
>
> Ack
>
> Pavel
>
>>
>> Commit c3d24f8b sets transient parent for the most part of the
>> GtkDialogs, but seems like this one was forgotten.
>> ---
>>  src/virt-viewer.c | 4 +++-
>>  1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/src/virt-viewer.c b/src/virt-viewer.c
>> index 51e91c6..765b606 100644
>> --- a/src/virt-viewer.c
>> +++ b/src/virt-viewer.c
>> @@ -858,7 +858,9 @@ virt_viewer_connect(VirtViewerApp *app)
>>
>>      if (!virt_viewer_app_initial_connect(app, &error)) {
>>          if (error != NULL) {
>> -            GtkWidget *dialog = gtk_message_dialog_new(NULL,
>> +            VirtViewerWindow *main_window =
>> virt_viewer_app_get_main_window(app);
>> +
>> +            GtkWidget *dialog =
>> gtk_message_dialog_new(virt_viewer_window_get_window(main_window),
>>                                                         GTK_DIALOG_DESTROY_WITH_PARENT,
>>                                                         GTK_MESSAGE_ERROR,
>>                                                         GTK_BUTTONS_CLOSE,
>> --
>> 2.1.0
>>
>> _______________________________________________
>> virt-tools-list mailing list
>> virt-tools-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/virt-tools-list
>>
>
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list


Pushed as a51c70771a4a01fcfd657701ab5e0b1f88cb5e0e

Best Regards,
-- 
Fabiano Fidêncio




More information about the virt-tools-list mailing list