Commit 49bb8dfa authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson
Browse files

Correct filename ~/.pangoft2_aliases

2001-01-08  Alexander Larsson  <alexl@redhat.com>

	* docs/README.linux-fb:
	Correct filename ~/.pangoft2_aliases

	* gdk/gdkwindow.h:
	Added new function gdk_window_get_decorations.

	* gdk/linux-fb/gdkfb.h:
	Removed _gdk_window_get_decorations declaration.
	Renamed _gdk_window_set_child_handler to
	gdk_fb_window_set_child_handler.

	* gdk/linux-fb/gdkwindow-fb.c:
	Renamed _gdk_window_set_child_handler to
	gdk_fb_window_set_child_handler.

	* gdk/x11/gdkwindow-x11.c:
	New function gdk_window_get_mwm_hints().
	Implemented gdk_window_get_decorations.

	* docs/reference/gdk/tmpl/windows.sgml:
	* docs/reference/gdk/gdk-sections.txt:
	Added gdk_window_get_decorations docs.
parent 94dfd3dd
2001-01-08 Alexander Larsson <alexl@redhat.com>
* docs/README.linux-fb:
Correct filename ~/.pangoft2_aliases
* gdk/gdkwindow.h:
Added new function gdk_window_get_decorations.
* gdk/linux-fb/gdkfb.h:
Removed _gdk_window_get_decorations declaration.
Renamed _gdk_window_set_child_handler to
gdk_fb_window_set_child_handler.
* gdk/linux-fb/gdkwindow-fb.c:
Renamed _gdk_window_set_child_handler to
gdk_fb_window_set_child_handler.
* gdk/x11/gdkwindow-x11.c:
New function gdk_window_get_mwm_hints().
Implemented gdk_window_get_decorations.
* docs/reference/gdk/tmpl/windows.sgml:
* docs/reference/gdk/gdk-sections.txt:
Added gdk_window_get_decorations docs.
2001-01-08 Alexander Larsson <alla@lysator.liu.se>
* gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
......
2001-01-08 Alexander Larsson <alexl@redhat.com>
* docs/README.linux-fb:
Correct filename ~/.pangoft2_aliases
* gdk/gdkwindow.h:
Added new function gdk_window_get_decorations.
* gdk/linux-fb/gdkfb.h:
Removed _gdk_window_get_decorations declaration.
Renamed _gdk_window_set_child_handler to
gdk_fb_window_set_child_handler.
* gdk/linux-fb/gdkwindow-fb.c:
Renamed _gdk_window_set_child_handler to
gdk_fb_window_set_child_handler.
* gdk/x11/gdkwindow-x11.c:
New function gdk_window_get_mwm_hints().
Implemented gdk_window_get_decorations.
* docs/reference/gdk/tmpl/windows.sgml:
* docs/reference/gdk/gdk-sections.txt:
Added gdk_window_get_decorations docs.
2001-01-08 Alexander Larsson <alla@lysator.liu.se>
* gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
......
2001-01-08 Alexander Larsson <alexl@redhat.com>
* docs/README.linux-fb:
Correct filename ~/.pangoft2_aliases
* gdk/gdkwindow.h:
Added new function gdk_window_get_decorations.
* gdk/linux-fb/gdkfb.h:
Removed _gdk_window_get_decorations declaration.
Renamed _gdk_window_set_child_handler to
gdk_fb_window_set_child_handler.
* gdk/linux-fb/gdkwindow-fb.c:
Renamed _gdk_window_set_child_handler to
gdk_fb_window_set_child_handler.
* gdk/x11/gdkwindow-x11.c:
New function gdk_window_get_mwm_hints().
Implemented gdk_window_get_decorations.
* docs/reference/gdk/tmpl/windows.sgml:
* docs/reference/gdk/gdk-sections.txt:
Added gdk_window_get_decorations docs.
2001-01-08 Alexander Larsson <alla@lysator.liu.se>
* gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
......
2001-01-08 Alexander Larsson <alexl@redhat.com>
* docs/README.linux-fb:
Correct filename ~/.pangoft2_aliases
* gdk/gdkwindow.h:
Added new function gdk_window_get_decorations.
* gdk/linux-fb/gdkfb.h:
Removed _gdk_window_get_decorations declaration.
Renamed _gdk_window_set_child_handler to
gdk_fb_window_set_child_handler.
* gdk/linux-fb/gdkwindow-fb.c:
Renamed _gdk_window_set_child_handler to
gdk_fb_window_set_child_handler.
* gdk/x11/gdkwindow-x11.c:
New function gdk_window_get_mwm_hints().
Implemented gdk_window_get_decorations.
* docs/reference/gdk/tmpl/windows.sgml:
* docs/reference/gdk/gdk-sections.txt:
Added gdk_window_get_decorations docs.
2001-01-08 Alexander Larsson <alla@lysator.liu.se>
* gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
......
2001-01-08 Alexander Larsson <alexl@redhat.com>
* docs/README.linux-fb:
Correct filename ~/.pangoft2_aliases
* gdk/gdkwindow.h:
Added new function gdk_window_get_decorations.
* gdk/linux-fb/gdkfb.h:
Removed _gdk_window_get_decorations declaration.
Renamed _gdk_window_set_child_handler to
gdk_fb_window_set_child_handler.
* gdk/linux-fb/gdkwindow-fb.c:
Renamed _gdk_window_set_child_handler to
gdk_fb_window_set_child_handler.
* gdk/x11/gdkwindow-x11.c:
New function gdk_window_get_mwm_hints().
Implemented gdk_window_get_decorations.
* docs/reference/gdk/tmpl/windows.sgml:
* docs/reference/gdk/gdk-sections.txt:
Added gdk_window_get_decorations docs.
2001-01-08 Alexander Larsson <alla@lysator.liu.se>
* gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
......
2001-01-08 Alexander Larsson <alexl@redhat.com>
* docs/README.linux-fb:
Correct filename ~/.pangoft2_aliases
* gdk/gdkwindow.h:
Added new function gdk_window_get_decorations.
* gdk/linux-fb/gdkfb.h:
Removed _gdk_window_get_decorations declaration.
Renamed _gdk_window_set_child_handler to
gdk_fb_window_set_child_handler.
* gdk/linux-fb/gdkwindow-fb.c:
Renamed _gdk_window_set_child_handler to
gdk_fb_window_set_child_handler.
* gdk/x11/gdkwindow-x11.c:
New function gdk_window_get_mwm_hints().
Implemented gdk_window_get_decorations.
* docs/reference/gdk/tmpl/windows.sgml:
* docs/reference/gdk/gdk-sections.txt:
Added gdk_window_get_decorations docs.
2001-01-08 Alexander Larsson <alla@lysator.liu.se>
* gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
......
2001-01-08 Alexander Larsson <alexl@redhat.com>
* docs/README.linux-fb:
Correct filename ~/.pangoft2_aliases
* gdk/gdkwindow.h:
Added new function gdk_window_get_decorations.
* gdk/linux-fb/gdkfb.h:
Removed _gdk_window_get_decorations declaration.
Renamed _gdk_window_set_child_handler to
gdk_fb_window_set_child_handler.
* gdk/linux-fb/gdkwindow-fb.c:
Renamed _gdk_window_set_child_handler to
gdk_fb_window_set_child_handler.
* gdk/x11/gdkwindow-x11.c:
New function gdk_window_get_mwm_hints().
Implemented gdk_window_get_decorations.
* docs/reference/gdk/tmpl/windows.sgml:
* docs/reference/gdk/gdk-sections.txt:
Added gdk_window_get_decorations docs.
2001-01-08 Alexander Larsson <alla@lysator.liu.se>
* gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
......
......@@ -50,7 +50,7 @@ To your $prefix/etc/pango/pangorc or ~/.pangorc.
You must also set up font aliases for the fonts Sans, Serif and Monotype.
This is done by creating a $prefix/etc/pango/pangoft2.aliases or
~/.pangoft2.aliases file. You can also set the name of this file using the
~/.pangoft2_aliases file. You can also set the name of this file using the
key AliasFiles in the PangoFT2 section in pangorc.
An example of a font alias file is:
......
......@@ -465,6 +465,7 @@ gdk_window_set_transient_for
gdk_window_set_role
gdk_window_set_group
gdk_window_set_decorations
gdk_window_get_decorations
GdkWMDecoration
gdk_window_set_functions
GdkWMFunction
......
......@@ -871,6 +871,16 @@ Windows
@decorations:
<!-- ##### FUNCTION gdk_window_get_decorations ##### -->
<para>
</para>
@window: The window to get the decorations from
@decorations: The window decorations will be written here
@Returns: TRUE if the window has decorations set, FALSE otherwise.
<!-- ##### ENUM GdkWMDecoration ##### -->
<para>
......
......@@ -388,6 +388,8 @@ void gdk_window_set_group (GdkWindow *window,
GdkWindow *leader);
void gdk_window_set_decorations (GdkWindow *window,
GdkWMDecoration decorations);
gboolean gdk_window_get_decorations (GdkWindow *window,
GdkWMDecoration *decorations);
void gdk_window_set_functions (GdkWindow *window,
GdkWMFunction functions);
GList * gdk_window_get_toplevels (void);
......
......@@ -32,9 +32,7 @@ typedef void (*GdkWindowChildGetPos) (GdkWindow *window,
gint *x, gint *y,
gpointer user_data);
gboolean _gdk_window_get_decorations (GdkWindow *window,
GdkWMDecoration *decorations);
void _gdk_window_set_child_handler (GdkWindow *window,
void gdk_fb_window_set_child_handler (GdkWindow *window,
GdkWindowChildChanged changed,
GdkWindowChildGetPos get_pos,
gpointer user_data);
......
......@@ -1685,7 +1685,7 @@ gdk_window_set_group (GdkWindow *window,
}
void
_gdk_window_set_child_handler (GdkWindow *window,
gdk_fb_window_set_child_handler (GdkWindow *window,
GdkWindowChildChanged changed,
GdkWindowChildGetPos get_pos,
gpointer user_data)
......@@ -1721,7 +1721,7 @@ gdk_window_set_decorations (GdkWindow *window,
}
gboolean
_gdk_window_get_decorations(GdkWindow *window,
gdk_window_get_decorations(GdkWindow *window,
GdkWMDecoration *decorations)
{
GdkWMDecoration *dec;
......
......@@ -1851,6 +1851,34 @@ gdk_window_set_group (GdkWindow *window,
XFree (wm_hints);
}
static MotifWmHints *
gdk_window_get_mwm_hints (GdkWindow *window)
{
static Atom hints_atom = None;
MotifWmHints *hints;
Atom type;
gint format;
gulong nitems;
gulong bytes_after;
if (GDK_WINDOW_DESTROYED (window))
return NULL;
if (!hints_atom)
hints_atom = XInternAtom (GDK_WINDOW_XDISPLAY (window),
_XA_MOTIF_WM_HINTS, FALSE);
XGetWindowProperty (GDK_WINDOW_XDISPLAY (window), GDK_WINDOW_XID (window),
hints_atom, 0, sizeof (MotifWmHints)/sizeof (long),
False, AnyPropertyType, &type, &format, &nitems,
&bytes_after, (guchar **)&hints);
if (type == None)
return NULL;
return hints;
}
static void
gdk_window_set_mwm_hints (GdkWindow *window,
MotifWmHints *new_hints)
......@@ -1913,6 +1941,29 @@ gdk_window_set_decorations (GdkWindow *window,
gdk_window_set_mwm_hints (window, &hints);
}
gboolean
gdk_window_get_decorations(GdkWindow *window,
GdkWMDecoration *decorations)
{
MotifWmHints *hints;
gboolean result = FALSE;
hints = gdk_window_get_mwm_hints (window);
if (hints)
{
if (hints->flags & MWM_HINTS_DECORATIONS)
{
*decorations = hints->decorations;
result = TRUE;
}
XFree (hints);
}
return result;
}
void
gdk_window_set_functions (GdkWindow *window,
GdkWMFunction functions)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment