mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 09:00:34 +00:00
Remove deprecated GtkLayout functions
This commit is contained in:
parent
7fd68866fe
commit
2f1a59c0f2
@ -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
|
||||
|
@ -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__ */
|
||||
|
Loading…
Reference in New Issue
Block a user