diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-09-12 16:14:53 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-09-12 16:14:53 +0200 |
commit | 8d4d0a2e083e42a1dc1b30ef4f6a4d4b9dc3288f (patch) | |
tree | 8a340c05e724f7587f81588bec4bea56688fe677 | |
parent | a756a164501a20d17b676a7e87209f780a7d01b2 (diff) | |
download | userdrake-8d4d0a2e083e42a1dc1b30ef4f6a4d4b9dc3288f.tar userdrake-8d4d0a2e083e42a1dc1b30ef4f6a4d4b9dc3288f.tar.gz userdrake-8d4d0a2e083e42a1dc1b30ef4f6a4d4b9dc3288f.tar.bz2 userdrake-8d4d0a2e083e42a1dc1b30ef4f6a4d4b9dc3288f.tar.xz userdrake-8d4d0a2e083e42a1dc1b30ef4f6a4d4b9dc3288f.zip |
fix minimal [GU]ID (mga#16888)
-rw-r--r-- | NEWS | 2 | ||||
-rwxr-xr-x | userdrake | 6 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,5 @@ +- fix minimal [GU]ID (mga#16888) + Version 2.12 - 27 August 2016 - fix gtk+3 warning @@ -53,6 +53,8 @@ my $in = interactive->vnew('su'); my $us = {}; $us->{VERSION} = '1.13.3'; +my $minimum_id = 1000; + my $window_splash = Gtk3::Window->new('popup'); $window_splash->signal_connect(delete_event => \&QuitGlobal); $window_splash->set_title(N("Userdrake") . $us->{VERSION}); @@ -521,7 +523,7 @@ sub AddUser() { $fullname or $us->{o}{fullname}->set_text($us->{o}{login}->get_text); 0; # Gdk expect focus event handlers to return false }); - $us->{o}{uid} = Gtk3::SpinButton->new(Gtk3::Adjustment->new(500, 1, 65000, 1, 10, 10), 1, 0); + $us->{o}{uid} = Gtk3::SpinButton->new(Gtk3::Adjustment->new($minimum_id, 1, 65000, 1, 10, 10), 1, 0); $h->pack_end($us->{o}{uid}, 0, 0, 4); $h->pack_end(Gtk3::Label->new(N("UID: ")), 0, 0, 4); GrayBox($us->{o}{userid}, $h, 0); @@ -615,7 +617,7 @@ sub AddGroup() { !$error and $w->destroy; $error = 0 }); } ([ N("Cancel"), 1 ], [ N("Ok"), 0 ]) ); - $us->{o}{gid} = Gtk3::SpinButton->new(Gtk3::Adjustment->new(500, 1, 65000, 1, 10, 10), 1, 0); + $us->{o}{gid} = Gtk3::SpinButton->new(Gtk3::Adjustment->new($minimum_id, 1, 65000, 1, 10, 10), 1, 0); $h->pack_end($us->{o}{gid}, 0, 0, 4); $h->pack_end(Gtk3::Label->new(N("GID: ")), 0, 0, 4); $us->{o}{groupid}->signal_connect('clicked' => sub { $mode = !$mode; $h->set_sensitive($mode) }); |