[gtk+/wip/otte/gtk4: 73/118] window: Remove _set/_get_opacity



commit 82515cc256ec1b7e153744a0dfce1f6afd6d31ea
Author: Timm Bäder <mail baedert org>
Date:   Tue Oct 4 10:41:25 2016 +0200

    window: Remove _set/_get_opacity

 docs/reference/gtk/gtk3-sections.txt |    2 -
 gtk/gtkwindow.c                      |   45 ----------------------------------
 gtk/gtkwindow.h                      |    5 ----
 3 files changed, 0 insertions(+), 52 deletions(-)
---
diff --git a/docs/reference/gtk/gtk3-sections.txt b/docs/reference/gtk/gtk3-sections.txt
index a783f58..ddf80a2 100644
--- a/docs/reference/gtk/gtk3-sections.txt
+++ b/docs/reference/gtk/gtk3-sections.txt
@@ -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
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 181b81e..f2c0e52 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -3323,51 +3323,6 @@ gtk_window_get_attached_to (GtkWindow *window)
 }
 
 /**
- * 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
  *
diff --git a/gtk/gtkwindow.h b/gtk/gtkwindow.h
index a57d518..73a1595 100644
--- a/gtk/gtkwindow.h
+++ b/gtk/gtkwindow.h
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]