Remove gtk_fixed_get_has_window() and gtk_fixed_set_has_window()
This commit is contained in:
		@ -1501,8 +1501,6 @@ GtkFixed
 | 
			
		||||
gtk_fixed_new
 | 
			
		||||
gtk_fixed_put
 | 
			
		||||
gtk_fixed_move
 | 
			
		||||
gtk_fixed_get_has_window
 | 
			
		||||
gtk_fixed_set_has_window
 | 
			
		||||
<SUBSECTION Standard>
 | 
			
		||||
GTK_FIXED
 | 
			
		||||
GTK_IS_FIXED
 | 
			
		||||
 | 
			
		||||
@ -125,23 +125,3 @@ Moves a child of a #GtkFixed container to the given position.
 | 
			
		||||
@widget: the child widget.
 | 
			
		||||
@x: the horizontal position to move the widget to.
 | 
			
		||||
@y: the vertical position to move the widget to.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
<!-- ##### FUNCTION gtk_fixed_get_has_window ##### -->
 | 
			
		||||
<para>
 | 
			
		||||
 | 
			
		||||
</para>
 | 
			
		||||
 | 
			
		||||
@fixed: 
 | 
			
		||||
@Returns: 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
<!-- ##### FUNCTION gtk_fixed_set_has_window ##### -->
 | 
			
		||||
<para>
 | 
			
		||||
 | 
			
		||||
</para>
 | 
			
		||||
 | 
			
		||||
@fixed: 
 | 
			
		||||
@has_window: 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -6471,15 +6471,15 @@ the position specified by <literal>x</literal> and <literal>y</literal>.</para>
 | 
			
		||||
position.</para>
 | 
			
		||||
 | 
			
		||||
<programlisting role="C">
 | 
			
		||||
void gtk_fixed_set_has_window( GtkFixed  *fixed,
 | 
			
		||||
                               gboolean   has_window );
 | 
			
		||||
void gtk_widget_set_has_window( GtkWidget  *widget,
 | 
			
		||||
                                gboolean    has_window );
 | 
			
		||||
 | 
			
		||||
gboolean gtk_fixed_get_has_window( GtkFixed *fixed );
 | 
			
		||||
gboolean gtk_widget_get_has_window( GtkWidget *widget );
 | 
			
		||||
</programlisting>
 | 
			
		||||
 | 
			
		||||
<para>Normally, Fixed widgets don't have their own X window. Since this is
 | 
			
		||||
different from the behaviour of Fixed widgets in earlier releases of GTK, 
 | 
			
		||||
the function gtk_fixed_set_has_window() allows the creation of Fixed widgets 
 | 
			
		||||
the function gtk_widget_set_has_window() allows the creation of Fixed widgets
 | 
			
		||||
<emphasis>with</emphasis> their own window. It has to be called before
 | 
			
		||||
realizing the widget.</para>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1383,10 +1383,6 @@ gtk_fixed_get_type G_GNUC_CONST
 | 
			
		||||
gtk_fixed_move
 | 
			
		||||
gtk_fixed_new
 | 
			
		||||
gtk_fixed_put
 | 
			
		||||
#ifndef GTK_DISABLE_DEPRECATED
 | 
			
		||||
gtk_fixed_set_has_window
 | 
			
		||||
gtk_fixed_get_has_window
 | 
			
		||||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -453,53 +453,5 @@ gtk_fixed_forall (GtkContainer *container,
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * gtk_fixed_set_has_window:
 | 
			
		||||
 * @fixed: a #GtkFixed
 | 
			
		||||
 * @has_window: %TRUE if a separate window should be created
 | 
			
		||||
 * 
 | 
			
		||||
 * Sets whether a #GtkFixed widget is created with a separate
 | 
			
		||||
 * #GdkWindow for @widget->window or not. (By default, it will be
 | 
			
		||||
 * created with no separate #GdkWindow). This function must be called
 | 
			
		||||
 * while the #GtkFixed is not realized, for instance, immediately after the
 | 
			
		||||
 * window is created.
 | 
			
		||||
 * 
 | 
			
		||||
 * This function was added to provide an easy migration path for
 | 
			
		||||
 * older applications which may expect #GtkFixed to have a separate window.
 | 
			
		||||
 *
 | 
			
		||||
 * Deprecated: 2.20: Use gtk_widget_set_has_window() instead.
 | 
			
		||||
 **/
 | 
			
		||||
void
 | 
			
		||||
gtk_fixed_set_has_window (GtkFixed *fixed,
 | 
			
		||||
			  gboolean  has_window)
 | 
			
		||||
{
 | 
			
		||||
  g_return_if_fail (GTK_IS_FIXED (fixed));
 | 
			
		||||
  g_return_if_fail (!gtk_widget_get_realized (GTK_WIDGET (fixed)));
 | 
			
		||||
 | 
			
		||||
  if (has_window != gtk_widget_get_has_window (GTK_WIDGET (fixed)))
 | 
			
		||||
    {
 | 
			
		||||
      gtk_widget_set_has_window (GTK_WIDGET (fixed), has_window);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * gtk_fixed_get_has_window:
 | 
			
		||||
 * @fixed: a #GtkWidget
 | 
			
		||||
 * 
 | 
			
		||||
 * Gets whether the #GtkFixed has its own #GdkWindow.
 | 
			
		||||
 * See gtk_fixed_set_has_window().
 | 
			
		||||
 * 
 | 
			
		||||
 * Return value: %TRUE if @fixed has its own window.
 | 
			
		||||
 *
 | 
			
		||||
 * Deprecated: 2.20: Use gtk_widget_get_has_window() instead.
 | 
			
		||||
 **/
 | 
			
		||||
gboolean
 | 
			
		||||
gtk_fixed_get_has_window (GtkFixed *fixed)
 | 
			
		||||
{
 | 
			
		||||
  g_return_val_if_fail (GTK_IS_FIXED (fixed), FALSE);
 | 
			
		||||
 | 
			
		||||
  return gtk_widget_get_has_window (GTK_WIDGET (fixed));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#define __GTK_FIXED_C__
 | 
			
		||||
#include "gtkaliasdef.c"
 | 
			
		||||
 | 
			
		||||
@ -79,11 +79,7 @@ void       gtk_fixed_move              (GtkFixed       *fixed,
 | 
			
		||||
                                        GtkWidget      *widget,
 | 
			
		||||
                                        gint            x,
 | 
			
		||||
                                        gint            y);
 | 
			
		||||
#ifndef GTK_DISABLE_DEPRECATED
 | 
			
		||||
void       gtk_fixed_set_has_window    (GtkFixed       *fixed,
 | 
			
		||||
					gboolean        has_window);
 | 
			
		||||
gboolean   gtk_fixed_get_has_window    (GtkFixed       *fixed);
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
G_END_DECLS
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user