Bug 210276

Summary: [GTK4] Get MiniBrowser ready for GTK4
Product: WebKit Reporter: Claudio Saavedra <csaavedra>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: aperez, bugs-noreply, cgarcia
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 211171, 212740, 212817, 212898    
Bug Blocks: 210100    
Attachments:
Description Flags
Patch aperez: review+

Claudio Saavedra
Reported 2020-04-09 07:10:06 PDT
There are several widgets that are no longer available in GTK4: toolbars, tool menu items, etc. Also GtkAction is gone. The MiniBrowser UI should be rewritten to use widgets that are both available in GTK3 and GTK4.
Attachments
Patch (95.66 KB, patch)
2020-06-11 04:37 PDT, Carlos Garcia Campos
aperez: review+
Carlos Garcia Campos
Comment 1 2020-06-11 04:37:40 PDT
Adrian Perez
Comment 2 2020-06-12 01:10:38 PDT
Comment on attachment 401632 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=401632&action=review > Tools/MiniBrowser/gtk/BrowserSearchBox.c:74 > + action = g_action_map_lookup_action(G_ACTION_MAP(searchBox->actionGroup), "beginnig-word"); Typo: beginnig → beginning. I saw this in one of the dependant patches, so if you fix it on the other patch first I suppose when you rebase this one you'll get it fixed, too :) > Tools/MiniBrowser/gtk/BrowserSearchBox.c:131 > + gtk_editable_set_text(GTK_EDITABLE(searchBox->entry), ""); I was about to mention this could be in “GtkVersioning.h”, but of course we only want to use public headers in the MiniBrowser 😅️ Maybe it would be neat to have such a header for the MiniBrowser? My feeling is that it would simplify quite a lot the #if-#endif churn in many places along this patch.
Carlos Garcia Campos
Comment 3 2020-06-12 01:30:47 PDT
(In reply to Adrian Perez from comment #2) > Comment on attachment 401632 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=401632&action=review > > > Tools/MiniBrowser/gtk/BrowserSearchBox.c:74 > > + action = g_action_map_lookup_action(G_ACTION_MAP(searchBox->actionGroup), "beginnig-word"); > > Typo: beginnig → beginning. > > I saw this in one of the dependant patches, so if you fix it on the other > patch first I suppose when you rebase this one you'll get it fixed, too :) > > > Tools/MiniBrowser/gtk/BrowserSearchBox.c:131 > > + gtk_editable_set_text(GTK_EDITABLE(searchBox->entry), ""); > > I was about to mention this could be in “GtkVersioning.h”, but of > course we only want to use public headers in the MiniBrowser 😅️ > > Maybe it would be neat to have such a header for the MiniBrowser? > My feeling is that it would simplify quite a lot the #if-#endif > churn in many places along this patch. I thought about this, but MiniBrowser code doesn't change that much and I think it will be easier to remove the code when we stop supporting gtk3.
Carlos Garcia Campos
Comment 4 2020-06-12 01:42:57 PDT
Note You need to log in before you can comment on or make changes to this bug.