forked from AuroraMiddleware/gtk
window: Remove _set/_get_opacity
This commit is contained in:
parent
7fa4ac08ea
commit
9c09669711
@ -5663,8 +5663,6 @@ gtk_window_set_icon_list
|
||||
gtk_window_set_icon_from_file
|
||||
gtk_window_set_icon_name
|
||||
gtk_window_set_auto_startup_notification
|
||||
gtk_window_get_opacity
|
||||
gtk_window_set_opacity
|
||||
gtk_window_get_mnemonics_visible
|
||||
gtk_window_set_mnemonics_visible
|
||||
gtk_window_get_focus_visible
|
||||
|
@ -3322,51 +3322,6 @@ gtk_window_get_attached_to (GtkWindow *window)
|
||||
return window->priv->attach_widget;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_window_set_opacity:
|
||||
* @window: a #GtkWindow
|
||||
* @opacity: desired opacity, between 0 and 1
|
||||
*
|
||||
* Request the windowing system to make @window partially transparent,
|
||||
* with opacity 0 being fully transparent and 1 fully opaque. (Values
|
||||
* of the opacity parameter are clamped to the [0,1] range.) On X11
|
||||
* this has any effect only on X screens with a compositing manager
|
||||
* running. See gtk_widget_is_composited(). On Windows it should work
|
||||
* always.
|
||||
*
|
||||
* Note that setting a window’s opacity after the window has been
|
||||
* shown causes it to flicker once on Windows.
|
||||
*
|
||||
* Since: 2.12
|
||||
* Deprecated: 3.8: Use gtk_widget_set_opacity instead.
|
||||
**/
|
||||
void
|
||||
gtk_window_set_opacity (GtkWindow *window,
|
||||
gdouble opacity)
|
||||
{
|
||||
gtk_widget_set_opacity (GTK_WIDGET (window), opacity);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_window_get_opacity:
|
||||
* @window: a #GtkWindow
|
||||
*
|
||||
* Fetches the requested opacity for this window. See
|
||||
* gtk_window_set_opacity().
|
||||
*
|
||||
* Returns: the requested opacity for this window.
|
||||
*
|
||||
* Since: 2.12
|
||||
* Deprecated: 3.8: Use gtk_widget_get_opacity instead.
|
||||
**/
|
||||
gdouble
|
||||
gtk_window_get_opacity (GtkWindow *window)
|
||||
{
|
||||
g_return_val_if_fail (GTK_IS_WINDOW (window), 0.0);
|
||||
|
||||
return gtk_widget_get_opacity (GTK_WIDGET (window));
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_window_get_application:
|
||||
* @window: a #GtkWindow
|
||||
|
@ -192,11 +192,6 @@ void gtk_window_set_attached_to (GtkWindow *window,
|
||||
GtkWidget *attach_widget);
|
||||
GDK_AVAILABLE_IN_3_4
|
||||
GtkWidget *gtk_window_get_attached_to (GtkWindow *window);
|
||||
GDK_DEPRECATED_IN_3_8_FOR(gtk_widget_set_opacity)
|
||||
void gtk_window_set_opacity (GtkWindow *window,
|
||||
gdouble opacity);
|
||||
GDK_DEPRECATED_IN_3_8_FOR(gtk_widget_get_opacity)
|
||||
gdouble gtk_window_get_opacity (GtkWindow *window);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_window_set_type_hint (GtkWindow *window,
|
||||
GdkWindowTypeHint hint);
|
||||
|
Loading…
Reference in New Issue
Block a user