Rename gdk_window_set_has_native to gdk_window_ensure_native
This also removes the (unimplemented) possibility to change a window to non-native. This seems generally not very useful, and there are some problems with it, for instance if two "users" need a window to be native and then one of the "users" doesn't need it anymore it can't change it back, because it is unaware of the other reason the window is native.
This commit is contained in:
@ -368,7 +368,7 @@ parse_window (GdkWindow *parent, char **lines)
|
||||
color.blue = b;
|
||||
window = create_window (parent, x, y, w, h, &color);
|
||||
if (native)
|
||||
gdk_window_set_has_native (window, TRUE);
|
||||
gdk_window_ensure_native (window);
|
||||
|
||||
for (i = 0; i < n_children; i++)
|
||||
lines = parse_window (window, lines);
|
||||
@ -692,7 +692,7 @@ native_window_clicked (GtkWidget *button,
|
||||
{
|
||||
window = l->data;
|
||||
|
||||
gdk_window_set_has_native (window, TRUE);
|
||||
gdk_window_ensure_native (window, TRUE);
|
||||
}
|
||||
|
||||
g_list_free (selected);
|
||||
|
||||
Reference in New Issue
Block a user