[gtk+] window: Remove reshow_with_initial_size



commit 77f50ec5d703665238907aa6c4d7d608eb0a1d8c
Author: Timm Bäder <mail baedert org>
Date:   Tue Oct 11 14:50:22 2016 +0200

    window: Remove reshow_with_initial_size

 gtk/gtkwindow.c |   26 --------------------------
 gtk/gtkwindow.h |    4 ----
 tests/testgtk.c |   10 ----------
 3 files changed, 0 insertions(+), 40 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 16682ff..235a031 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5600,32 +5600,6 @@ gtk_window_get_position (GtkWindow *window,
     }
 }
 
-/**
- * gtk_window_reshow_with_initial_size:
- * @window: a #GtkWindow
- * 
- * Hides @window, then reshows it, resetting the
- * default size and position of the window. Used
- * by GUI builders only.
- * 
- * Deprecated: 3.10: GUI builders can call gtk_widget_hide(),
- *   gtk_widget_unrealize() and then gtk_widget_show() on @window
- *   themselves, if they still need this functionality.
- **/
-void
-gtk_window_reshow_with_initial_size (GtkWindow *window)
-{
-  GtkWidget *widget;
-  
-  g_return_if_fail (GTK_IS_WINDOW (window));
-
-  widget = GTK_WIDGET (window);
-  
-  gtk_widget_hide (widget);
-  gtk_widget_unrealize (widget);
-  gtk_widget_show (widget);
-}
-
 static void
 gtk_window_destroy (GtkWidget *widget)
 {
diff --git a/gtk/gtkwindow.h b/gtk/gtkwindow.h
index 73a1595..c13eb6a 100644
--- a/gtk/gtkwindow.h
+++ b/gtk/gtkwindow.h
@@ -429,10 +429,6 @@ GtkWindowGroup *gtk_window_get_group (GtkWindow   *window);
 GDK_AVAILABLE_IN_ALL
 gboolean gtk_window_has_group        (GtkWindow   *window);
 
-/* Ignore this unless you are writing a GUI builder */
-GDK_DEPRECATED_IN_3_10
-void     gtk_window_reshow_with_initial_size (GtkWindow *window);
-
 GDK_AVAILABLE_IN_ALL
 GtkWindowType gtk_window_get_window_type     (GtkWindow     *window);
 
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 7a73e70..bded479 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -7217,16 +7217,6 @@ window_controls (GtkWidget *window)
 
   g_object_set_data (G_OBJECT (control_window), "spin2", spin);
 
-  G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
-  button = gtk_button_new_with_label ("Reshow with initial size");
-  g_signal_connect_object (button,
-                          "clicked",
-                          G_CALLBACK (gtk_window_reshow_with_initial_size),
-                          window,
-                          G_CONNECT_SWAPPED);
-  gtk_box_pack_end (GTK_BOX (vbox), button, FALSE, FALSE);
-  G_GNUC_END_IGNORE_DEPRECATIONS;
-
   button = gtk_button_new_with_label ("Queue resize");
   g_signal_connect_object (button,
                           "clicked",


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