Remove gdk_*et_use_xshm() deprecated functions

This commit is contained in:
Javier Jardón 2010-05-26 01:41:40 +02:00
parent 7ab09f1597
commit 019563c322
8 changed files with 0 additions and 87 deletions

View File

@ -44,10 +44,6 @@ gdk_keyboard_ungrab
<SUBSECTION>
gdk_beep
<SUBSECTION>
gdk_get_use_xshm
gdk_set_use_xshm
<SUBSECTION>
gdk_error_trap_push
gdk_error_trap_pop

View File

@ -327,33 +327,6 @@ available.
@void:
<!-- ##### FUNCTION gdk_get_use_xshm ##### -->
<para>
Returns %TRUE if GDK will attempt to use the MIT-SHM shared memory extension.
</para>
<para>
The shared memory extension is used for #GdkImage, and consequently for
<link linkend="gdk-GdkRGB">GdkRGB</link>.
It enables much faster drawing by communicating with the X server through
SYSV shared memory calls. However, it can only be used if the X client and
server are on the same machine and the server supports it.
</para>
@void:
@Returns: %TRUE if use of the MIT shared memory extension will be attempted.
<!-- ##### FUNCTION gdk_set_use_xshm ##### -->
<para>
Sets whether the use of the MIT shared memory extension should be attempted.
This function is mainly for internal use. It is only safe for an application
to set this to %FALSE, since if it is set to %TRUE and the server does not
support the extension it may cause warning messages to be output.
</para>
@use_xshm: %TRUE if use of the MIT shared memory extension should be attempted.
<!-- ##### FUNCTION gdk_error_trap_push ##### -->
<para>
This function allows X errors to be trapped instead of the normal behavior

View File

@ -63,17 +63,6 @@ _gdk_windowing_init (void)
*/
}
void
gdk_set_use_xshm (gboolean use_xshm)
{
}
gboolean
gdk_get_use_xshm (void)
{
return FALSE;
}
void
_gdk_windowing_display_set_sm_client_id (GdkDisplay *display,const gchar *sm_client_id)
{

View File

@ -88,11 +88,6 @@ void gdk_set_program_class (const char *program_class);
void gdk_error_trap_push (void);
gint gdk_error_trap_pop (void);
#ifndef GDK_DISABLE_DEPRECATED
void gdk_set_use_xshm (gboolean use_xshm);
gboolean gdk_get_use_xshm (void);
#endif /* GDK_DISABLE_DEPRECATED */
gchar* gdk_get_display (void);
G_CONST_RETURN gchar* gdk_get_display_arg_name (void);

View File

@ -100,10 +100,6 @@ gdk_device_manager_xi2_get_type
gdk_error_trap_pop
gdk_error_trap_push
gdk_get_display
#ifndef GDK_DISABLE_DEPRECATED
gdk_get_use_xshm
gdk_set_use_xshm
#endif
#endif
#endif

View File

@ -86,16 +86,3 @@ _gdk_windowing_display_set_sm_client_id (GdkDisplay *display,
const gchar *sm_client_id)
{
}
void
gdk_set_use_xshm (gboolean use_xshm)
{
/* Always on, since we're always on the local machine */
}
gboolean
gdk_get_use_xshm (void)
{
return TRUE;
}

View File

@ -152,18 +152,6 @@ _gdk_other_api_failed (const gchar *where,
g_warning ("%s: %s failed", where, api);
}
void
gdk_set_use_xshm (gboolean use_xshm)
{
/* Always on */
}
gboolean
gdk_get_use_xshm (void)
{
return TRUE;
}
gint
gdk_screen_get_width (GdkScreen *screen)
{

View File

@ -107,17 +107,6 @@ _gdk_windowing_init (void)
_gdk_selection_property = gdk_atom_intern_static_string ("GDK_SELECTION");
}
void
gdk_set_use_xshm (gboolean use_xshm)
{
}
gboolean
gdk_get_use_xshm (void)
{
return GDK_DISPLAY_X11 (gdk_display_get_default ())->use_xshm;
}
GdkGrabStatus
_gdk_x11_convert_grab_status (gint status)
{