GTK3: gtk_vbox_new() is deprecated

Relevant Coccinelle patch (5 unhandled lines were fixed manually):
@@
@@
-gtk_vbox_new(TRUE
+gtk_box_new(GTK_ORIENTATION_VERTICAL
, ...)

@@
@@
-gtk_vbox_new(FALSE
+gtk_box_new(GTK_ORIENTATION_VERTICAL
, ...)

@@
expression E;
@@
-gtk_vbox_new(E, TRUE)
+gtk_box_new(GTK_ORIENTATION_VERTICAL, E)

@@
expression E;
@@
-gtk_vbox_new(E, FALSE)
+gtk_box_new(GTK_ORIENTATION_VERTICAL, E)
GTK3: gtk_hbox_new() is deprecated

Relevant Coccinelle patch (5 unhandled lines were fixed manually):
@@
@@
-gtk_hbox_new(TRUE
+gtk_box_new(GTK_ORIENTATION_HORIZONTAL
, ...)

@@
@@
-gtk_hbox_new(FALSE
+gtk_box_new(GTK_ORIENTATION_HORIZONTAL
, ...)

@@
expression E;
@@
-gtk_hbox_new(E, TRUE)
+gtk_box_new(GTK_ORIENTATION_HORIZONTAL, E)

@@
expression E;
@@
-gtk_hbox_new(E, FALSE)
+gtk_box_new(GTK_ORIENTATION_HORIZONTAL, E)
GTK3: GtkHBox is deprecated
GTK3: GtkVBox is deprecated
GTK3: GTK_HBOX() is deprecated
GTK3: GTK_VBOX() is deprecated
GTK3: gtk_widget_size_request() is deprecated by gtk_widget_get_preferred_size()

Relevant Coccinelle patch:
@@
expression W, R;
@@
-gtk_widget_size_request(W, R)
+gtk_widget_get_preferred_size(W, R, NULL)
GTK3: gtk_widget_set_state() is deprecated

Relevant Coccinelle patch:
@@
expression E1, E2;
@@
-gtk_widget_set_state(E1, E2)
+gtk_widget_set_state_flags(E1, E2, TRUE)

@@
@@
-GTK_STATE_NORMAL
+GTK_STATE_FLAG_NORMAL

@@
@@
-GTK_STATE_ACTIVE
+GTK_STATE_FLAG_ACTIVE

@@
@@
-GTK_STATE_PRELIGHT
+GTK_STATE_FLAG_PRELIGHT

@@
@@
-GTK_STATE_SELECTED
+GTK_STATE_FLAG_SELECTED

@@
@@
-GTK_STATE_INSENSITIVE
+GTK_STATE_FLAG_INSENSITIVE

@@
@@
-GTK_STATE_INCONSISTENT
+GTK_STATE_FLAG_INCONSISTENT

@@
@@
-GTK_STATE_FOCUSED
+GTK_STATE_FLAG_FOCUSED
GTK3: gdk_window_get_pointer() is deprecated

Relevant Coccinelle patch:
@@
expression E1, E2, E3, E4;
@@
-gdk_window_get_pointer(E1, E2, E3, E4)
+gdk_window_get_device_position(E1, gdk_device_manager_get_client_pointer(gdk_display_get_device_manager(gdk_window_get_display(E1))), E2, E3, E4)
GTK3: gtk_widget_set_double_buffered() is deprecated

Relevant Coccinelle patch:
@@
@@
-gtk_widget_set_double_buffered(...);
GTK3: gtk_window_set_opacity() is deprecated by gtk_widget_set_opacity()

Relevant Coccinelle patch:
@@
expression E1, E2;
@@
-gtk_window_set_opacity(GTK_WINDOW(E1), E2);
+gtk_widget_set_opacity(E1, E2);
GTK3: gtk_drag_begin() is deprecated by gtk_drag_begin_with_coordinates()
GTK3: gtk_hscale_new_with_range() is deprecated

Relevant Coccinelle patch:
@@
expression E1, E2, E3;
@@
-gtk_hscale_new_with_range(E1, E2, E3)
+gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, E1, E2, E3)