From 2f1a59c0f2ba82af7ccd8bdd82b7dc066e6e9c08 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 7 Oct 2009 17:42:55 +0200 Subject: [PATCH] Remove deprecated GtkLayout functions --- gtk/gtklayout.c | 36 ------------------------------------ gtk/gtklayout.h | 14 -------------- 2 files changed, 50 deletions(-) diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c index 7e3e0b9afb..868347f645 100644 --- a/gtk/gtklayout.c +++ b/gtk/gtklayout.c @@ -534,42 +534,6 @@ gtk_layout_get_size (GtkLayout *layout, *height = layout->height; } -/** - * gtk_layout_freeze: - * @layout: a #GtkLayout - * - * This is a deprecated function, it doesn't do anything useful. - **/ -void -gtk_layout_freeze (GtkLayout *layout) -{ - g_return_if_fail (GTK_IS_LAYOUT (layout)); - - layout->freeze_count++; -} - -/** - * gtk_layout_thaw: - * @layout: a #GtkLayout - * - * This is a deprecated function, it doesn't do anything useful. - **/ -void -gtk_layout_thaw (GtkLayout *layout) -{ - g_return_if_fail (GTK_IS_LAYOUT (layout)); - - if (layout->freeze_count) - { - if (!(--layout->freeze_count)) - { - gtk_widget_queue_draw (GTK_WIDGET (layout)); - gdk_window_process_updates (GTK_WIDGET (layout)->window, TRUE); - } - } - -} - /* Basic Object handling procedures */ static void diff --git a/gtk/gtklayout.h b/gtk/gtklayout.h index 0d2e6bcf54..aa542ca72a 100644 --- a/gtk/gtklayout.h +++ b/gtk/gtklayout.h @@ -119,20 +119,6 @@ void gtk_layout_set_hadjustment (GtkLayout *layout, void gtk_layout_set_vadjustment (GtkLayout *layout, GtkAdjustment *adjustment); - -#ifndef GTK_DISABLE_DEPRECATED -/* These disable and enable moving and repainting the scrolling window - * of the GtkLayout, respectively. If you want to update the layout's - * offsets but do not want it to repaint itself, you should use these - * functions. - * - * - I don't understand these are supposed to work, so I suspect - * - they don't now. OWT 1/20/98 - */ -void gtk_layout_freeze (GtkLayout *layout); -void gtk_layout_thaw (GtkLayout *layout); -#endif /* GTK_DISABLE_DEPRECATED */ - G_END_DECLS #endif /* __GTK_LAYOUT_H__ */