]> Pileus Git - ~andy/gtk/blob - gdk/broadway/gdkproperty-broadway.c
[broadway] Implement gdk_window_begin_resize_drag
[~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, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 /*
21  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
22  * file for a list of people on the GTK+ Team.  See the ChangeLog
23  * files for a list of changes.  These files are distributed with
24  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
25  */
26
27 #include "config.h"
28
29 #include "gdkproperty.h"
30
31 #include "gdkmain.h"
32 #include "gdkprivate.h"
33 #include "gdkinternals.h"
34 #include "gdkdisplay-broadway.h"
35 #include "gdkscreen-broadway.h"
36 #include "gdkselection.h"
37
38 #include <string.h>
39
40 GdkAtom
41 _gdk_broadway_display_manager_atom_intern (GdkDisplayManager *manager,
42                                            const gchar *atom_name, 
43                                            gboolean     only_if_exists)
44 {
45   return _GDK_MAKE_ATOM (g_quark_from_string (atom_name));
46 }
47
48 GdkAtom
49 _gdk_broadway_display_manager_atom_intern_static_string (GdkDisplayManager *manager,
50                                                          const gchar *atom_name)
51 {
52   return _GDK_MAKE_ATOM (g_quark_from_static_string (atom_name));
53 }
54
55 static G_CONST_RETURN char *
56 get_atom_name (GdkAtom atom)
57 {
58   return g_quark_to_string (GPOINTER_TO_UINT(atom));
59 }
60
61 gchar *
62 _gdk_broadway_display_manager_get_atom_name (GdkDisplayManager *manager,
63                                              GdkAtom atom)
64 {
65   return g_strdup (get_atom_name (atom));
66 }
67
68 gboolean
69 _gdk_broadway_window_get_property (GdkWindow   *window,
70                                    GdkAtom      property,
71                                    GdkAtom      type,
72                                    gulong       offset,
73                                    gulong       length,
74                                    gint         pdelete,
75                                    GdkAtom     *actual_property_type,
76                                    gint        *actual_format_type,
77                                    gint        *actual_length,
78                                    guchar     **data)
79 {
80   return FALSE;
81 }
82
83 void
84 _gdk_broadway_window_change_property (GdkWindow    *window,
85                                       GdkAtom       property,
86                                       GdkAtom       type,
87                                       gint          format,
88                                       GdkPropMode   mode,
89                                       const guchar *data,
90                                       gint          nelements)
91 {
92   g_return_if_fail (!window || GDK_WINDOW_IS_BROADWAY (window));
93 }
94
95 void
96 _gdk_broadway_window_delete_property (GdkWindow *window,
97                                       GdkAtom    property)
98 {
99   g_return_if_fail (!window || GDK_WINDOW_IS_BROADWAY (window));
100 }