1997-11-24 22:37:52 +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 Library 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
|
1998-02-28 14:35:55 +00:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
1997-11-24 22:37:52 +00:00
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
1998-04-13 02:02:47 +00:00
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
1997-11-24 22:37:52 +00:00
|
|
|
*/
|
|
|
|
#ifndef __GDK_H__
|
|
|
|
#define __GDK_H__
|
|
|
|
|
|
|
|
|
|
|
|
#include <gdk/gdktypes.h>
|
1997-11-27 04:16:39 +00:00
|
|
|
|
1997-11-24 22:37:52 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
|
|
|
/* Initialization, exit and events
|
|
|
|
*/
|
1998-02-28 14:35:55 +00:00
|
|
|
void gdk_init (int *argc,
|
1997-11-24 22:37:52 +00:00
|
|
|
char ***argv);
|
1998-02-28 14:35:55 +00:00
|
|
|
void gdk_exit (int error_code);
|
|
|
|
gchar* gdk_set_locale (void);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
1998-02-28 14:35:55 +00:00
|
|
|
gint gdk_events_pending (void);
|
|
|
|
GdkEvent *gdk_event_get (void);
|
1997-12-18 02:17:14 +00:00
|
|
|
GdkEvent *gdk_event_get_graphics_expose (GdkWindow *window);
|
1998-12-15 07:32:11 +00:00
|
|
|
void gdk_event_put (GdkEvent *event);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
Added a modular client-message-filter mechanism, that is used for the DND
Sun Oct 18 18:16:39 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdk.c gdkprivate.h: Added a modular client-message-filter
mechanism, that is used for the DND messages.
Removed all the old DND code.
* gdk/gdkcolormap.c gdk/gdkcolormap.h: Add a function to
get the visual of a given colormap.
* gtk/gtkcolorsel.c: Conversion to new DND, drag
a color-swatch.
* gdk/gdk.h gdk/gdkdnd.c: The low-level
X oriented portions of drag and drop protocols.
Sending and receiving client messages, and navigating
window trees.
* gdk/gdkimage.c: added a gdk_flush() when destroying
SHM images to hopefully make it more likely that
X will gracefully handle the segment being destroyed.
* gdk/gdkprivate.h gtk/gtkdebug.h: Add new
DND debugging flags.
* gtk/gtkeditable.[ch]: Updates for the selection handling
changes.
* gtk/gtkselection.[ch]: Added GtkTargetList, a
refcounted data structure for keeping track of lists
of GdkAtom + information. Removed selection_handler_add
in favor of a "drag_data_get" signal.
* gtk/gtkdnd.[ch] gtk/gtk.h: New files - highlevel (event loop
dependent) parts of the DND protocols, display of drag icons,
drag-under highlighting, and the "default handlers".
* gtk/gtkinvisible.[ch]: New widget - InputOnly offscreen
windows that are used for reliable pointer grabs and
selection handling in the DND code.
* gtk/testdnd.c: New test program for new DND. (Old
DND tests in testgtk still need to be converted.)
* gtk/testselection.c: Use the new selection API.
* docs/dnd_internals: Start at describing how
all the new code works inside.
* docs/Changes-1.2.txt: New file describing source-incompatible
changes in GTK+-1.2.
Sat Oct 17 22:50:34 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkwindow.c (gdk_window_remove_filter): Free
the right list node.
* gdk/gdkwindow.c (gdk_window_init): Add gdk_root_parent
to the XID table so we can receive events on it.
Wed Oct 14 12:57:40 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c gdk/gdk.h (gdk_event_get_time): New function
to get the timestamp from a generic event.
Fri Oct 9 13:16:04 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_add_events): Added function
that safely adds additional events to a widget's event
mask, even if the widget has previously been realized.
(We can do this, but not remove events from the event
mask).
Fri Oct 2 17:35:35 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdkproperty.c (gdk_property_get): Allow type == 0,
for AnyPropertyType.
Fri Oct 2 10:32:21 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdkproperty.c (gdk_atom_intern): Add client-local
hashing.
Thu Sep 24 20:33:54 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_event_send_clientmessage_toall): serial
isn't a timestamp.
Thu Sep 17 14:23:03 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_event_translate): Removed printing
of unknown window lookup warnings. (Made it
a GDK_NOTE) - they happen in many circumstances.
1998-10-18 22:51:24 +00:00
|
|
|
GdkEvent *gdk_event_copy (GdkEvent *event);
|
|
|
|
void gdk_event_free (GdkEvent *event);
|
|
|
|
guint32 gdk_event_get_time (GdkEvent *event);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
1998-12-15 07:32:11 +00:00
|
|
|
void gdk_event_handler_set (GdkEventFunc func,
|
|
|
|
gpointer data,
|
|
|
|
GDestroyNotify notify);
|
|
|
|
|
1998-02-28 14:35:55 +00:00
|
|
|
void gdk_set_show_events (gint show_events);
|
|
|
|
void gdk_set_use_xshm (gint use_xshm);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
|
|
gint gdk_get_show_events (void);
|
1998-02-28 14:35:55 +00:00
|
|
|
gint gdk_get_use_xshm (void);
|
1997-12-17 22:40:07 +00:00
|
|
|
gchar *gdk_get_display (void);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
1998-02-28 14:35:55 +00:00
|
|
|
guint32 gdk_time_get (void);
|
|
|
|
guint32 gdk_timer_get (void);
|
|
|
|
void gdk_timer_set (guint32 milliseconds);
|
|
|
|
void gdk_timer_enable (void);
|
|
|
|
void gdk_timer_disable (void);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
1998-02-28 14:35:55 +00:00
|
|
|
gint gdk_input_add_full (gint source,
|
1997-12-18 02:17:14 +00:00
|
|
|
GdkInputCondition condition,
|
|
|
|
GdkInputFunction function,
|
1998-02-28 14:35:55 +00:00
|
|
|
gpointer data,
|
1997-12-18 02:17:14 +00:00
|
|
|
GdkDestroyNotify destroy);
|
1998-02-28 14:35:55 +00:00
|
|
|
#define gdk_input_add_interp gdk_input_add_full
|
|
|
|
gint gdk_input_add (gint source,
|
1997-12-18 02:17:14 +00:00
|
|
|
GdkInputCondition condition,
|
|
|
|
GdkInputFunction function,
|
1998-02-28 14:35:55 +00:00
|
|
|
gpointer data);
|
|
|
|
void gdk_input_remove (gint tag);
|
|
|
|
|
|
|
|
gint gdk_pointer_grab (GdkWindow * window,
|
|
|
|
gint owner_events,
|
|
|
|
GdkEventMask event_mask,
|
|
|
|
GdkWindow * confine_to,
|
|
|
|
GdkCursor * cursor,
|
|
|
|
guint32 time);
|
|
|
|
void gdk_pointer_ungrab (guint32 time);
|
|
|
|
|
|
|
|
gint gdk_keyboard_grab (GdkWindow * window,
|
|
|
|
gint owner_events,
|
|
|
|
guint32 time);
|
|
|
|
void gdk_keyboard_ungrab (guint32 time);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
1998-01-21 08:35:37 +00:00
|
|
|
gint gdk_pointer_is_grabbed (void);
|
|
|
|
|
1997-11-24 22:37:52 +00:00
|
|
|
gint gdk_screen_width (void);
|
|
|
|
gint gdk_screen_height (void);
|
|
|
|
|
1998-05-23 21:55:40 +00:00
|
|
|
gint gdk_screen_width_mm (void);
|
|
|
|
gint gdk_screen_height_mm (void);
|
|
|
|
|
1997-11-24 22:37:52 +00:00
|
|
|
void gdk_flush (void);
|
|
|
|
void gdk_beep (void);
|
|
|
|
|
|
|
|
void gdk_key_repeat_disable (void);
|
|
|
|
void gdk_key_repeat_restore (void);
|
|
|
|
|
|
|
|
|
|
|
|
/* Visuals
|
|
|
|
*/
|
1998-02-28 14:35:55 +00:00
|
|
|
gint gdk_visual_get_best_depth (void);
|
|
|
|
GdkVisualType gdk_visual_get_best_type (void);
|
|
|
|
GdkVisual* gdk_visual_get_system (void);
|
|
|
|
GdkVisual* gdk_visual_get_best (void);
|
|
|
|
GdkVisual* gdk_visual_get_best_with_depth (gint depth);
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkVisual* gdk_visual_get_best_with_type (GdkVisualType visual_type);
|
1998-02-28 14:35:55 +00:00
|
|
|
GdkVisual* gdk_visual_get_best_with_both (gint depth,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkVisualType visual_type);
|
|
|
|
|
|
|
|
/* Actually, these are no-ops... */
|
|
|
|
GdkVisual* gdk_visual_ref (GdkVisual *visual);
|
1998-02-28 14:35:55 +00:00
|
|
|
void gdk_visual_unref (GdkVisual *visual);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
1998-02-28 14:35:55 +00:00
|
|
|
void gdk_query_depths (gint **depths,
|
|
|
|
gint *count);
|
1997-11-24 22:37:52 +00:00
|
|
|
void gdk_query_visual_types (GdkVisualType **visual_types,
|
1998-02-28 14:35:55 +00:00
|
|
|
gint *count);
|
1998-03-12 07:28:41 +00:00
|
|
|
|
|
|
|
GList* gdk_list_visuals (void);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Windows
|
|
|
|
*/
|
1998-02-28 14:35:55 +00:00
|
|
|
GdkWindow* gdk_window_new (GdkWindow *parent,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkWindowAttr *attributes,
|
1998-02-28 14:35:55 +00:00
|
|
|
gint attributes_mask);
|
|
|
|
|
|
|
|
void gdk_window_destroy (GdkWindow *window);
|
|
|
|
GdkWindow* gdk_window_ref (GdkWindow *window);
|
|
|
|
void gdk_window_unref (GdkWindow *window);
|
|
|
|
|
1998-06-17 08:48:22 +00:00
|
|
|
GdkWindow* gdk_window_at_pointer (gint *win_x,
|
|
|
|
gint *win_y);
|
1998-02-28 14:35:55 +00:00
|
|
|
void gdk_window_show (GdkWindow *window);
|
|
|
|
void gdk_window_hide (GdkWindow *window);
|
|
|
|
void gdk_window_withdraw (GdkWindow *window);
|
|
|
|
void gdk_window_move (GdkWindow *window,
|
|
|
|
gint x,
|
|
|
|
gint y);
|
|
|
|
void gdk_window_resize (GdkWindow *window,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gdk_window_move_resize (GdkWindow *window,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gdk_window_reparent (GdkWindow *window,
|
|
|
|
GdkWindow *new_parent,
|
|
|
|
gint x,
|
|
|
|
gint y);
|
|
|
|
void gdk_window_clear (GdkWindow *window);
|
|
|
|
void gdk_window_clear_area (GdkWindow *window,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gdk_window_clear_area_e(GdkWindow *window,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gdk_window_copy_area (GdkWindow *window,
|
|
|
|
GdkGC *gc,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
GdkWindow *source_window,
|
|
|
|
gint source_x,
|
|
|
|
gint source_y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gdk_window_raise (GdkWindow *window);
|
|
|
|
void gdk_window_lower (GdkWindow *window);
|
|
|
|
|
|
|
|
void gdk_window_set_user_data (GdkWindow *window,
|
|
|
|
gpointer user_data);
|
|
|
|
void gdk_window_set_override_redirect(GdkWindow *window,
|
1997-12-16 22:10:43 +00:00
|
|
|
gboolean override_redirect);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
1998-02-28 14:35:55 +00:00
|
|
|
void gdk_window_add_filter (GdkWindow *window,
|
|
|
|
GdkFilterFunc function,
|
|
|
|
gpointer data);
|
|
|
|
void gdk_window_remove_filter (GdkWindow *window,
|
|
|
|
GdkFilterFunc function,
|
|
|
|
gpointer data);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* This allows for making shaped (partially transparent) windows
|
|
|
|
* - cool feature, needed for Drag and Drag for example.
|
|
|
|
* The shape_mask can be the mask
|
|
|
|
* from gdk_pixmap_create_from_xpm. Stefan Wille
|
|
|
|
*/
|
1998-02-28 14:35:55 +00:00
|
|
|
void gdk_window_shape_combine_mask (GdkWindow *window,
|
|
|
|
GdkBitmap *shape_mask,
|
|
|
|
gint offset_x,
|
|
|
|
gint offset_y);
|
1998-11-06 22:05:02 +00:00
|
|
|
/*
|
|
|
|
* This routine allows you to quickly take the shapes of all the child windows
|
|
|
|
* of a window and use their shapes as the shape mask for this window - useful
|
|
|
|
* for container windows that dont want to look like a big box
|
|
|
|
*
|
|
|
|
* - Raster
|
|
|
|
*/
|
|
|
|
void gdk_window_set_child_shapes (GdkWindow *window);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This routine allows you to merge (ie ADD) child shapes to your
|
|
|
|
* own window's shape keeping its current shape and ADDING the shild
|
|
|
|
* shapes to it.
|
|
|
|
*
|
|
|
|
* - Raster
|
|
|
|
*/
|
|
|
|
void gdk_window_merge_child_shapes (GdkWindow *window);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
Added a modular client-message-filter mechanism, that is used for the DND
Sun Oct 18 18:16:39 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdk.c gdkprivate.h: Added a modular client-message-filter
mechanism, that is used for the DND messages.
Removed all the old DND code.
* gdk/gdkcolormap.c gdk/gdkcolormap.h: Add a function to
get the visual of a given colormap.
* gtk/gtkcolorsel.c: Conversion to new DND, drag
a color-swatch.
* gdk/gdk.h gdk/gdkdnd.c: The low-level
X oriented portions of drag and drop protocols.
Sending and receiving client messages, and navigating
window trees.
* gdk/gdkimage.c: added a gdk_flush() when destroying
SHM images to hopefully make it more likely that
X will gracefully handle the segment being destroyed.
* gdk/gdkprivate.h gtk/gtkdebug.h: Add new
DND debugging flags.
* gtk/gtkeditable.[ch]: Updates for the selection handling
changes.
* gtk/gtkselection.[ch]: Added GtkTargetList, a
refcounted data structure for keeping track of lists
of GdkAtom + information. Removed selection_handler_add
in favor of a "drag_data_get" signal.
* gtk/gtkdnd.[ch] gtk/gtk.h: New files - highlevel (event loop
dependent) parts of the DND protocols, display of drag icons,
drag-under highlighting, and the "default handlers".
* gtk/gtkinvisible.[ch]: New widget - InputOnly offscreen
windows that are used for reliable pointer grabs and
selection handling in the DND code.
* gtk/testdnd.c: New test program for new DND. (Old
DND tests in testgtk still need to be converted.)
* gtk/testselection.c: Use the new selection API.
* docs/dnd_internals: Start at describing how
all the new code works inside.
* docs/Changes-1.2.txt: New file describing source-incompatible
changes in GTK+-1.2.
Sat Oct 17 22:50:34 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkwindow.c (gdk_window_remove_filter): Free
the right list node.
* gdk/gdkwindow.c (gdk_window_init): Add gdk_root_parent
to the XID table so we can receive events on it.
Wed Oct 14 12:57:40 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c gdk/gdk.h (gdk_event_get_time): New function
to get the timestamp from a generic event.
Fri Oct 9 13:16:04 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_add_events): Added function
that safely adds additional events to a widget's event
mask, even if the widget has previously been realized.
(We can do this, but not remove events from the event
mask).
Fri Oct 2 17:35:35 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdkproperty.c (gdk_property_get): Allow type == 0,
for AnyPropertyType.
Fri Oct 2 10:32:21 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdkproperty.c (gdk_atom_intern): Add client-local
hashing.
Thu Sep 24 20:33:54 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_event_send_clientmessage_toall): serial
isn't a timestamp.
Thu Sep 17 14:23:03 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_event_translate): Removed printing
of unknown window lookup warnings. (Made it
a GDK_NOTE) - they happen in many circumstances.
1998-10-18 22:51:24 +00:00
|
|
|
/*
|
|
|
|
* The following function adds a global filter for all client
|
|
|
|
* messages of type message_type
|
1997-11-24 22:37:52 +00:00
|
|
|
*/
|
Added a modular client-message-filter mechanism, that is used for the DND
Sun Oct 18 18:16:39 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdk.c gdkprivate.h: Added a modular client-message-filter
mechanism, that is used for the DND messages.
Removed all the old DND code.
* gdk/gdkcolormap.c gdk/gdkcolormap.h: Add a function to
get the visual of a given colormap.
* gtk/gtkcolorsel.c: Conversion to new DND, drag
a color-swatch.
* gdk/gdk.h gdk/gdkdnd.c: The low-level
X oriented portions of drag and drop protocols.
Sending and receiving client messages, and navigating
window trees.
* gdk/gdkimage.c: added a gdk_flush() when destroying
SHM images to hopefully make it more likely that
X will gracefully handle the segment being destroyed.
* gdk/gdkprivate.h gtk/gtkdebug.h: Add new
DND debugging flags.
* gtk/gtkeditable.[ch]: Updates for the selection handling
changes.
* gtk/gtkselection.[ch]: Added GtkTargetList, a
refcounted data structure for keeping track of lists
of GdkAtom + information. Removed selection_handler_add
in favor of a "drag_data_get" signal.
* gtk/gtkdnd.[ch] gtk/gtk.h: New files - highlevel (event loop
dependent) parts of the DND protocols, display of drag icons,
drag-under highlighting, and the "default handlers".
* gtk/gtkinvisible.[ch]: New widget - InputOnly offscreen
windows that are used for reliable pointer grabs and
selection handling in the DND code.
* gtk/testdnd.c: New test program for new DND. (Old
DND tests in testgtk still need to be converted.)
* gtk/testselection.c: Use the new selection API.
* docs/dnd_internals: Start at describing how
all the new code works inside.
* docs/Changes-1.2.txt: New file describing source-incompatible
changes in GTK+-1.2.
Sat Oct 17 22:50:34 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkwindow.c (gdk_window_remove_filter): Free
the right list node.
* gdk/gdkwindow.c (gdk_window_init): Add gdk_root_parent
to the XID table so we can receive events on it.
Wed Oct 14 12:57:40 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c gdk/gdk.h (gdk_event_get_time): New function
to get the timestamp from a generic event.
Fri Oct 9 13:16:04 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_add_events): Added function
that safely adds additional events to a widget's event
mask, even if the widget has previously been realized.
(We can do this, but not remove events from the event
mask).
Fri Oct 2 17:35:35 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdkproperty.c (gdk_property_get): Allow type == 0,
for AnyPropertyType.
Fri Oct 2 10:32:21 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdkproperty.c (gdk_atom_intern): Add client-local
hashing.
Thu Sep 24 20:33:54 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_event_send_clientmessage_toall): serial
isn't a timestamp.
Thu Sep 17 14:23:03 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_event_translate): Removed printing
of unknown window lookup warnings. (Made it
a GDK_NOTE) - they happen in many circumstances.
1998-10-18 22:51:24 +00:00
|
|
|
void gdk_add_client_message_filter (GdkAtom message_type,
|
|
|
|
GdkFilterFunc func,
|
|
|
|
gpointer data);
|
|
|
|
|
|
|
|
/* Drag and Drop */
|
|
|
|
|
|
|
|
GdkDragContext * gdk_drag_context_new (void);
|
|
|
|
void gdk_drag_context_ref (GdkDragContext *context);
|
|
|
|
void gdk_drag_context_unref (GdkDragContext *context);
|
|
|
|
|
|
|
|
/* Destination side */
|
|
|
|
|
|
|
|
void gdk_drag_status (GdkDragContext *context,
|
|
|
|
GdkDragAction action,
|
|
|
|
guint32 time);
|
|
|
|
void gdk_drop_reply (GdkDragContext *context,
|
|
|
|
gboolean ok,
|
|
|
|
guint32 time);
|
|
|
|
void gdk_drop_finish (GdkDragContext *context,
|
|
|
|
gboolean success,
|
|
|
|
guint32 time);
|
|
|
|
GdkAtom gdk_drag_get_selection (GdkDragContext *context);
|
|
|
|
|
|
|
|
/* Source side */
|
|
|
|
|
|
|
|
GdkDragContext * gdk_drag_begin (GdkWindow *window,
|
|
|
|
GList *targets,
|
|
|
|
GdkDragAction actions);
|
1998-11-18 17:00:48 +00:00
|
|
|
guint32 gdk_drag_get_protocol (guint32 xid,
|
|
|
|
GdkDragProtocol *protocol);
|
Added a modular client-message-filter mechanism, that is used for the DND
Sun Oct 18 18:16:39 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdk.c gdkprivate.h: Added a modular client-message-filter
mechanism, that is used for the DND messages.
Removed all the old DND code.
* gdk/gdkcolormap.c gdk/gdkcolormap.h: Add a function to
get the visual of a given colormap.
* gtk/gtkcolorsel.c: Conversion to new DND, drag
a color-swatch.
* gdk/gdk.h gdk/gdkdnd.c: The low-level
X oriented portions of drag and drop protocols.
Sending and receiving client messages, and navigating
window trees.
* gdk/gdkimage.c: added a gdk_flush() when destroying
SHM images to hopefully make it more likely that
X will gracefully handle the segment being destroyed.
* gdk/gdkprivate.h gtk/gtkdebug.h: Add new
DND debugging flags.
* gtk/gtkeditable.[ch]: Updates for the selection handling
changes.
* gtk/gtkselection.[ch]: Added GtkTargetList, a
refcounted data structure for keeping track of lists
of GdkAtom + information. Removed selection_handler_add
in favor of a "drag_data_get" signal.
* gtk/gtkdnd.[ch] gtk/gtk.h: New files - highlevel (event loop
dependent) parts of the DND protocols, display of drag icons,
drag-under highlighting, and the "default handlers".
* gtk/gtkinvisible.[ch]: New widget - InputOnly offscreen
windows that are used for reliable pointer grabs and
selection handling in the DND code.
* gtk/testdnd.c: New test program for new DND. (Old
DND tests in testgtk still need to be converted.)
* gtk/testselection.c: Use the new selection API.
* docs/dnd_internals: Start at describing how
all the new code works inside.
* docs/Changes-1.2.txt: New file describing source-incompatible
changes in GTK+-1.2.
Sat Oct 17 22:50:34 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkwindow.c (gdk_window_remove_filter): Free
the right list node.
* gdk/gdkwindow.c (gdk_window_init): Add gdk_root_parent
to the XID table so we can receive events on it.
Wed Oct 14 12:57:40 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c gdk/gdk.h (gdk_event_get_time): New function
to get the timestamp from a generic event.
Fri Oct 9 13:16:04 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_add_events): Added function
that safely adds additional events to a widget's event
mask, even if the widget has previously been realized.
(We can do this, but not remove events from the event
mask).
Fri Oct 2 17:35:35 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdkproperty.c (gdk_property_get): Allow type == 0,
for AnyPropertyType.
Fri Oct 2 10:32:21 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdkproperty.c (gdk_atom_intern): Add client-local
hashing.
Thu Sep 24 20:33:54 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_event_send_clientmessage_toall): serial
isn't a timestamp.
Thu Sep 17 14:23:03 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_event_translate): Removed printing
of unknown window lookup warnings. (Made it
a GDK_NOTE) - they happen in many circumstances.
1998-10-18 22:51:24 +00:00
|
|
|
void gdk_drag_find_window (GdkDragContext *context,
|
|
|
|
GdkWindow *drag_window,
|
|
|
|
gint x_root,
|
|
|
|
gint y_root,
|
|
|
|
GdkWindow **dest_window,
|
|
|
|
GdkDragProtocol *protocol);
|
|
|
|
gboolean gdk_drag_motion (GdkDragContext *context,
|
|
|
|
GdkWindow *dest_window,
|
|
|
|
GdkDragProtocol protocol,
|
|
|
|
gint x_root,
|
|
|
|
gint y_root,
|
|
|
|
GdkDragAction action,
|
|
|
|
guint32 time);
|
|
|
|
void gdk_drag_drop (GdkDragContext *context,
|
|
|
|
guint32 time);
|
|
|
|
void gdk_drag_abort (GdkDragContext *context,
|
|
|
|
guint32 time);
|
|
|
|
|
|
|
|
GdkAtom gdk_drag_get_selection (GdkDragContext *context);
|
|
|
|
|
|
|
|
/* GdkWindow */
|
1997-11-24 22:37:52 +00:00
|
|
|
|
1998-02-28 14:35:55 +00:00
|
|
|
void gdk_window_set_hints (GdkWindow *window,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint min_width,
|
|
|
|
gint min_height,
|
|
|
|
gint max_width,
|
|
|
|
gint max_height,
|
|
|
|
gint flags);
|
1998-12-07 06:37:27 +00:00
|
|
|
void gdk_window_set_geometry_hints (GdkWindow *window,
|
|
|
|
GdkGeometry *geometry,
|
|
|
|
GdkWindowHints flags);
|
1998-12-07 19:53:08 +00:00
|
|
|
void gdk_set_sm_client_id (const gchar *sm_client_id);
|
1998-12-07 06:37:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
void gdk_window_set_title (GdkWindow *window,
|
|
|
|
const gchar *title);
|
|
|
|
void gdk_window_set_role (GdkWindow *window,
|
|
|
|
const gchar *role);
|
|
|
|
void gdk_window_set_transient_for (GdkWindow *window,
|
|
|
|
GdkWindow *leader);
|
1998-02-28 14:35:55 +00:00
|
|
|
void gdk_window_set_background (GdkWindow *window,
|
|
|
|
GdkColor *color);
|
|
|
|
void gdk_window_set_back_pixmap (GdkWindow *window,
|
|
|
|
GdkPixmap *pixmap,
|
|
|
|
gint parent_relative);
|
|
|
|
void gdk_window_set_cursor (GdkWindow *window,
|
|
|
|
GdkCursor *cursor);
|
|
|
|
void gdk_window_set_colormap (GdkWindow *window,
|
|
|
|
GdkColormap *colormap);
|
|
|
|
void gdk_window_get_user_data (GdkWindow *window,
|
|
|
|
gpointer *data);
|
|
|
|
void gdk_window_get_geometry (GdkWindow *window,
|
|
|
|
gint *x,
|
|
|
|
gint *y,
|
|
|
|
gint *width,
|
|
|
|
gint *height,
|
|
|
|
gint *depth);
|
|
|
|
void gdk_window_get_position (GdkWindow *window,
|
|
|
|
gint *x,
|
|
|
|
gint *y);
|
|
|
|
void gdk_window_get_size (GdkWindow *window,
|
|
|
|
gint *width,
|
|
|
|
gint *height);
|
|
|
|
GdkVisual* gdk_window_get_visual (GdkWindow *window);
|
|
|
|
GdkColormap* gdk_window_get_colormap (GdkWindow *window);
|
|
|
|
GdkWindowType gdk_window_get_type (GdkWindow *window);
|
|
|
|
gint gdk_window_get_origin (GdkWindow *window,
|
|
|
|
gint *x,
|
|
|
|
gint *y);
|
1998-11-22 00:06:57 +00:00
|
|
|
gboolean gdk_window_get_deskrelative_origin (GdkWindow *window,
|
1998-11-18 03:15:14 +00:00
|
|
|
gint *x,
|
|
|
|
gint *y);
|
new function to get the *real* geometry position of a window, taken
Sat Sep 25 23:33:55 1998 Tim Janik <timj@gtk.org>
* gdk/gdkwindow.c (gdk_window_get_root_origin): new function to get
the *real* geometry position of a window, taken possible window
manager offsets into account.
this has been succesfully tested with fvwm, fvwm-2, bowman, olwm,
olvwm, twm, ctwm, mlvwm, windowmaker and enlightenment.
it does fail though for amiwm which adds windows to a pseudo root
window, and for icewm by a small offset because it defines the
geometry position whithin its border.
* gtk/testgtk.c: added "saved position" test to figure how
gdk_window_get_root_origin() interacts with window managers (repopup
this window to figure ;).
1998-09-25 23:04:32 +00:00
|
|
|
void gdk_window_get_root_origin (GdkWindow *window,
|
|
|
|
gint *x,
|
|
|
|
gint *y);
|
1998-02-28 14:35:55 +00:00
|
|
|
GdkWindow* gdk_window_get_pointer (GdkWindow *window,
|
|
|
|
gint *x,
|
|
|
|
gint *y,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkModifierType *mask);
|
1998-02-28 14:35:55 +00:00
|
|
|
GdkWindow* gdk_window_get_parent (GdkWindow *window);
|
|
|
|
GdkWindow* gdk_window_get_toplevel (GdkWindow *window);
|
|
|
|
GList* gdk_window_get_children (GdkWindow *window);
|
|
|
|
GdkEventMask gdk_window_get_events (GdkWindow *window);
|
|
|
|
void gdk_window_set_events (GdkWindow *window,
|
|
|
|
GdkEventMask event_mask);
|
|
|
|
|
|
|
|
void gdk_window_set_icon (GdkWindow *window,
|
|
|
|
GdkWindow *icon_window,
|
|
|
|
GdkPixmap *pixmap,
|
|
|
|
GdkBitmap *mask);
|
|
|
|
void gdk_window_set_icon_name (GdkWindow *window,
|
|
|
|
gchar *name);
|
|
|
|
void gdk_window_set_group (GdkWindow *window,
|
|
|
|
GdkWindow *leader);
|
|
|
|
void gdk_window_set_decorations (GdkWindow *window,
|
1998-02-27 03:55:33 +00:00
|
|
|
GdkWMDecoration decorations);
|
1998-02-28 14:35:55 +00:00
|
|
|
void gdk_window_set_functions (GdkWindow *window,
|
|
|
|
GdkWMFunction functions);
|
1998-05-01 16:15:39 +00:00
|
|
|
GList * gdk_window_get_toplevels (void);
|
|
|
|
|
Added a modular client-message-filter mechanism, that is used for the DND
Sun Oct 18 18:16:39 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdk.c gdkprivate.h: Added a modular client-message-filter
mechanism, that is used for the DND messages.
Removed all the old DND code.
* gdk/gdkcolormap.c gdk/gdkcolormap.h: Add a function to
get the visual of a given colormap.
* gtk/gtkcolorsel.c: Conversion to new DND, drag
a color-swatch.
* gdk/gdk.h gdk/gdkdnd.c: The low-level
X oriented portions of drag and drop protocols.
Sending and receiving client messages, and navigating
window trees.
* gdk/gdkimage.c: added a gdk_flush() when destroying
SHM images to hopefully make it more likely that
X will gracefully handle the segment being destroyed.
* gdk/gdkprivate.h gtk/gtkdebug.h: Add new
DND debugging flags.
* gtk/gtkeditable.[ch]: Updates for the selection handling
changes.
* gtk/gtkselection.[ch]: Added GtkTargetList, a
refcounted data structure for keeping track of lists
of GdkAtom + information. Removed selection_handler_add
in favor of a "drag_data_get" signal.
* gtk/gtkdnd.[ch] gtk/gtk.h: New files - highlevel (event loop
dependent) parts of the DND protocols, display of drag icons,
drag-under highlighting, and the "default handlers".
* gtk/gtkinvisible.[ch]: New widget - InputOnly offscreen
windows that are used for reliable pointer grabs and
selection handling in the DND code.
* gtk/testdnd.c: New test program for new DND. (Old
DND tests in testgtk still need to be converted.)
* gtk/testselection.c: Use the new selection API.
* docs/dnd_internals: Start at describing how
all the new code works inside.
* docs/Changes-1.2.txt: New file describing source-incompatible
changes in GTK+-1.2.
Sat Oct 17 22:50:34 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkwindow.c (gdk_window_remove_filter): Free
the right list node.
* gdk/gdkwindow.c (gdk_window_init): Add gdk_root_parent
to the XID table so we can receive events on it.
Wed Oct 14 12:57:40 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c gdk/gdk.h (gdk_event_get_time): New function
to get the timestamp from a generic event.
Fri Oct 9 13:16:04 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_add_events): Added function
that safely adds additional events to a widget's event
mask, even if the widget has previously been realized.
(We can do this, but not remove events from the event
mask).
Fri Oct 2 17:35:35 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdkproperty.c (gdk_property_get): Allow type == 0,
for AnyPropertyType.
Fri Oct 2 10:32:21 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdkproperty.c (gdk_atom_intern): Add client-local
hashing.
Thu Sep 24 20:33:54 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_event_send_clientmessage_toall): serial
isn't a timestamp.
Thu Sep 17 14:23:03 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_event_translate): Removed printing
of unknown window lookup warnings. (Made it
a GDK_NOTE) - they happen in many circumstances.
1998-10-18 22:51:24 +00:00
|
|
|
void gdk_window_register_dnd (GdkWindow *window);
|
|
|
|
|
1998-08-25 00:06:38 +00:00
|
|
|
void gdk_drawable_set_data (GdkDrawable *drawable,
|
|
|
|
const gchar *key,
|
|
|
|
gpointer data,
|
|
|
|
GDestroyNotify destroy_func);
|
|
|
|
|
1998-02-27 03:55:33 +00:00
|
|
|
|
1997-11-24 22:37:52 +00:00
|
|
|
/* Cursors
|
|
|
|
*/
|
1998-02-28 14:35:55 +00:00
|
|
|
GdkCursor* gdk_cursor_new (GdkCursorType cursor_type);
|
|
|
|
GdkCursor* gdk_cursor_new_from_pixmap (GdkPixmap *source,
|
|
|
|
GdkPixmap *mask,
|
|
|
|
GdkColor *fg,
|
|
|
|
GdkColor *bg,
|
|
|
|
gint x,
|
|
|
|
gint y);
|
|
|
|
void gdk_cursor_destroy (GdkCursor *cursor);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* GCs
|
|
|
|
*/
|
1998-02-28 14:35:55 +00:00
|
|
|
GdkGC* gdk_gc_new (GdkWindow *window);
|
|
|
|
GdkGC* gdk_gc_new_with_values (GdkWindow *window,
|
|
|
|
GdkGCValues *values,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkGCValuesMask values_mask);
|
1998-02-28 14:35:55 +00:00
|
|
|
GdkGC* gdk_gc_ref (GdkGC *gc);
|
|
|
|
void gdk_gc_unref (GdkGC *gc);
|
|
|
|
void gdk_gc_destroy (GdkGC *gc);
|
|
|
|
void gdk_gc_get_values (GdkGC *gc,
|
|
|
|
GdkGCValues *values);
|
|
|
|
void gdk_gc_set_foreground (GdkGC *gc,
|
|
|
|
GdkColor *color);
|
|
|
|
void gdk_gc_set_background (GdkGC *gc,
|
|
|
|
GdkColor *color);
|
|
|
|
void gdk_gc_set_font (GdkGC *gc,
|
|
|
|
GdkFont *font);
|
|
|
|
void gdk_gc_set_function (GdkGC *gc,
|
|
|
|
GdkFunction function);
|
|
|
|
void gdk_gc_set_fill (GdkGC *gc,
|
|
|
|
GdkFill fill);
|
|
|
|
void gdk_gc_set_tile (GdkGC *gc,
|
|
|
|
GdkPixmap *tile);
|
|
|
|
void gdk_gc_set_stipple (GdkGC *gc,
|
|
|
|
GdkPixmap *stipple);
|
|
|
|
void gdk_gc_set_ts_origin (GdkGC *gc,
|
|
|
|
gint x,
|
|
|
|
gint y);
|
|
|
|
void gdk_gc_set_clip_origin (GdkGC *gc,
|
|
|
|
gint x,
|
|
|
|
gint y);
|
|
|
|
void gdk_gc_set_clip_mask (GdkGC *gc,
|
|
|
|
GdkBitmap *mask);
|
|
|
|
void gdk_gc_set_clip_rectangle (GdkGC *gc,
|
|
|
|
GdkRectangle *rectangle);
|
|
|
|
void gdk_gc_set_clip_region (GdkGC *gc,
|
|
|
|
GdkRegion *region);
|
|
|
|
void gdk_gc_set_subwindow (GdkGC *gc,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkSubwindowMode mode);
|
1998-02-28 14:35:55 +00:00
|
|
|
void gdk_gc_set_exposures (GdkGC *gc,
|
|
|
|
gint exposures);
|
|
|
|
void gdk_gc_set_line_attributes (GdkGC *gc,
|
|
|
|
gint line_width,
|
|
|
|
GdkLineStyle line_style,
|
|
|
|
GdkCapStyle cap_style,
|
|
|
|
GdkJoinStyle join_style);
|
1998-05-05 15:00:12 +00:00
|
|
|
void gdk_gc_set_dashes (GdkGC *gc,
|
|
|
|
gint dash_offset,
|
|
|
|
gchar dash_list[],
|
|
|
|
gint n);
|
1998-02-28 14:35:55 +00:00
|
|
|
void gdk_gc_copy (GdkGC *dst_gc,
|
|
|
|
GdkGC *src_gc);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Pixmaps
|
|
|
|
*/
|
1998-02-28 14:35:55 +00:00
|
|
|
GdkPixmap* gdk_pixmap_new (GdkWindow *window,
|
|
|
|
gint width,
|
|
|
|
gint height,
|
|
|
|
gint depth);
|
1998-11-24 16:15:46 +00:00
|
|
|
GdkBitmap* gdk_bitmap_create_from_data (GdkWindow *window,
|
|
|
|
const gchar *data,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
GdkPixmap* gdk_pixmap_create_from_data (GdkWindow *window,
|
|
|
|
const gchar *data,
|
|
|
|
gint width,
|
|
|
|
gint height,
|
|
|
|
gint depth,
|
|
|
|
GdkColor *fg,
|
|
|
|
GdkColor *bg);
|
1998-02-28 14:35:55 +00:00
|
|
|
GdkPixmap* gdk_pixmap_create_from_xpm (GdkWindow *window,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkBitmap **mask,
|
|
|
|
GdkColor *transparent_color,
|
|
|
|
const gchar *filename);
|
1998-03-08 21:47:14 +00:00
|
|
|
GdkPixmap* gdk_pixmap_colormap_create_from_xpm
|
|
|
|
(GdkWindow *window,
|
|
|
|
GdkColormap *colormap,
|
|
|
|
GdkBitmap **mask,
|
|
|
|
GdkColor *transparent_color,
|
|
|
|
const gchar *filename);
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkPixmap* gdk_pixmap_create_from_xpm_d (GdkWindow *window,
|
|
|
|
GdkBitmap **mask,
|
|
|
|
GdkColor *transparent_color,
|
1998-02-28 14:35:55 +00:00
|
|
|
gchar **data);
|
1998-03-08 21:47:14 +00:00
|
|
|
GdkPixmap* gdk_pixmap_colormap_create_from_xpm_d
|
|
|
|
(GdkWindow *window,
|
|
|
|
GdkColormap *colormap,
|
|
|
|
GdkBitmap **mask,
|
|
|
|
GdkColor *transparent_color,
|
|
|
|
gchar **data);
|
1998-02-28 14:35:55 +00:00
|
|
|
GdkPixmap *gdk_pixmap_ref (GdkPixmap *pixmap);
|
|
|
|
void gdk_pixmap_unref (GdkPixmap *pixmap);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
1998-02-28 14:35:55 +00:00
|
|
|
GdkBitmap *gdk_bitmap_ref (GdkBitmap *pixmap);
|
|
|
|
void gdk_bitmap_unref (GdkBitmap *pixmap);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Images
|
|
|
|
*/
|
1998-09-20 13:35:24 +00:00
|
|
|
GdkImage* gdk_image_new_bitmap(GdkVisual *visual,
|
|
|
|
gpointer data,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkImage* gdk_image_new (GdkImageType type,
|
|
|
|
GdkVisual *visual,
|
1998-02-28 14:35:55 +00:00
|
|
|
gint width,
|
|
|
|
gint height);
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkImage* gdk_image_get (GdkWindow *window,
|
1998-02-28 14:35:55 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gdk_image_put_pixel (GdkImage *image,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
guint32 pixel);
|
|
|
|
guint32 gdk_image_get_pixel (GdkImage *image,
|
|
|
|
gint x,
|
|
|
|
gint y);
|
|
|
|
void gdk_image_destroy (GdkImage *image);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Color
|
|
|
|
*/
|
1998-02-28 14:35:55 +00:00
|
|
|
GdkColormap* gdk_colormap_new (GdkVisual *visual,
|
|
|
|
gint allocate);
|
|
|
|
GdkColormap* gdk_colormap_ref (GdkColormap *cmap);
|
|
|
|
void gdk_colormap_unref (GdkColormap *cmap);
|
|
|
|
|
|
|
|
GdkColormap* gdk_colormap_get_system (void);
|
|
|
|
gint gdk_colormap_get_system_size (void);
|
|
|
|
|
|
|
|
void gdk_colormap_change (GdkColormap *colormap,
|
|
|
|
gint ncolors);
|
1998-08-25 00:06:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
gint gdk_colormap_alloc_colors (GdkColormap *colormap,
|
|
|
|
GdkColor *colors,
|
|
|
|
gint ncolors,
|
|
|
|
gboolean writeable,
|
|
|
|
gboolean best_match,
|
|
|
|
gboolean *success);
|
|
|
|
gboolean gdk_colormap_alloc_color (GdkColormap *colormap,
|
|
|
|
GdkColor *color,
|
|
|
|
gboolean writeable,
|
|
|
|
gboolean best_match);
|
|
|
|
void gdk_colormap_free_colors (GdkColormap *colormap,
|
|
|
|
GdkColor *colors,
|
|
|
|
gint ncolors);
|
1998-06-07 12:00:55 +00:00
|
|
|
|
Added a modular client-message-filter mechanism, that is used for the DND
Sun Oct 18 18:16:39 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdk.c gdkprivate.h: Added a modular client-message-filter
mechanism, that is used for the DND messages.
Removed all the old DND code.
* gdk/gdkcolormap.c gdk/gdkcolormap.h: Add a function to
get the visual of a given colormap.
* gtk/gtkcolorsel.c: Conversion to new DND, drag
a color-swatch.
* gdk/gdk.h gdk/gdkdnd.c: The low-level
X oriented portions of drag and drop protocols.
Sending and receiving client messages, and navigating
window trees.
* gdk/gdkimage.c: added a gdk_flush() when destroying
SHM images to hopefully make it more likely that
X will gracefully handle the segment being destroyed.
* gdk/gdkprivate.h gtk/gtkdebug.h: Add new
DND debugging flags.
* gtk/gtkeditable.[ch]: Updates for the selection handling
changes.
* gtk/gtkselection.[ch]: Added GtkTargetList, a
refcounted data structure for keeping track of lists
of GdkAtom + information. Removed selection_handler_add
in favor of a "drag_data_get" signal.
* gtk/gtkdnd.[ch] gtk/gtk.h: New files - highlevel (event loop
dependent) parts of the DND protocols, display of drag icons,
drag-under highlighting, and the "default handlers".
* gtk/gtkinvisible.[ch]: New widget - InputOnly offscreen
windows that are used for reliable pointer grabs and
selection handling in the DND code.
* gtk/testdnd.c: New test program for new DND. (Old
DND tests in testgtk still need to be converted.)
* gtk/testselection.c: Use the new selection API.
* docs/dnd_internals: Start at describing how
all the new code works inside.
* docs/Changes-1.2.txt: New file describing source-incompatible
changes in GTK+-1.2.
Sat Oct 17 22:50:34 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkwindow.c (gdk_window_remove_filter): Free
the right list node.
* gdk/gdkwindow.c (gdk_window_init): Add gdk_root_parent
to the XID table so we can receive events on it.
Wed Oct 14 12:57:40 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c gdk/gdk.h (gdk_event_get_time): New function
to get the timestamp from a generic event.
Fri Oct 9 13:16:04 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_add_events): Added function
that safely adds additional events to a widget's event
mask, even if the widget has previously been realized.
(We can do this, but not remove events from the event
mask).
Fri Oct 2 17:35:35 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdkproperty.c (gdk_property_get): Allow type == 0,
for AnyPropertyType.
Fri Oct 2 10:32:21 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdkproperty.c (gdk_atom_intern): Add client-local
hashing.
Thu Sep 24 20:33:54 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_event_send_clientmessage_toall): serial
isn't a timestamp.
Thu Sep 17 14:23:03 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_event_translate): Removed printing
of unknown window lookup warnings. (Made it
a GDK_NOTE) - they happen in many circumstances.
1998-10-18 22:51:24 +00:00
|
|
|
GdkVisual *gdk_colormap_get_visual (GdkColormap *colormap);
|
|
|
|
|
1998-06-07 12:00:55 +00:00
|
|
|
GdkColor *gdk_color_copy (GdkColor *color);
|
|
|
|
void gdk_color_free (GdkColor *color);
|
|
|
|
|
Added a modular client-message-filter mechanism, that is used for the DND
Sun Oct 18 18:16:39 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdk.c gdkprivate.h: Added a modular client-message-filter
mechanism, that is used for the DND messages.
Removed all the old DND code.
* gdk/gdkcolormap.c gdk/gdkcolormap.h: Add a function to
get the visual of a given colormap.
* gtk/gtkcolorsel.c: Conversion to new DND, drag
a color-swatch.
* gdk/gdk.h gdk/gdkdnd.c: The low-level
X oriented portions of drag and drop protocols.
Sending and receiving client messages, and navigating
window trees.
* gdk/gdkimage.c: added a gdk_flush() when destroying
SHM images to hopefully make it more likely that
X will gracefully handle the segment being destroyed.
* gdk/gdkprivate.h gtk/gtkdebug.h: Add new
DND debugging flags.
* gtk/gtkeditable.[ch]: Updates for the selection handling
changes.
* gtk/gtkselection.[ch]: Added GtkTargetList, a
refcounted data structure for keeping track of lists
of GdkAtom + information. Removed selection_handler_add
in favor of a "drag_data_get" signal.
* gtk/gtkdnd.[ch] gtk/gtk.h: New files - highlevel (event loop
dependent) parts of the DND protocols, display of drag icons,
drag-under highlighting, and the "default handlers".
* gtk/gtkinvisible.[ch]: New widget - InputOnly offscreen
windows that are used for reliable pointer grabs and
selection handling in the DND code.
* gtk/testdnd.c: New test program for new DND. (Old
DND tests in testgtk still need to be converted.)
* gtk/testselection.c: Use the new selection API.
* docs/dnd_internals: Start at describing how
all the new code works inside.
* docs/Changes-1.2.txt: New file describing source-incompatible
changes in GTK+-1.2.
Sat Oct 17 22:50:34 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkwindow.c (gdk_window_remove_filter): Free
the right list node.
* gdk/gdkwindow.c (gdk_window_init): Add gdk_root_parent
to the XID table so we can receive events on it.
Wed Oct 14 12:57:40 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c gdk/gdk.h (gdk_event_get_time): New function
to get the timestamp from a generic event.
Fri Oct 9 13:16:04 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_add_events): Added function
that safely adds additional events to a widget's event
mask, even if the widget has previously been realized.
(We can do this, but not remove events from the event
mask).
Fri Oct 2 17:35:35 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdkproperty.c (gdk_property_get): Allow type == 0,
for AnyPropertyType.
Fri Oct 2 10:32:21 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdkproperty.c (gdk_atom_intern): Add client-local
hashing.
Thu Sep 24 20:33:54 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_event_send_clientmessage_toall): serial
isn't a timestamp.
Thu Sep 17 14:23:03 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_event_translate): Removed printing
of unknown window lookup warnings. (Made it
a GDK_NOTE) - they happen in many circumstances.
1998-10-18 22:51:24 +00:00
|
|
|
gint gdk_color_parse (const gchar *spec,
|
|
|
|
GdkColor *color);
|
|
|
|
guint gdk_color_hash (const GdkColor *colora,
|
|
|
|
const GdkColor *colorb);
|
|
|
|
gint gdk_color_equal (const GdkColor *colora,
|
|
|
|
const GdkColor *colorb);
|
|
|
|
|
|
|
|
|
|
|
|
/* The following functions are deprecated */
|
|
|
|
void gdk_colors_store (GdkColormap *colormap,
|
|
|
|
GdkColor *colors,
|
|
|
|
gint ncolors);
|
1998-02-28 14:35:55 +00:00
|
|
|
gint gdk_colors_alloc (GdkColormap *colormap,
|
|
|
|
gint contiguous,
|
|
|
|
gulong *planes,
|
|
|
|
gint nplanes,
|
|
|
|
gulong *pixels,
|
|
|
|
gint npixels);
|
|
|
|
void gdk_colors_free (GdkColormap *colormap,
|
|
|
|
gulong *pixels,
|
|
|
|
gint npixels,
|
|
|
|
gulong planes);
|
|
|
|
gint gdk_color_white (GdkColormap *colormap,
|
|
|
|
GdkColor *color);
|
|
|
|
gint gdk_color_black (GdkColormap *colormap,
|
|
|
|
GdkColor *color);
|
|
|
|
gint gdk_color_alloc (GdkColormap *colormap,
|
|
|
|
GdkColor *color);
|
|
|
|
gint gdk_color_change (GdkColormap *colormap,
|
|
|
|
GdkColor *color);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Fonts
|
|
|
|
*/
|
1998-02-28 14:35:55 +00:00
|
|
|
GdkFont* gdk_font_load (const gchar *font_name);
|
1998-06-25 09:01:42 +00:00
|
|
|
GdkFont* gdk_fontset_load (gchar *fontset_name);
|
|
|
|
GdkFont* gdk_font_ref (GdkFont *font);
|
|
|
|
void gdk_font_unref (GdkFont *font);
|
1998-06-09 23:18:11 +00:00
|
|
|
gint gdk_font_id (const GdkFont *font);
|
|
|
|
gint gdk_font_equal (const GdkFont *fonta,
|
|
|
|
const GdkFont *fontb);
|
1998-06-25 09:01:42 +00:00
|
|
|
gint gdk_string_width (GdkFont *font,
|
1997-11-24 22:37:52 +00:00
|
|
|
const gchar *string);
|
1998-06-25 09:01:42 +00:00
|
|
|
gint gdk_text_width (GdkFont *font,
|
1997-11-24 22:37:52 +00:00
|
|
|
const gchar *text,
|
1998-06-25 09:01:42 +00:00
|
|
|
gint text_length);
|
Destroy widgets _after_ propagating unrealize signals through the widget
Mon Dec 7 10:27:09 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c: Destroy widgets _after_ propagating unrealize
signals through the widget heirarchy. This is unpleasant, as it
causes more X traffic, but is necessary, because we have to clean
up our Input Contexts before destroying the X windows.
(from matsu-981109-0.patch)
Mon Dec 7 10:18:18 1998 Owen Taylor <otaylor@redhat.com>
Applied gtk-a-higuti-981202-0 :
[ a-higuti@math.sci.hokudai.ac.jp (Akira Higuchi) ]
* gdk/gdk.h gdk/gdk.c
(gdk_mbstowcs): New function. Nearly equals to mbstowcs, but
implemented by a combination of Xlib functions, so
it works even with X_LOCALE.
(gdk_wcstombs): New function.
(g_mbtowc): Removed. No longer needed.
* gdk/gdk.h gdk/gdkfont.c gdk/gdkdraw.c:
Added _wc() variants to gdk_text_width(),
gdk_char_width(), gdk_draw_text(),
* gdk/gdki18n.h
(mblen, mbtowc, wctomb, mbstowcs, wcstombs,
wcslen, wcscpy, wcsncpy):
Removed. No longer needed.
(iswalnum): Removed.
(gdk_iswalnum): New macro.
(gdk_iswspace): New macro.
* gdk/gdktype.h
(GdkWChar): New typedef.
* gtk/gtkentry.h, gtk/gtkentry.c
There are many changes according to the change of the
internal representation of text, from multibyte string
to wide characters.
* gtk/gtkprivate.h, gtk/gtkmain.c
Removed the variable gtk_use_mb and related codes.
* gtk/gtkspinbutton.c
Some changes according to the change of type of entry->text.
* gtk/gtktext.h, gtk/gtktext.c
Changed the internal representation of text. We use GdkWchar
if a fontset is supplied. If not, we use guchar to save
memory.
1998-12-09 06:36:57 +00:00
|
|
|
gint gdk_text_width_wc (GdkFont *font,
|
|
|
|
const GdkWChar *text,
|
|
|
|
gint text_length);
|
1998-06-25 09:01:42 +00:00
|
|
|
gint gdk_char_width (GdkFont *font,
|
|
|
|
gchar character);
|
Destroy widgets _after_ propagating unrealize signals through the widget
Mon Dec 7 10:27:09 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c: Destroy widgets _after_ propagating unrealize
signals through the widget heirarchy. This is unpleasant, as it
causes more X traffic, but is necessary, because we have to clean
up our Input Contexts before destroying the X windows.
(from matsu-981109-0.patch)
Mon Dec 7 10:18:18 1998 Owen Taylor <otaylor@redhat.com>
Applied gtk-a-higuti-981202-0 :
[ a-higuti@math.sci.hokudai.ac.jp (Akira Higuchi) ]
* gdk/gdk.h gdk/gdk.c
(gdk_mbstowcs): New function. Nearly equals to mbstowcs, but
implemented by a combination of Xlib functions, so
it works even with X_LOCALE.
(gdk_wcstombs): New function.
(g_mbtowc): Removed. No longer needed.
* gdk/gdk.h gdk/gdkfont.c gdk/gdkdraw.c:
Added _wc() variants to gdk_text_width(),
gdk_char_width(), gdk_draw_text(),
* gdk/gdki18n.h
(mblen, mbtowc, wctomb, mbstowcs, wcstombs,
wcslen, wcscpy, wcsncpy):
Removed. No longer needed.
(iswalnum): Removed.
(gdk_iswalnum): New macro.
(gdk_iswspace): New macro.
* gdk/gdktype.h
(GdkWChar): New typedef.
* gtk/gtkentry.h, gtk/gtkentry.c
There are many changes according to the change of the
internal representation of text, from multibyte string
to wide characters.
* gtk/gtkprivate.h, gtk/gtkmain.c
Removed the variable gtk_use_mb and related codes.
* gtk/gtkspinbutton.c
Some changes according to the change of type of entry->text.
* gtk/gtktext.h, gtk/gtktext.c
Changed the internal representation of text. We use GdkWchar
if a fontset is supplied. If not, we use guchar to save
memory.
1998-12-09 06:36:57 +00:00
|
|
|
gint gdk_char_width_wc (GdkFont *font,
|
|
|
|
GdkWChar character);
|
1998-06-25 09:01:42 +00:00
|
|
|
gint gdk_string_measure (GdkFont *font,
|
1998-02-28 14:35:55 +00:00
|
|
|
const gchar *string);
|
1998-06-25 09:01:42 +00:00
|
|
|
gint gdk_text_measure (GdkFont *font,
|
1998-02-28 14:35:55 +00:00
|
|
|
const gchar *text,
|
1998-06-25 09:01:42 +00:00
|
|
|
gint text_length);
|
|
|
|
gint gdk_char_measure (GdkFont *font,
|
|
|
|
gchar character);
|
|
|
|
gint gdk_string_height (GdkFont *font,
|
|
|
|
const gchar *string);
|
|
|
|
gint gdk_text_height (GdkFont *font,
|
|
|
|
const gchar *text,
|
|
|
|
gint text_length);
|
|
|
|
gint gdk_char_height (GdkFont *font,
|
|
|
|
gchar character);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
Added gdk_text/string_extents() - too calculate all the metrics at once of
Tue Jul 21 12:42:01 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.h gdk/gdkfont.c: Added gdk_text/string_extents() -
too calculate all the metrics at once of a string, including
things which weren't calculated before.
* gtk/Makefile.am gtk/gtk.h gtk/gtktearoffmenu.[ch]: New
MenuItem type, that when put as the first thing in a
menu, makes the menu tearoff. Currently drawn as a
dashed line.
* gtk/gtkmenuitem.h gtk/gtkcheckmenuitem.c: Added a flag
"hide_on_activate" to the MenuItem class structure to allow
check and radio buttons to be changed with <Space> without
hiding the menu.
* gtk/gtkaccellabel.[ch]: Added new capabilities to set
a underline_group and underline_mods for the label -
accelerators added in the underline group matching
underline_mods will be displayed as an underline character.
This doesn't work - Save As needs to be underlined
as Save _As.
* gtk/gtkitemfactory.c:
- Create a AccelGroup for each MenuShell we create.
- If an '&' appears before a character 'c' in the path,
then make 'c' an accelerator in the menu's accel group,
and if the menuitem is menubar <alt>C an accelerator
in the itemfactory's accel group.
* gtk/gtklabel.[ch]: Add support for a pattern arg -
which is a string. If an '_' appears in this string,
the corresponding position in the label is underlined.
Add gtk_label_parse_uline() convenience function which
takes a string with embedded underlines, sets the
pattern and label, and returns the accelerator keyval.
* gtk/gtkmenu.[ch]: Make menus no longer a toplevel widget.
Instead, they create a GtkWindow and add themselves
to that. (When torn off, another new feature, they
create another GtkWindow to hold the torn off menu)
New function gtk_menu_set_tearoff_state()
* gtk/gtkenums.h gtk/gtkmenushell.[ch] gtk/gtkenums.h:
Added action signals for keyboard navigation of menus.
* gtk/gtkmenushell.c: Key press handler which activates
bindings for navigation, and accelerators, for handling
underline accelerators. Exported functions to select
and activate menu items in a menushell.
* gtk/testgtk.c: Added a new "Item Factory" test which
tests GtkItemFactory and the new keyboard navigation
of menus.
1998-08-12 16:49:13 +00:00
|
|
|
void gdk_text_extents (GdkFont *font,
|
|
|
|
const gchar *text,
|
|
|
|
gint text_length,
|
|
|
|
gint *lbearing,
|
|
|
|
gint *rbearing,
|
|
|
|
gint *width,
|
|
|
|
gint *ascent,
|
|
|
|
gint *descent);
|
1998-12-15 20:31:26 +00:00
|
|
|
void gdk_text_extents_wc (GdkFont *font,
|
|
|
|
const GdkWChar *text,
|
|
|
|
gint text_length,
|
|
|
|
gint *lbearing,
|
|
|
|
gint *rbearing,
|
|
|
|
gint *width,
|
|
|
|
gint *ascent,
|
|
|
|
gint *descent);
|
Added gdk_text/string_extents() - too calculate all the metrics at once of
Tue Jul 21 12:42:01 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.h gdk/gdkfont.c: Added gdk_text/string_extents() -
too calculate all the metrics at once of a string, including
things which weren't calculated before.
* gtk/Makefile.am gtk/gtk.h gtk/gtktearoffmenu.[ch]: New
MenuItem type, that when put as the first thing in a
menu, makes the menu tearoff. Currently drawn as a
dashed line.
* gtk/gtkmenuitem.h gtk/gtkcheckmenuitem.c: Added a flag
"hide_on_activate" to the MenuItem class structure to allow
check and radio buttons to be changed with <Space> without
hiding the menu.
* gtk/gtkaccellabel.[ch]: Added new capabilities to set
a underline_group and underline_mods for the label -
accelerators added in the underline group matching
underline_mods will be displayed as an underline character.
This doesn't work - Save As needs to be underlined
as Save _As.
* gtk/gtkitemfactory.c:
- Create a AccelGroup for each MenuShell we create.
- If an '&' appears before a character 'c' in the path,
then make 'c' an accelerator in the menu's accel group,
and if the menuitem is menubar <alt>C an accelerator
in the itemfactory's accel group.
* gtk/gtklabel.[ch]: Add support for a pattern arg -
which is a string. If an '_' appears in this string,
the corresponding position in the label is underlined.
Add gtk_label_parse_uline() convenience function which
takes a string with embedded underlines, sets the
pattern and label, and returns the accelerator keyval.
* gtk/gtkmenu.[ch]: Make menus no longer a toplevel widget.
Instead, they create a GtkWindow and add themselves
to that. (When torn off, another new feature, they
create another GtkWindow to hold the torn off menu)
New function gtk_menu_set_tearoff_state()
* gtk/gtkenums.h gtk/gtkmenushell.[ch] gtk/gtkenums.h:
Added action signals for keyboard navigation of menus.
* gtk/gtkmenushell.c: Key press handler which activates
bindings for navigation, and accelerators, for handling
underline accelerators. Exported functions to select
and activate menu items in a menushell.
* gtk/testgtk.c: Added a new "Item Factory" test which
tests GtkItemFactory and the new keyboard navigation
of menus.
1998-08-12 16:49:13 +00:00
|
|
|
void gdk_string_extents (GdkFont *font,
|
|
|
|
const gchar *string,
|
|
|
|
gint *lbearing,
|
|
|
|
gint *rbearing,
|
|
|
|
gint *width,
|
|
|
|
gint *ascent,
|
|
|
|
gint *descent);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
|
|
/* Drawing
|
|
|
|
*/
|
1998-02-28 14:35:55 +00:00
|
|
|
void gdk_draw_point (GdkDrawable *drawable,
|
|
|
|
GdkGC *gc,
|
|
|
|
gint x,
|
|
|
|
gint y);
|
|
|
|
void gdk_draw_line (GdkDrawable *drawable,
|
|
|
|
GdkGC *gc,
|
|
|
|
gint x1,
|
|
|
|
gint y1,
|
|
|
|
gint x2,
|
|
|
|
gint y2);
|
|
|
|
void gdk_draw_rectangle (GdkDrawable *drawable,
|
|
|
|
GdkGC *gc,
|
|
|
|
gint filled,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gdk_draw_arc (GdkDrawable *drawable,
|
|
|
|
GdkGC *gc,
|
|
|
|
gint filled,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height,
|
|
|
|
gint angle1,
|
|
|
|
gint angle2);
|
|
|
|
void gdk_draw_polygon (GdkDrawable *drawable,
|
|
|
|
GdkGC *gc,
|
|
|
|
gint filled,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkPoint *points,
|
1998-02-28 14:35:55 +00:00
|
|
|
gint npoints);
|
|
|
|
void gdk_draw_string (GdkDrawable *drawable,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkFont *font,
|
1998-02-28 14:35:55 +00:00
|
|
|
GdkGC *gc,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
Destroy widgets _after_ propagating unrealize signals through the widget
Mon Dec 7 10:27:09 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c: Destroy widgets _after_ propagating unrealize
signals through the widget heirarchy. This is unpleasant, as it
causes more X traffic, but is necessary, because we have to clean
up our Input Contexts before destroying the X windows.
(from matsu-981109-0.patch)
Mon Dec 7 10:18:18 1998 Owen Taylor <otaylor@redhat.com>
Applied gtk-a-higuti-981202-0 :
[ a-higuti@math.sci.hokudai.ac.jp (Akira Higuchi) ]
* gdk/gdk.h gdk/gdk.c
(gdk_mbstowcs): New function. Nearly equals to mbstowcs, but
implemented by a combination of Xlib functions, so
it works even with X_LOCALE.
(gdk_wcstombs): New function.
(g_mbtowc): Removed. No longer needed.
* gdk/gdk.h gdk/gdkfont.c gdk/gdkdraw.c:
Added _wc() variants to gdk_text_width(),
gdk_char_width(), gdk_draw_text(),
* gdk/gdki18n.h
(mblen, mbtowc, wctomb, mbstowcs, wcstombs,
wcslen, wcscpy, wcsncpy):
Removed. No longer needed.
(iswalnum): Removed.
(gdk_iswalnum): New macro.
(gdk_iswspace): New macro.
* gdk/gdktype.h
(GdkWChar): New typedef.
* gtk/gtkentry.h, gtk/gtkentry.c
There are many changes according to the change of the
internal representation of text, from multibyte string
to wide characters.
* gtk/gtkprivate.h, gtk/gtkmain.c
Removed the variable gtk_use_mb and related codes.
* gtk/gtkspinbutton.c
Some changes according to the change of type of entry->text.
* gtk/gtktext.h, gtk/gtktext.c
Changed the internal representation of text. We use GdkWchar
if a fontset is supplied. If not, we use guchar to save
memory.
1998-12-09 06:36:57 +00:00
|
|
|
const gchar *string);
|
1998-02-28 14:35:55 +00:00
|
|
|
void gdk_draw_text (GdkDrawable *drawable,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkFont *font,
|
1998-02-28 14:35:55 +00:00
|
|
|
GdkGC *gc,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
Destroy widgets _after_ propagating unrealize signals through the widget
Mon Dec 7 10:27:09 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c: Destroy widgets _after_ propagating unrealize
signals through the widget heirarchy. This is unpleasant, as it
causes more X traffic, but is necessary, because we have to clean
up our Input Contexts before destroying the X windows.
(from matsu-981109-0.patch)
Mon Dec 7 10:18:18 1998 Owen Taylor <otaylor@redhat.com>
Applied gtk-a-higuti-981202-0 :
[ a-higuti@math.sci.hokudai.ac.jp (Akira Higuchi) ]
* gdk/gdk.h gdk/gdk.c
(gdk_mbstowcs): New function. Nearly equals to mbstowcs, but
implemented by a combination of Xlib functions, so
it works even with X_LOCALE.
(gdk_wcstombs): New function.
(g_mbtowc): Removed. No longer needed.
* gdk/gdk.h gdk/gdkfont.c gdk/gdkdraw.c:
Added _wc() variants to gdk_text_width(),
gdk_char_width(), gdk_draw_text(),
* gdk/gdki18n.h
(mblen, mbtowc, wctomb, mbstowcs, wcstombs,
wcslen, wcscpy, wcsncpy):
Removed. No longer needed.
(iswalnum): Removed.
(gdk_iswalnum): New macro.
(gdk_iswspace): New macro.
* gdk/gdktype.h
(GdkWChar): New typedef.
* gtk/gtkentry.h, gtk/gtkentry.c
There are many changes according to the change of the
internal representation of text, from multibyte string
to wide characters.
* gtk/gtkprivate.h, gtk/gtkmain.c
Removed the variable gtk_use_mb and related codes.
* gtk/gtkspinbutton.c
Some changes according to the change of type of entry->text.
* gtk/gtktext.h, gtk/gtktext.c
Changed the internal representation of text. We use GdkWchar
if a fontset is supplied. If not, we use guchar to save
memory.
1998-12-09 06:36:57 +00:00
|
|
|
const gchar *text,
|
1998-02-28 14:35:55 +00:00
|
|
|
gint text_length);
|
Destroy widgets _after_ propagating unrealize signals through the widget
Mon Dec 7 10:27:09 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c: Destroy widgets _after_ propagating unrealize
signals through the widget heirarchy. This is unpleasant, as it
causes more X traffic, but is necessary, because we have to clean
up our Input Contexts before destroying the X windows.
(from matsu-981109-0.patch)
Mon Dec 7 10:18:18 1998 Owen Taylor <otaylor@redhat.com>
Applied gtk-a-higuti-981202-0 :
[ a-higuti@math.sci.hokudai.ac.jp (Akira Higuchi) ]
* gdk/gdk.h gdk/gdk.c
(gdk_mbstowcs): New function. Nearly equals to mbstowcs, but
implemented by a combination of Xlib functions, so
it works even with X_LOCALE.
(gdk_wcstombs): New function.
(g_mbtowc): Removed. No longer needed.
* gdk/gdk.h gdk/gdkfont.c gdk/gdkdraw.c:
Added _wc() variants to gdk_text_width(),
gdk_char_width(), gdk_draw_text(),
* gdk/gdki18n.h
(mblen, mbtowc, wctomb, mbstowcs, wcstombs,
wcslen, wcscpy, wcsncpy):
Removed. No longer needed.
(iswalnum): Removed.
(gdk_iswalnum): New macro.
(gdk_iswspace): New macro.
* gdk/gdktype.h
(GdkWChar): New typedef.
* gtk/gtkentry.h, gtk/gtkentry.c
There are many changes according to the change of the
internal representation of text, from multibyte string
to wide characters.
* gtk/gtkprivate.h, gtk/gtkmain.c
Removed the variable gtk_use_mb and related codes.
* gtk/gtkspinbutton.c
Some changes according to the change of type of entry->text.
* gtk/gtktext.h, gtk/gtktext.c
Changed the internal representation of text. We use GdkWchar
if a fontset is supplied. If not, we use guchar to save
memory.
1998-12-09 06:36:57 +00:00
|
|
|
void gdk_draw_text_wc (GdkDrawable *drawable,
|
|
|
|
GdkFont *font,
|
|
|
|
GdkGC *gc,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
const GdkWChar *text,
|
|
|
|
gint text_length);
|
1998-02-28 14:35:55 +00:00
|
|
|
void gdk_draw_pixmap (GdkDrawable *drawable,
|
|
|
|
GdkGC *gc,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkDrawable *src,
|
1998-02-28 14:35:55 +00:00
|
|
|
gint xsrc,
|
|
|
|
gint ysrc,
|
|
|
|
gint xdest,
|
|
|
|
gint ydest,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gdk_draw_bitmap (GdkDrawable *drawable,
|
|
|
|
GdkGC *gc,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkDrawable *src,
|
1998-02-28 14:35:55 +00:00
|
|
|
gint xsrc,
|
|
|
|
gint ysrc,
|
|
|
|
gint xdest,
|
|
|
|
gint ydest,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gdk_draw_image (GdkDrawable *drawable,
|
|
|
|
GdkGC *gc,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkImage *image,
|
1998-02-28 14:35:55 +00:00
|
|
|
gint xsrc,
|
|
|
|
gint ysrc,
|
|
|
|
gint xdest,
|
|
|
|
gint ydest,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gdk_draw_points (GdkDrawable *drawable,
|
|
|
|
GdkGC *gc,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkPoint *points,
|
1998-02-28 14:35:55 +00:00
|
|
|
gint npoints);
|
|
|
|
void gdk_draw_segments (GdkDrawable *drawable,
|
|
|
|
GdkGC *gc,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkSegment *segs,
|
1998-02-28 14:35:55 +00:00
|
|
|
gint nsegs);
|
1998-03-02 00:32:52 +00:00
|
|
|
void gdk_draw_lines (GdkDrawable *drawable,
|
|
|
|
GdkGC *gc,
|
|
|
|
GdkPoint *points,
|
|
|
|
gint npoints);
|
|
|
|
|
|
|
|
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Selections
|
|
|
|
*/
|
1998-02-28 14:35:55 +00:00
|
|
|
gint gdk_selection_owner_set (GdkWindow *owner,
|
|
|
|
GdkAtom selection,
|
|
|
|
guint32 time,
|
|
|
|
gint send_event);
|
|
|
|
GdkWindow* gdk_selection_owner_get (GdkAtom selection);
|
|
|
|
void gdk_selection_convert (GdkWindow *requestor,
|
|
|
|
GdkAtom selection,
|
|
|
|
GdkAtom target,
|
|
|
|
guint32 time);
|
|
|
|
gint gdk_selection_property_get (GdkWindow *requestor,
|
|
|
|
guchar **data,
|
|
|
|
GdkAtom *prop_type,
|
|
|
|
gint *prop_format);
|
|
|
|
void gdk_selection_send_notify (guint32 requestor,
|
|
|
|
GdkAtom selection,
|
|
|
|
GdkAtom target,
|
|
|
|
GdkAtom property,
|
|
|
|
guint32 time);
|
|
|
|
|
|
|
|
gint gdk_text_property_to_text_list (GdkAtom encoding, gint format,
|
|
|
|
guchar *text, gint length,
|
1997-11-27 04:16:39 +00:00
|
|
|
gchar ***list);
|
1998-02-28 14:35:55 +00:00
|
|
|
void gdk_free_text_list (gchar **list);
|
|
|
|
gint gdk_string_to_compound_text (gchar *str,
|
|
|
|
GdkAtom *encoding, gint *format,
|
|
|
|
guchar **ctext, gint *length);
|
1997-11-27 04:16:39 +00:00
|
|
|
void gdk_free_compound_text (guchar *ctext);
|
|
|
|
|
1997-11-24 22:37:52 +00:00
|
|
|
/* Properties
|
|
|
|
*/
|
1998-02-28 14:35:55 +00:00
|
|
|
GdkAtom gdk_atom_intern (const gchar *atom_name,
|
|
|
|
gint only_if_exists);
|
|
|
|
gchar* gdk_atom_name (GdkAtom atom);
|
|
|
|
gint gdk_property_get (GdkWindow *window,
|
|
|
|
GdkAtom property,
|
|
|
|
GdkAtom type,
|
|
|
|
gulong offset,
|
|
|
|
gulong length,
|
|
|
|
gint pdelete,
|
|
|
|
GdkAtom *actual_property_type,
|
|
|
|
gint *actual_format,
|
|
|
|
gint *actual_length,
|
|
|
|
guchar **data);
|
|
|
|
|
|
|
|
void gdk_property_change (GdkWindow *window,
|
|
|
|
GdkAtom property,
|
|
|
|
GdkAtom type,
|
|
|
|
gint format,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkPropMode mode,
|
1998-02-28 14:35:55 +00:00
|
|
|
guchar *data,
|
|
|
|
gint nelements);
|
|
|
|
void gdk_property_delete (GdkWindow *window,
|
|
|
|
GdkAtom property);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Rectangle utilities
|
|
|
|
*/
|
|
|
|
gint gdk_rectangle_intersect (GdkRectangle *src1,
|
|
|
|
GdkRectangle *src2,
|
|
|
|
GdkRectangle *dest);
|
1998-11-06 22:05:02 +00:00
|
|
|
void gdk_rectangle_union (GdkRectangle *src1,
|
|
|
|
GdkRectangle *src2,
|
|
|
|
GdkRectangle *dest);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
|
|
/* XInput support
|
|
|
|
*/
|
|
|
|
|
|
|
|
void gdk_input_init (void);
|
|
|
|
void gdk_input_exit (void);
|
1998-02-28 14:35:55 +00:00
|
|
|
GList *gdk_input_list_devices (void);
|
|
|
|
void gdk_input_set_extension_events (GdkWindow *window,
|
1997-11-24 22:37:52 +00:00
|
|
|
gint mask,
|
|
|
|
GdkExtensionMode mode);
|
1998-02-28 14:35:55 +00:00
|
|
|
void gdk_input_set_source (guint32 deviceid,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkInputSource source);
|
1998-02-28 14:35:55 +00:00
|
|
|
gint gdk_input_set_mode (guint32 deviceid,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkInputMode mode);
|
1998-02-28 14:35:55 +00:00
|
|
|
void gdk_input_set_axes (guint32 deviceid,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkAxisUse *axes);
|
1998-02-28 14:35:55 +00:00
|
|
|
void gdk_input_set_key (guint32 deviceid,
|
|
|
|
guint index,
|
|
|
|
guint keyval,
|
|
|
|
GdkModifierType modifiers);
|
1997-11-24 22:37:52 +00:00
|
|
|
void gdk_input_window_get_pointer (GdkWindow *window,
|
1998-02-28 14:35:55 +00:00
|
|
|
guint32 deviceid,
|
|
|
|
gdouble *x,
|
|
|
|
gdouble *y,
|
|
|
|
gdouble *pressure,
|
|
|
|
gdouble *xtilt,
|
|
|
|
gdouble *ytilt,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkModifierType *mask);
|
|
|
|
|
|
|
|
GdkTimeCoord *gdk_input_motion_events (GdkWindow *window,
|
|
|
|
guint32 deviceid,
|
|
|
|
guint32 start,
|
|
|
|
guint32 stop,
|
|
|
|
gint *nevents_return);
|
|
|
|
|
1997-11-27 04:16:39 +00:00
|
|
|
/* International Input Method Support Functions
|
|
|
|
*/
|
|
|
|
|
1998-08-25 00:06:38 +00:00
|
|
|
gint gdk_im_ready (void);
|
|
|
|
|
Destroy widgets _after_ propagating unrealize signals through the widget
Mon Dec 7 10:27:09 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c: Destroy widgets _after_ propagating unrealize
signals through the widget heirarchy. This is unpleasant, as it
causes more X traffic, but is necessary, because we have to clean
up our Input Contexts before destroying the X windows.
(from matsu-981109-0.patch)
Mon Dec 7 10:18:18 1998 Owen Taylor <otaylor@redhat.com>
Applied gtk-a-higuti-981202-0 :
[ a-higuti@math.sci.hokudai.ac.jp (Akira Higuchi) ]
* gdk/gdk.h gdk/gdk.c
(gdk_mbstowcs): New function. Nearly equals to mbstowcs, but
implemented by a combination of Xlib functions, so
it works even with X_LOCALE.
(gdk_wcstombs): New function.
(g_mbtowc): Removed. No longer needed.
* gdk/gdk.h gdk/gdkfont.c gdk/gdkdraw.c:
Added _wc() variants to gdk_text_width(),
gdk_char_width(), gdk_draw_text(),
* gdk/gdki18n.h
(mblen, mbtowc, wctomb, mbstowcs, wcstombs,
wcslen, wcscpy, wcsncpy):
Removed. No longer needed.
(iswalnum): Removed.
(gdk_iswalnum): New macro.
(gdk_iswspace): New macro.
* gdk/gdktype.h
(GdkWChar): New typedef.
* gtk/gtkentry.h, gtk/gtkentry.c
There are many changes according to the change of the
internal representation of text, from multibyte string
to wide characters.
* gtk/gtkprivate.h, gtk/gtkmain.c
Removed the variable gtk_use_mb and related codes.
* gtk/gtkspinbutton.c
Some changes according to the change of type of entry->text.
* gtk/gtktext.h, gtk/gtktext.c
Changed the internal representation of text. We use GdkWchar
if a fontset is supplied. If not, we use guchar to save
memory.
1998-12-09 06:36:57 +00:00
|
|
|
void gdk_im_begin (GdkIC *ic,
|
|
|
|
GdkWindow *window);
|
1998-08-25 00:06:38 +00:00
|
|
|
void gdk_im_end (void);
|
Destroy widgets _after_ propagating unrealize signals through the widget
Mon Dec 7 10:27:09 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c: Destroy widgets _after_ propagating unrealize
signals through the widget heirarchy. This is unpleasant, as it
causes more X traffic, but is necessary, because we have to clean
up our Input Contexts before destroying the X windows.
(from matsu-981109-0.patch)
Mon Dec 7 10:18:18 1998 Owen Taylor <otaylor@redhat.com>
Applied gtk-a-higuti-981202-0 :
[ a-higuti@math.sci.hokudai.ac.jp (Akira Higuchi) ]
* gdk/gdk.h gdk/gdk.c
(gdk_mbstowcs): New function. Nearly equals to mbstowcs, but
implemented by a combination of Xlib functions, so
it works even with X_LOCALE.
(gdk_wcstombs): New function.
(g_mbtowc): Removed. No longer needed.
* gdk/gdk.h gdk/gdkfont.c gdk/gdkdraw.c:
Added _wc() variants to gdk_text_width(),
gdk_char_width(), gdk_draw_text(),
* gdk/gdki18n.h
(mblen, mbtowc, wctomb, mbstowcs, wcstombs,
wcslen, wcscpy, wcsncpy):
Removed. No longer needed.
(iswalnum): Removed.
(gdk_iswalnum): New macro.
(gdk_iswspace): New macro.
* gdk/gdktype.h
(GdkWChar): New typedef.
* gtk/gtkentry.h, gtk/gtkentry.c
There are many changes according to the change of the
internal representation of text, from multibyte string
to wide characters.
* gtk/gtkprivate.h, gtk/gtkmain.c
Removed the variable gtk_use_mb and related codes.
* gtk/gtkspinbutton.c
Some changes according to the change of type of entry->text.
* gtk/gtktext.h, gtk/gtktext.c
Changed the internal representation of text. We use GdkWchar
if a fontset is supplied. If not, we use guchar to save
memory.
1998-12-09 06:36:57 +00:00
|
|
|
GdkIMStyle gdk_im_decide_style (GdkIMStyle supported_style);
|
|
|
|
GdkIMStyle gdk_im_set_best_style (GdkIMStyle best_allowed_style);
|
|
|
|
|
|
|
|
GdkIC* gdk_ic_new (GdkICAttr *attr,
|
|
|
|
GdkICAttributesType mask);
|
|
|
|
void gdk_ic_destroy (GdkIC *ic);
|
|
|
|
GdkIMStyle gdk_ic_get_style (GdkIC *ic);
|
|
|
|
GdkEventMask gdk_ic_get_events (GdkIC *ic);
|
|
|
|
|
|
|
|
GdkICAttr* gdk_ic_attr_new (void);
|
|
|
|
void gdk_ic_attr_destroy (GdkICAttr *attr);
|
|
|
|
|
|
|
|
GdkICAttributesType gdk_ic_set_attr (GdkIC *ic,
|
|
|
|
GdkICAttr *attr,
|
|
|
|
GdkICAttributesType mask);
|
|
|
|
GdkICAttributesType gdk_ic_get_attr (GdkIC *ic,
|
|
|
|
GdkICAttr *attr,
|
|
|
|
GdkICAttributesType mask);
|
|
|
|
|
|
|
|
/* Conversion functions between wide char and multibyte strings.
|
|
|
|
*/
|
|
|
|
gchar *gdk_wcstombs (const GdkWChar *src);
|
|
|
|
gint gdk_mbstowcs (GdkWChar *dest,
|
|
|
|
const gchar *src,
|
|
|
|
gint dest_max);
|
|
|
|
|
1997-11-27 04:16:39 +00:00
|
|
|
|
1997-12-17 00:14:36 +00:00
|
|
|
/* Color Context */
|
|
|
|
|
1998-02-28 14:35:55 +00:00
|
|
|
GdkColorContext *gdk_color_context_new (GdkVisual *visual,
|
|
|
|
GdkColormap *colormap);
|
|
|
|
|
|
|
|
GdkColorContext *gdk_color_context_new_mono (GdkVisual *visual,
|
|
|
|
GdkColormap *colormap);
|
|
|
|
|
|
|
|
void gdk_color_context_free (GdkColorContext *cc);
|
|
|
|
|
|
|
|
gulong gdk_color_context_get_pixel (GdkColorContext *cc,
|
|
|
|
gushort red,
|
|
|
|
gushort green,
|
|
|
|
gushort blue,
|
|
|
|
gint *failed);
|
|
|
|
void gdk_color_context_get_pixels (GdkColorContext *cc,
|
|
|
|
gushort *reds,
|
|
|
|
gushort *greens,
|
|
|
|
gushort *blues,
|
|
|
|
gint ncolors,
|
|
|
|
gulong *colors,
|
|
|
|
gint *nallocated);
|
|
|
|
void gdk_color_context_get_pixels_incremental (GdkColorContext *cc,
|
|
|
|
gushort *reds,
|
|
|
|
gushort *greens,
|
|
|
|
gushort *blues,
|
|
|
|
gint ncolors,
|
|
|
|
gint *used,
|
|
|
|
gulong *colors,
|
|
|
|
gint *nallocated);
|
|
|
|
|
|
|
|
gint gdk_color_context_query_color (GdkColorContext *cc,
|
|
|
|
GdkColor *color);
|
|
|
|
gint gdk_color_context_query_colors (GdkColorContext *cc,
|
|
|
|
GdkColor *colors,
|
|
|
|
gint num_colors);
|
|
|
|
|
|
|
|
gint gdk_color_context_add_palette (GdkColorContext *cc,
|
|
|
|
GdkColor *palette,
|
|
|
|
gint num_palette);
|
|
|
|
|
|
|
|
void gdk_color_context_init_dither (GdkColorContext *cc);
|
|
|
|
void gdk_color_context_free_dither (GdkColorContext *cc);
|
|
|
|
|
|
|
|
gulong gdk_color_context_get_pixel_from_palette (GdkColorContext *cc,
|
|
|
|
gushort *red,
|
|
|
|
gushort *green,
|
|
|
|
gushort *blue,
|
|
|
|
gint *failed);
|
|
|
|
guchar gdk_color_context_get_index_from_palette (GdkColorContext *cc,
|
|
|
|
gint *red,
|
|
|
|
gint *green,
|
|
|
|
gint *blue,
|
|
|
|
gint *failed);
|
|
|
|
/* Regions
|
|
|
|
*/
|
|
|
|
|
|
|
|
GdkRegion* gdk_region_new (void);
|
|
|
|
void gdk_region_destroy (GdkRegion *region);
|
|
|
|
|
1998-05-19 16:17:00 +00:00
|
|
|
void gdk_region_get_clipbox(GdkRegion *region,
|
|
|
|
GdkRectangle *rectangle);
|
|
|
|
|
1998-02-28 14:35:55 +00:00
|
|
|
gboolean gdk_region_empty (GdkRegion *region);
|
|
|
|
gboolean gdk_region_equal (GdkRegion *region1,
|
|
|
|
GdkRegion *region2);
|
|
|
|
gboolean gdk_region_point_in (GdkRegion *region,
|
|
|
|
int x,
|
|
|
|
int y);
|
|
|
|
GdkOverlapType gdk_region_rect_in (GdkRegion *region,
|
1998-04-14 00:49:06 +00:00
|
|
|
GdkRectangle *rect);
|
|
|
|
|
|
|
|
GdkRegion* gdk_region_polygon (GdkPoint *points,
|
|
|
|
gint npoints,
|
|
|
|
GdkFillRule fill_rule);
|
1998-02-28 14:35:55 +00:00
|
|
|
|
|
|
|
void gdk_region_offset (GdkRegion *region,
|
|
|
|
gint dx,
|
|
|
|
gint dy);
|
|
|
|
void gdk_region_shrink (GdkRegion *region,
|
|
|
|
gint dx,
|
|
|
|
gint dy);
|
|
|
|
|
|
|
|
GdkRegion* gdk_region_union_with_rect (GdkRegion *region,
|
|
|
|
GdkRectangle *rect);
|
|
|
|
GdkRegion* gdk_regions_intersect (GdkRegion *source1,
|
|
|
|
GdkRegion *source2);
|
|
|
|
GdkRegion* gdk_regions_union (GdkRegion *source1,
|
|
|
|
GdkRegion *source2);
|
|
|
|
GdkRegion* gdk_regions_subtract (GdkRegion *source1,
|
|
|
|
GdkRegion *source2);
|
|
|
|
GdkRegion* gdk_regions_xor (GdkRegion *source1,
|
|
|
|
GdkRegion *source2);
|
1997-12-17 00:14:36 +00:00
|
|
|
|
fixed an assertment.
Sat Jun 6 06:01:24 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_emitv): fixed an assertment.
* gtk/makeenums.awk: a script to generate the GtkEnumValue arrays from,
this should eventually be done by gentypeinfo.el somewhen.
* gtk/gtkenumvalues.c: new generated file to hold GtkEnumValue arrays.
* gtk/gtktypeutils.h: new function gtk_enum_values() to retrive all the
enum values of an enum type.
* gtk/gtk.defs:
* gtk/gtkcurve.h:
* gtk/gtkobject.h:
* gtk/gtkprivate.h:
* gtk/gtkwidget.h:
* gtk/gtkenums.h:
brought enum/flags definitions in sync, added a few more enum
definitions for bindings and pattern matching.
* some more macro and GtkType fixups in various places.
* gdk/gdktypes.h (enum): added a new value GDK_AFTER_MASK, which is used
as a key-release modifier for the binding system.
Fri Jun 5 06:06:06 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenu.h (struct _GtkMenu): removed GList*children, since it
was a stale list pointer that is already present in GtkMenuShell.
* gtk/gtkmenushell.h (struct _GtkMenuShellClass): added a signal
GtkMenuShell::selection_done which is emitted after the menu shell
poped down again and all possible menu items have been activated.
Thu Jun 4 02:20:42 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenushell.c (gtk_menu_shell_button_release): flush the x-queue
before activation of the menuitem, so the menu is actually taken off the
screen prior to any menu item activation.
* gtk/gtkctree.c (gtk_ctree_get_row_data): allow function invokation
for NULL nodes.
* gtk/gtkwidget.h:
* gtk/gtkwidget.c: new function gtk_widget_stop_accelerator to stop
the emission of the "add-accelerator" signal on a widget. this is
usefull to prevent accelerator installation on certain widgets.
* gtk/gtknotebook.c (gtk_notebook_menu_item_create): keep the menu
labels left justified, by setting their alignment. stop accelerator
installation for the menu items, since we use dynamic menus.
Wed Jun 3 06:41:22 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenufactory.c: adaptions to use the new accel groups. people
should *really* use GtkItemFactory. this is only for preserving source
compatibility where possible, use of GtkMenuFactory is deprecated as of
now.
* gtk/gtkobject.h (gtk_object_class_add_user_signal): new function
to create user signals of type GTK_RUN_NO_RECURSE. don't know why i
missed this possibility when i added gtk_object_class_add_user_signal
in late january.
* gtk/gtkmain.c (gtk_init): ignore subsequent function calls.
Sun May 31 07:31:09 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.h:
* gtk/gtkaccelgroup.c: new implementation of the accelerator concept.
* gtk/gtkaccellabel.h:
* gtk/gtkaccellabel.c: new widget derived from GtkLabel whitch features
display of the accelerators associated with a certain widget.
* gtk/gtkitemfactory.h:
* gtk/gtkitemfactory.c: new widget, item factory with automatic rc
parsing and accelerator handling.
* gtk/gtkmenu.c (gtk_menu_reposition): new function to care for
positioning a menu.
(gtk_menu_map): removed the allocation code.
(gtk_menu_size_allocate): care for redrawing of children and resize
our widget->window correctly.
(gtk_menu_key_press): feature the new accelerator groups.
* gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): reposition the
submenu if neccessary.
* gtk/gtkmenuitem.c:
* gtk/gtkcheckmenuitem.c:
* gtk/gtkradiomenuitem.c: use GtkAccelLabel in the *_new_with_label()
function variants.
* gdk/gdk.c:
(gdk_keyval_from_name):
(gdk_keyval_name): new functions for keyval<->key-name associations.
(gdk_keyval_to_upper):
(gdk_keyval_to_lower):
(gdk_keyval_is_upper):
(gdk_keyval_is_lower): new functions to check/translate keyvalues with
regards to their cases.
Wed May 27 00:48:10 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_class_path): new function to calculate a
widget's class path.
(gtk_widget_path): new function to calculate a widget's name path.
* gtk/gtkrc.c: newly introduced GtkPatternSpec structures to speed up
pattern matching, features reversed pattern matches.
1998-06-07 06:48:56 +00:00
|
|
|
/* Miscellaneous */
|
|
|
|
void gdk_event_send_clientmessage_toall (GdkEvent *event);
|
1998-11-06 22:05:02 +00:00
|
|
|
gboolean gdk_event_send_client_message (GdkEvent *event,
|
|
|
|
guint32 xid);
|
fixed an assertment.
Sat Jun 6 06:01:24 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_emitv): fixed an assertment.
* gtk/makeenums.awk: a script to generate the GtkEnumValue arrays from,
this should eventually be done by gentypeinfo.el somewhen.
* gtk/gtkenumvalues.c: new generated file to hold GtkEnumValue arrays.
* gtk/gtktypeutils.h: new function gtk_enum_values() to retrive all the
enum values of an enum type.
* gtk/gtk.defs:
* gtk/gtkcurve.h:
* gtk/gtkobject.h:
* gtk/gtkprivate.h:
* gtk/gtkwidget.h:
* gtk/gtkenums.h:
brought enum/flags definitions in sync, added a few more enum
definitions for bindings and pattern matching.
* some more macro and GtkType fixups in various places.
* gdk/gdktypes.h (enum): added a new value GDK_AFTER_MASK, which is used
as a key-release modifier for the binding system.
Fri Jun 5 06:06:06 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenu.h (struct _GtkMenu): removed GList*children, since it
was a stale list pointer that is already present in GtkMenuShell.
* gtk/gtkmenushell.h (struct _GtkMenuShellClass): added a signal
GtkMenuShell::selection_done which is emitted after the menu shell
poped down again and all possible menu items have been activated.
Thu Jun 4 02:20:42 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenushell.c (gtk_menu_shell_button_release): flush the x-queue
before activation of the menuitem, so the menu is actually taken off the
screen prior to any menu item activation.
* gtk/gtkctree.c (gtk_ctree_get_row_data): allow function invokation
for NULL nodes.
* gtk/gtkwidget.h:
* gtk/gtkwidget.c: new function gtk_widget_stop_accelerator to stop
the emission of the "add-accelerator" signal on a widget. this is
usefull to prevent accelerator installation on certain widgets.
* gtk/gtknotebook.c (gtk_notebook_menu_item_create): keep the menu
labels left justified, by setting their alignment. stop accelerator
installation for the menu items, since we use dynamic menus.
Wed Jun 3 06:41:22 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenufactory.c: adaptions to use the new accel groups. people
should *really* use GtkItemFactory. this is only for preserving source
compatibility where possible, use of GtkMenuFactory is deprecated as of
now.
* gtk/gtkobject.h (gtk_object_class_add_user_signal): new function
to create user signals of type GTK_RUN_NO_RECURSE. don't know why i
missed this possibility when i added gtk_object_class_add_user_signal
in late january.
* gtk/gtkmain.c (gtk_init): ignore subsequent function calls.
Sun May 31 07:31:09 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.h:
* gtk/gtkaccelgroup.c: new implementation of the accelerator concept.
* gtk/gtkaccellabel.h:
* gtk/gtkaccellabel.c: new widget derived from GtkLabel whitch features
display of the accelerators associated with a certain widget.
* gtk/gtkitemfactory.h:
* gtk/gtkitemfactory.c: new widget, item factory with automatic rc
parsing and accelerator handling.
* gtk/gtkmenu.c (gtk_menu_reposition): new function to care for
positioning a menu.
(gtk_menu_map): removed the allocation code.
(gtk_menu_size_allocate): care for redrawing of children and resize
our widget->window correctly.
(gtk_menu_key_press): feature the new accelerator groups.
* gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): reposition the
submenu if neccessary.
* gtk/gtkmenuitem.c:
* gtk/gtkcheckmenuitem.c:
* gtk/gtkradiomenuitem.c: use GtkAccelLabel in the *_new_with_label()
function variants.
* gdk/gdk.c:
(gdk_keyval_from_name):
(gdk_keyval_name): new functions for keyval<->key-name associations.
(gdk_keyval_to_upper):
(gdk_keyval_to_lower):
(gdk_keyval_is_upper):
(gdk_keyval_is_lower): new functions to check/translate keyvalues with
regards to their cases.
Wed May 27 00:48:10 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_class_path): new function to calculate a
widget's class path.
(gtk_widget_path): new function to calculate a widget's name path.
* gtk/gtkrc.c: newly introduced GtkPatternSpec structures to speed up
pattern matching, features reversed pattern matches.
1998-06-07 06:48:56 +00:00
|
|
|
|
|
|
|
/* Key values
|
|
|
|
*/
|
|
|
|
gchar* gdk_keyval_name (guint keyval);
|
|
|
|
guint gdk_keyval_from_name (const gchar *keyval_name);
|
|
|
|
guint gdk_keyval_to_upper (guint keyval);
|
|
|
|
guint gdk_keyval_to_lower (guint keyval);
|
|
|
|
gboolean gdk_keyval_is_upper (guint keyval);
|
|
|
|
gboolean gdk_keyval_is_lower (guint keyval);
|
|
|
|
|
1998-12-16 20:09:30 +00:00
|
|
|
/* Threading
|
|
|
|
*/
|
|
|
|
|
|
|
|
extern GMutex *gdk_threads_mutex;
|
|
|
|
|
|
|
|
void gdk_threads_enter (void);
|
|
|
|
void gdk_threads_leave (void);
|
|
|
|
|
|
|
|
#ifdef G_THREADS_ENABLED
|
|
|
|
# define GDK_THREADS_ENTER() G_STMT_START { \
|
|
|
|
if (gdk_threads_mutex) \
|
|
|
|
g_mutex_lock (gdk_threads_mutex); \
|
|
|
|
} G_STMT_END
|
|
|
|
# define GDK_THREADS_LEAVE() G_STMT_START { \
|
|
|
|
if (gdk_threads_mutex) \
|
|
|
|
g_mutex_unlock (gdk_threads_mutex); \
|
|
|
|
} G_STMT_END
|
|
|
|
#else /* !G_THREADS_ENABLED */
|
|
|
|
# define GDK_THREADS_ENTER()
|
|
|
|
# define GDK_THREADS_LEAVE()
|
|
|
|
#endif /* !G_THREADS_ENABLED */
|
1998-08-25 00:06:38 +00:00
|
|
|
|
1998-07-15 20:25:52 +00:00
|
|
|
#include <gdk/gdkrgb.h>
|
fixed an assertment.
Sat Jun 6 06:01:24 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_emitv): fixed an assertment.
* gtk/makeenums.awk: a script to generate the GtkEnumValue arrays from,
this should eventually be done by gentypeinfo.el somewhen.
* gtk/gtkenumvalues.c: new generated file to hold GtkEnumValue arrays.
* gtk/gtktypeutils.h: new function gtk_enum_values() to retrive all the
enum values of an enum type.
* gtk/gtk.defs:
* gtk/gtkcurve.h:
* gtk/gtkobject.h:
* gtk/gtkprivate.h:
* gtk/gtkwidget.h:
* gtk/gtkenums.h:
brought enum/flags definitions in sync, added a few more enum
definitions for bindings and pattern matching.
* some more macro and GtkType fixups in various places.
* gdk/gdktypes.h (enum): added a new value GDK_AFTER_MASK, which is used
as a key-release modifier for the binding system.
Fri Jun 5 06:06:06 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenu.h (struct _GtkMenu): removed GList*children, since it
was a stale list pointer that is already present in GtkMenuShell.
* gtk/gtkmenushell.h (struct _GtkMenuShellClass): added a signal
GtkMenuShell::selection_done which is emitted after the menu shell
poped down again and all possible menu items have been activated.
Thu Jun 4 02:20:42 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenushell.c (gtk_menu_shell_button_release): flush the x-queue
before activation of the menuitem, so the menu is actually taken off the
screen prior to any menu item activation.
* gtk/gtkctree.c (gtk_ctree_get_row_data): allow function invokation
for NULL nodes.
* gtk/gtkwidget.h:
* gtk/gtkwidget.c: new function gtk_widget_stop_accelerator to stop
the emission of the "add-accelerator" signal on a widget. this is
usefull to prevent accelerator installation on certain widgets.
* gtk/gtknotebook.c (gtk_notebook_menu_item_create): keep the menu
labels left justified, by setting their alignment. stop accelerator
installation for the menu items, since we use dynamic menus.
Wed Jun 3 06:41:22 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenufactory.c: adaptions to use the new accel groups. people
should *really* use GtkItemFactory. this is only for preserving source
compatibility where possible, use of GtkMenuFactory is deprecated as of
now.
* gtk/gtkobject.h (gtk_object_class_add_user_signal): new function
to create user signals of type GTK_RUN_NO_RECURSE. don't know why i
missed this possibility when i added gtk_object_class_add_user_signal
in late january.
* gtk/gtkmain.c (gtk_init): ignore subsequent function calls.
Sun May 31 07:31:09 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.h:
* gtk/gtkaccelgroup.c: new implementation of the accelerator concept.
* gtk/gtkaccellabel.h:
* gtk/gtkaccellabel.c: new widget derived from GtkLabel whitch features
display of the accelerators associated with a certain widget.
* gtk/gtkitemfactory.h:
* gtk/gtkitemfactory.c: new widget, item factory with automatic rc
parsing and accelerator handling.
* gtk/gtkmenu.c (gtk_menu_reposition): new function to care for
positioning a menu.
(gtk_menu_map): removed the allocation code.
(gtk_menu_size_allocate): care for redrawing of children and resize
our widget->window correctly.
(gtk_menu_key_press): feature the new accelerator groups.
* gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): reposition the
submenu if neccessary.
* gtk/gtkmenuitem.c:
* gtk/gtkcheckmenuitem.c:
* gtk/gtkradiomenuitem.c: use GtkAccelLabel in the *_new_with_label()
function variants.
* gdk/gdk.c:
(gdk_keyval_from_name):
(gdk_keyval_name): new functions for keyval<->key-name associations.
(gdk_keyval_to_upper):
(gdk_keyval_to_lower):
(gdk_keyval_is_upper):
(gdk_keyval_is_lower): new functions to check/translate keyvalues with
regards to their cases.
Wed May 27 00:48:10 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_class_path): new function to calculate a
widget's class path.
(gtk_widget_path): new function to calculate a widget's name path.
* gtk/gtkrc.c: newly introduced GtkPatternSpec structures to speed up
pattern matching, features reversed pattern matches.
1998-06-07 06:48:56 +00:00
|
|
|
|
1997-11-24 22:37:52 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __GDK_H__ */
|