forked from AuroraMiddleware/gtk
Don't deprecate gtk_widget_show_all()
After discussions on IRC, the conclusion was reached that deprecations
only make sense if an action can be taken to not use the deprecated code
that makes the code more current and simplifies a later port to a newer
GTK version.
In this particular case, the suitable action would be adding
gtk_widget_show() calls whenever a widget is created, so that a call to
show_all() is not necessary.
However, in GTK4 these calls would not be necessary and end up just
bloating the codebase unnecessarily.
So it was decided the better solution would be to not deprecate the API
and instead leave this work to be done during potential GTK4 ports of
applications.
This reverts commit 4d71d2303d
.
Fixes !1282
This commit is contained in:
parent
2b9f5e9e32
commit
da8994f941
@ -1260,7 +1260,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
P_("No show all"),
|
||||
P_("Whether gtk_widget_show_all() should not affect this widget"),
|
||||
FALSE,
|
||||
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY|G_PARAM_DEPRECATED);
|
||||
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
|
||||
|
||||
/**
|
||||
* GtkWidget:has-tooltip:
|
||||
|
@ -628,12 +628,12 @@ GDK_AVAILABLE_IN_ALL
|
||||
void gtk_widget_hide (GtkWidget *widget);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_widget_show_now (GtkWidget *widget);
|
||||
GDK_DEPRECATED_IN_3_24
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_widget_show_all (GtkWidget *widget);
|
||||
GDK_DEPRECATED_IN_3_24
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_widget_set_no_show_all (GtkWidget *widget,
|
||||
gboolean no_show_all);
|
||||
GDK_DEPRECATED_IN_3_24
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gboolean gtk_widget_get_no_show_all (GtkWidget *widget);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_widget_map (GtkWidget *widget);
|
||||
|
Loading…
Reference in New Issue
Block a user