Skip to content

gtk4: port inlinealert.py to GTK4 API - #1086

Open
BALLOON005 wants to merge 21 commits into
sugarlabs:gtk4-portfrom
BALLOON005:gtk4-port-inlinealert
Open

gtk4: port inlinealert.py to GTK4 API#1086
BALLOON005 wants to merge 21 commits into
sugarlabs:gtk4-portfrom
BALLOON005:gtk4-port-inlinealert

Conversation

@BALLOON005

Copy link
Copy Markdown
Contributor

Part of the ongoing GTK4 migration effort (#1019)

Changes made to src/jarabe/controlpanel/inlinealert.py:

  1. Replaced Gtk.HBox with Gtk.Box (HBox removed in GTK4)
  2. Replaced pack_start() calls with append()
  3. Replaced set_alignment() with set_halign(Gtk.Align.START)
  4. Removed modify_fg() and modify_bg() calls (removed in GTK4)
  5. Removed Gtk.StateType.NORMAL references (removed in GTK4)

City-busz and others added 21 commits October 12, 2025 17:31
ConfigParser's readfp() has been deprecated since Python 3.2 and removed
in Python 3.12.
Signed-off-by: Chihurumnaya Ibiam <ibiam@sugarlabs.org>
Lack of any link to how to contribute to the repository has led to
people (a) not knowing how, and (b) suggesting one be added.

Add a link to the common documentation.

Thanks to Kartik Tripathi for the idea.

Fixes sugarlabs#1023
When the sugar-datastore process is terminated or crashes, Sugar keeps a
stale D-Bus proxy. Subsequent datastore operations fail with
org.freedesktop.DBus.Error.ServiceUnknown and the session does not recover.

Datastore D-Bus calls are now wrapped to catch ServiceUnknown, NoReply,
and Disconnected errors. On failure the cached proxy is cleared, a new
D-Bus interface is created, and the operation is retried once.

Recovery is silent and limited to a single retry to avoid activation
loops and unintended behavior changes.

Fixes sugarlabs#870
Adds a single issue report template based on maintainer guidance
Signed-off-by: Chihurumnaya Ibiam <ibiam@sugarlabs.org>
The "Past Year" date filter in _get_date_range() used timedelta(356) - a digit transposition of 365. This excluded Journal entries from 357-365 days ago.

Use 365 instead.
Last entry in the 2.4 GHz frequency-to-channel table had the key and value swapped: 14: 2484 instead of 2484: 14. Every other entry maps frequency: channel.  frequency_to_channel(2484) returned 0 instead of 14.
Add installation instructions for Ubuntu 24.04 LTS.

Test on Ubuntu 24.04 LTS:
- Sugar starts normally
- Activities launch
- Activity Library downloads work
- Journal saves and reopens entries correctly

No regressions observed compared to 22.04.

Fixes sugarlabs#1012
Avoid crash when provider XML contains a country code
not present in iso3166.tab. Log a warning and return
the code instead of raising KeyError. Update test to
reflect fallback behavior.
Initialize IntroWindow with screen dimensions instead of relying on
maximize(), which depends on the window manager being ready.

This avoids a race condition where the window briefly appears smaller
before being maximized when metacity startup is delayed.

Fixes: sugarlabs#1052
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants