tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 89b1503f9d267d2cae972677ef13fdeb0324475c
parent 0e35e47a582b10eacf12ad77f2f694e4bf262d10
Author: Emilio Cobos Álvarez <emilio@crisal.io>
Date:   Tue,  6 Jan 2026 12:10:54 +0000

Bug 2008443 - Don't use GtkContainer for MozContainer. r=stransky

We don't add children to MozContainer so there's no reason for it.

MozContainer probably still makes sense as a name since it contains the
window contents, but happy to rename if you can come up with a better
one :)

Differential Revision: https://phabricator.services.mozilla.com/D277811

Diffstat:
Mwidget/gtk/MozContainer.cpp | 2+-
Mwidget/gtk/MozContainer.h | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/widget/gtk/MozContainer.cpp b/widget/gtk/MozContainer.cpp @@ -59,7 +59,7 @@ GType moz_container_get_type(void) { }; moz_container_type = - g_type_register_static(GTK_TYPE_CONTAINER, "MozContainer", + g_type_register_static(GTK_TYPE_WIDGET, "MozContainer", &moz_container_info, static_cast<GTypeFlags>(0)); } diff --git a/widget/gtk/MozContainer.h b/widget/gtk/MozContainer.h @@ -46,7 +46,7 @@ typedef struct _MozContainer MozContainer; typedef struct _MozContainerClass MozContainerClass; struct _MozContainer { - GtkContainer container; + GtkWidget widget; gboolean destroyed; #ifdef MOZ_WAYLAND MozContainerWayland* wl; @@ -54,7 +54,7 @@ struct _MozContainer { }; struct _MozContainerClass { - GtkContainerClass parent_class; + GtkWidgetClass parent_class; }; namespace mozilla::widget {