]> Pileus Git - ~andy/gtk/blob - gdk/broadway/gdkproperty-broadway.c
Change FSF Address
[~andy/gtk] / gdk / broadway / gdkproperty-broadway.c
1 /* GDK - The GIMP Drawing Kit
2  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16  */
17
18 /*
19  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
20  * file for a list of people on the GTK+ Team.  See the ChangeLog
21  * files for a list of changes.  These files are distributed with
22  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
23  */
24
25 #include "config.h"
26
27 #include "gdkproperty.h"
28
29 #include "gdkmain.h"
30 #include "gdkprivate.h"
31 #include "gdkinternals.h"
32 #include "gdkdisplay-broadway.h"
33 #include "gdkscreen-broadway.h"
34 #include "gdkselection.h"
35
36 #include <string.h>
37
38 GdkAtom
39 _gdk_broadway_display_manager_atom_intern (GdkDisplayManager *manager,
40                                            const gchar *atom_name, 
41                                            gboolean     only_if_exists)
42 {
43   return _GDK_MAKE_ATOM (g_quark_from_string (atom_name));
44 }
45
46 GdkAtom
47 _gdk_broadway_display_manager_atom_intern_static_string (GdkDisplayManager *manager,
48                                                          const gchar *atom_name)
49 {
50   return _GDK_MAKE_ATOM (g_quark_from_static_string (atom_name));
51 }
52
53 static const char *
54 get_atom_name (GdkAtom atom)
55 {
56   return g_quark_to_string (GPOINTER_TO_UINT(atom));
57 }
58
59 gchar *
60 _gdk_broadway_display_manager_get_atom_name (GdkDisplayManager *manager,
61                                              GdkAtom atom)
62 {
63   return g_strdup (get_atom_name (atom));
64 }
65
66 gboolean
67 _gdk_broadway_window_get_property (GdkWindow   *window,
68                                    GdkAtom      property,
69                                    GdkAtom      type,
70                                    gulong       offset,
71                                    gulong       length,
72                                    gint         pdelete,
73                                    GdkAtom     *actual_property_type,
74                                    gint        *actual_format_type,
75                                    gint        *actual_length,
76                                    guchar     **data)
77 {
78   return FALSE;
79 }
80
81 void
82 _gdk_broadway_window_change_property (GdkWindow    *window,
83                                       GdkAtom       property,
84                                       GdkAtom       type,
85                                       gint          format,
86                                       GdkPropMode   mode,
87                                       const guchar *data,
88                                       gint          nelements)
89 {
90   g_return_if_fail (!window || GDK_WINDOW_IS_BROADWAY (window));
91 }
92
93 void
94 _gdk_broadway_window_delete_property (GdkWindow *window,
95                                       GdkAtom    property)
96 {
97   g_return_if_fail (!window || GDK_WINDOW_IS_BROADWAY (window));
98 }