forked from AuroraMiddleware/gtk
window: Remove some dead code
We are not attaching windows anymore.
This commit is contained in:
parent
3d6fdffb7c
commit
c4514e7eb4
@ -178,7 +178,6 @@ typedef struct
|
|||||||
{
|
{
|
||||||
GtkWidget *child;
|
GtkWidget *child;
|
||||||
|
|
||||||
GtkWidget *attach_widget;
|
|
||||||
GtkWidget *default_widget;
|
GtkWidget *default_widget;
|
||||||
GtkWidget *focus_widget;
|
GtkWidget *focus_widget;
|
||||||
GtkWindow *transient_parent;
|
GtkWindow *transient_parent;
|
||||||
@ -2622,15 +2621,6 @@ gtk_window_list_toplevels (void)
|
|||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
remove_attach_widget (GtkWindow *window)
|
|
||||||
{
|
|
||||||
GtkWindowPrivate *priv = gtk_window_get_instance_private (window);
|
|
||||||
|
|
||||||
if (priv->attach_widget)
|
|
||||||
priv->attach_widget = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gtk_window_dispose (GObject *object)
|
gtk_window_dispose (GObject *object)
|
||||||
{
|
{
|
||||||
@ -2655,8 +2645,6 @@ gtk_window_dispose (GObject *object)
|
|||||||
if (priv->transient_parent)
|
if (priv->transient_parent)
|
||||||
gtk_window_set_transient_for (window, NULL);
|
gtk_window_set_transient_for (window, NULL);
|
||||||
|
|
||||||
remove_attach_widget (window);
|
|
||||||
|
|
||||||
if (priv->has_user_ref_count)
|
if (priv->has_user_ref_count)
|
||||||
{
|
{
|
||||||
priv->has_user_ref_count = FALSE;
|
priv->has_user_ref_count = FALSE;
|
||||||
@ -2672,7 +2660,6 @@ gtk_window_dispose (GObject *object)
|
|||||||
g_clear_pointer (&priv->layout, gdk_toplevel_layout_unref);
|
g_clear_pointer (&priv->layout, gdk_toplevel_layout_unref);
|
||||||
gtk_window_set_focus (window, NULL);
|
gtk_window_set_focus (window, NULL);
|
||||||
gtk_window_set_default_widget (window, NULL);
|
gtk_window_set_default_widget (window, NULL);
|
||||||
remove_attach_widget (window);
|
|
||||||
|
|
||||||
g_clear_pointer (&priv->child, gtk_widget_unparent);
|
g_clear_pointer (&priv->child, gtk_widget_unparent);
|
||||||
unset_titlebar (window);
|
unset_titlebar (window);
|
||||||
|
Loading…
Reference in New Issue
Block a user