gtk2/gdk/broadway/gdkproperty-broadway.c

99 lines
2.7 KiB
C
Raw Normal View History

2010-11-12 12:18:58 +00:00
/* GDK - The GIMP Drawing Kit
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
2012-02-27 13:01:10 +00:00
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
2010-11-12 12:18:58 +00:00
*/
/*
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
* file for a list of people on the GTK+ Team. See the ChangeLog
* files for a list of changes. These files are distributed with
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
#include "config.h"
#include "gdkproperty.h"
#include "gdkmain.h"
#include "gdkprivate.h"
#include "gdkinternals.h"
#include "gdkdisplay-broadway.h"
#include "gdkscreen-broadway.h"
#include "gdkselection.h"
#include <string.h>
GdkAtom
_gdk_broadway_display_manager_atom_intern (GdkDisplayManager *manager,
const gchar *atom_name,
gboolean only_if_exists)
2010-11-12 12:18:58 +00:00
{
2010-11-15 19:08:18 +00:00
return _GDK_MAKE_ATOM (g_quark_from_string (atom_name));
2010-11-12 12:18:58 +00:00
}
GdkAtom
_gdk_broadway_display_manager_atom_intern_static_string (GdkDisplayManager *manager,
const gchar *atom_name)
2010-11-12 12:18:58 +00:00
{
2010-11-15 19:08:18 +00:00
return _GDK_MAKE_ATOM (g_quark_from_static_string (atom_name));
2010-11-12 12:18:58 +00:00
}
2011-06-06 18:05:18 +00:00
static const char *
2010-11-12 12:18:58 +00:00
get_atom_name (GdkAtom atom)
{
2010-11-15 19:08:18 +00:00
return g_quark_to_string (GPOINTER_TO_UINT(atom));
2010-11-12 12:18:58 +00:00
}
gchar *
_gdk_broadway_display_manager_get_atom_name (GdkDisplayManager *manager,
GdkAtom atom)
2010-11-12 12:18:58 +00:00
{
return g_strdup (get_atom_name (atom));
}
gboolean
_gdk_broadway_window_get_property (GdkWindow *window,
GdkAtom property,
GdkAtom type,
gulong offset,
gulong length,
gint pdelete,
GdkAtom *actual_property_type,
gint *actual_format_type,
gint *actual_length,
guchar **data)
2010-11-12 12:18:58 +00:00
{
2010-11-15 19:08:18 +00:00
return FALSE;
2010-11-12 12:18:58 +00:00
}
void
_gdk_broadway_window_change_property (GdkWindow *window,
GdkAtom property,
GdkAtom type,
gint format,
GdkPropMode mode,
const guchar *data,
gint nelements)
2010-11-12 12:18:58 +00:00
{
g_return_if_fail (!window || GDK_WINDOW_IS_BROADWAY (window));
2010-11-12 12:18:58 +00:00
}
void
_gdk_broadway_window_delete_property (GdkWindow *window,
GdkAtom property)
2010-11-12 12:18:58 +00:00
{
g_return_if_fail (!window || GDK_WINDOW_IS_BROADWAY (window));
2010-11-12 12:18:58 +00:00
}