File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,11 +62,25 @@ public class Network.WifiInterface : Network.WidgetNMInterface {
6262 }
6363
6464 construct {
65- var no_aps = new PlaceholderLabel (_(" No Access Points Available" ));
65+ // FIXME: use Granite.Placeholder in GTK4
66+ var no_aps = new Gtk .Label (_(" No Access Points Available" )) {
67+ justify = CENTER ,
68+ max_width_chars = 30 ,
69+ use_markup = true ,
70+ visible = true ,
71+ wrap_mode = WORD_CHAR ,
72+ wrap = true
73+ };
6674
67- var scanning = new PlaceholderLabel (_(" Scanning for Access Points…" )) {
75+ var scanning = new Gtk . Label (_(" Scanning for Access Points…" )) {
6876 halign = START ,
69- hexpand = true
77+ hexpand = true ,
78+ justify = CENTER ,
79+ max_width_chars = 30 ,
80+ use_markup = true ,
81+ visible = true ,
82+ wrap_mode = WORD_CHAR ,
83+ wrap = true
7084 };
7185
7286 var spinner = new Gtk .Spinner ();
@@ -415,21 +429,6 @@ public class Network.WifiInterface : Network.WidgetNMInterface {
415429 }
416430 }
417431
418- private class PlaceholderLabel : Gtk .Label {
419- public PlaceholderLabel (string label ) {
420- Object (label: label);
421- }
422-
423- construct {
424- justify = Gtk . Justification . CENTER ;
425- max_width_chars = 30 ;
426- use_markup = true ;
427- visible = true ;
428- wrap_mode = Pango . WrapMode . WORD_CHAR ;
429- wrap = true ;
430- }
431- }
432-
433432 private void access_point_added_cb (Object ap_ ) {
434433 NM . AccessPoint ap = (NM . AccessPoint )ap_;
435434 unowned GLib . Bytes ap_ssid = ap. ssid;
You can’t perform that action at this time.
0 commit comments