Mageia Bugzilla – Attachment 5202 Details for
Bug 13534
drakclock crashed (Can't locate object method "generic_exceptions_handler" via package "Glib" at Gtk3 line 295)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
workaround gtk+ firing signals too early w/o any reason
13534-fix.diff (text/plain), 773 bytes, created by
Thierry Vignaud
on 2014-06-20 09:03:18 CEST
(
hide
)
Description:
workaround gtk+ firing signals too early w/o any reason
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2014-06-20 09:03:18 CEST
Size:
773 bytes
patch
obsolete
>diff --git a/perl-install/standalone/drakclock b/perl-install/standalone/drakclock >index 7b64ed5..53d4cc3 100755 >--- a/perl-install/standalone/drakclock >+++ b/perl-install/standalone/drakclock >@@ -41,6 +41,7 @@ my $button_time = gtknew('Button', text => N("Change Time Zone")); > my @timezones = eval { timezone::getTimeZones() }; > my $err = $@; > $button_time->signal_connect(clicked => sub { >+ return if !$button_time->realized; > local $::isEmbedded = 0; # to prevent sub window embedding > if ($timezone->{timezone} = $in->ask_from_treelist(N("Timezone - DrakClock"), N("Which is your timezone?"), '/', \@timezones, $timezone->{timezone})) { > $timezone->{UTC} = $in->ask_yesorno(N("GMT - DrakClock"), N("Is your hardware clock set to GMT?"), $timezone->{UTC});
diff --git a/perl-install/standalone/drakclock b/perl-install/standalone/drakclock index 7b64ed5..53d4cc3 100755 --- a/perl-install/standalone/drakclock +++ b/perl-install/standalone/drakclock @@ -41,6 +41,7 @@ my $button_time = gtknew('Button', text => N("Change Time Zone")); my @timezones = eval { timezone::getTimeZones() }; my $err = $@; $button_time->signal_connect(clicked => sub { + return if !$button_time->realized; local $::isEmbedded = 0; # to prevent sub window embedding if ($timezone->{timezone} = $in->ask_from_treelist(N("Timezone - DrakClock"), N("Which is your timezone?"), '/', \@timezones, $timezone->{timezone})) { $timezone->{UTC} = $in->ask_yesorno(N("GMT - DrakClock"), N("Is your hardware clock set to GMT?"), $timezone->{UTC});
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 13534
:
5198
|
5199
| 5202 |
5203
|
5204