2001-03-03 23:29:50 +00:00
<!-- ##### SECTION ./tmpl/gtkdebug.sgml:Title ##### -->
Debugging
2001-01-09 16:41:17 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### SECTION ./tmpl/gtkenums.sgml.sgml:Title ##### -->
gtkenums.sgml
2001-01-09 16:41:17 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### SECTION ./tmpl/gtkimcontextsimple.sgml:Title ##### -->
GtkIMContextSimple
2001-01-09 16:41:17 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### SECTION ./tmpl/gtkmarshal.sgml:Long_Description ##### -->
<refsect2>
<title>What are Signal Marshallers?</title>
2000-09-07 18:17:06 +00:00
<para>
2001-03-03 23:29:50 +00:00
Marshals are functions which all have the same prototype:
they take a #GtkObject, a #GtkSignalFunc, a #gpointer,
and an array of argument values.
The functions are names gtk_marshall_RETURNTYPE__PARAMTYPE1_PARAMTYPE2....
2000-09-07 18:17:06 +00:00
</para>
<para>
2001-03-03 23:29:50 +00:00
They then call a native function: the GtkObject is the first
parameter passed in. The arguments are passed in the native
calling convention: chars, shorts, ints, longs may be packed
on the stack, or tucked in registers: it doesn't matter
because the same calling convention will be generated
inside the gtkmarshal code as is expected where you define
your handlers.
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
</para>
<para>
2001-03-03 23:29:50 +00:00
So the function named:
<programlisting>
gtk_marshal_BOOL__POINTER_INT_INT_UINT(GtkObject*, GtkSignalFunc, gpointer, GtkArg*);
</programlisting>
will call the #GtkSignalFunc assuming it was a function with signature:
<programlisting>
gboolean sigfunc(gpointer,gint,gint,guint);
</programlisting>
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
</para>
2001-03-03 23:29:50 +00:00
</refsect2>
<refsect2>
<title>Writing Custom Marshals</title>
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
Marshals are primarily used as arguments to gtk_signal_new().
Sometimes, you may find that a marshaller you need isn't available
in the standard list. Then you have to write your own.
2000-09-07 18:17:06 +00:00
</para>
2001-01-09 16:41:17 +00:00
<para>
2001-03-03 23:29:50 +00:00
If you wish to define a signal with a new type of argument list.
Suppose you want 2 pointers and 2 integers.
You would write:
<programlisting>
typedef int (*GtkSignal_INT__POINTER_POINTER_INT_INT)(
gpointer, gpointer, gint, gint
);
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
void marshal_INT__POINTER_POINTER_INT_INT(GtkObject* object,
GtkSignalFunc func,
gpointer func_data,
GtkArg* args)
{
GtkSignal_NONE__POINTER_POINTER_INT_INT rfunc;
gint* return_val;
return_val = GTK_RETLOC_INT(args[4]);
rfunc = (GtkSignal_INT__POINTER_POINTER_INT_INT)func;
*return_val = (*rfunc)(object,
GTK_VALUE_POINTER(args[0]),
GTK_VALUE_POINTER(args[1]),
GTK_VALUE_INT(args[2]),
GTK_VALUE_INT(args[3]),
func_data);
}
</programlisting>
2001-01-09 16:41:17 +00:00
</para>
2001-03-03 23:29:50 +00:00
</refsect2>
2001-01-09 16:41:17 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### SECTION ./tmpl/gtkmarshal.sgml:See_Also ##### -->
2000-10-30 23:21:38 +00:00
<para>
2001-03-03 23:29:50 +00:00
<variablelist>
2000-10-30 23:21:38 +00:00
2001-03-03 23:29:50 +00:00
<varlistentry>
<term>#GtkSignal</term>
<listitem><para>The signal handling functions (of which marshallers are
really an implementation detail).</para></listitem>
</varlistentry>
2000-10-30 23:21:38 +00:00
2001-03-03 23:29:50 +00:00
</variablelist>
</para>
2000-10-18 18:42:54 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### SECTION ./tmpl/gtkmarshal.sgml:Short_Description ##### -->
Functions to adapt C structures to native calling convention.
2000-10-18 18:42:54 +00:00
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### SECTION ./tmpl/gtkmarshal.sgml:Title ##### -->
Signal Marshallers
2001-02-12 17:50:13 +00:00
2000-09-07 18:17:06 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### SECTION ./tmpl/gtkprivate.sgml:Title ##### -->
Private Information
2000-09-07 18:17:06 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### MACRO GTK_CLIST_CHILD_HAS_FOCUS ##### -->
2000-09-07 18:17:06 +00:00
<para>
2001-03-03 23:29:50 +00:00
A macro to check whether a child widget of the CList
has the focus.
2000-09-07 18:17:06 +00:00
</para>
2001-03-03 23:29:50 +00:00
@clist: The #GtkCList widget to check.
2000-09-07 18:17:06 +00:00
2001-03-12 18:46:53 +00:00
<!-- ##### MACRO GTK_ICON_SIZE_BUTTON ##### -->
<para>
</para>
<!-- ##### MACRO GTK_ICON_SIZE_DIALOG ##### -->
<para>
</para>
<!-- ##### MACRO GTK_ICON_SIZE_LARGE_TOOLBAR ##### -->
<para>
</para>
<!-- ##### MACRO GTK_ICON_SIZE_MENU ##### -->
<para>
</para>
<!-- ##### MACRO GTK_ICON_SIZE_SMALL_TOOLBAR ##### -->
<para>
</para>
2001-03-03 23:29:50 +00:00
<!-- ##### MACRO GTK_OBJECT_CONSTRUCTED ##### -->
2000-11-14 16:36:20 +00:00
<para>
2001-03-03 23:29:50 +00:00
Test whether a GtkObject's arguments have been prepared.
2000-11-14 16:36:20 +00:00
</para>
2001-03-03 23:29:50 +00:00
@obj: the object to examine.
2000-11-14 16:36:20 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### MACRO GTK_OBJECT_NSIGNALS ##### -->
2001-01-09 16:41:17 +00:00
<para>
2001-03-03 23:29:50 +00:00
Get the number of signals defined by this object.
2001-01-09 16:41:17 +00:00
</para>
2001-03-03 23:29:50 +00:00
@obj: the object to query.
2001-01-09 16:41:17 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### MACRO GTK_OBJECT_SIGNALS ##### -->
2000-11-14 16:36:20 +00:00
<para>
2001-03-03 23:29:50 +00:00
Get the array of signals defined for this object.
2000-11-14 16:36:20 +00:00
</para>
2001-03-03 23:29:50 +00:00
@obj: the object to fetch the signals from.
2000-11-14 16:36:20 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### MACRO GTK_TREE_SELECTION ##### -->
2000-09-07 18:17:06 +00:00
<para>
2001-03-03 23:29:50 +00:00
A macro that returns a GList that contains the selection of the root tree of @obj.
2000-09-07 18:17:06 +00:00
</para>
2001-03-03 23:29:50 +00:00
@obj: A pointer to the #GtkTree. @obj will accept any pointer, but it the pointer does not point to a #GtkTree, the results are undefined.
2000-09-07 18:17:06 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### MACRO GTK_TYPE_FLAT_FIRST ##### -->
2000-09-07 18:17:06 +00:00
<para>
2001-03-03 23:29:50 +00:00
The first "flat" (no struct) enumerated type value.
2000-09-07 18:17:06 +00:00
</para>
2001-03-03 23:29:50 +00:00
<!-- ##### MACRO GTK_TYPE_FLAT_LAST ##### -->
2000-10-18 18:42:54 +00:00
<para>
2001-03-03 23:29:50 +00:00
The last "flat" (no struct) enumerated type value.
2000-10-18 18:42:54 +00:00
</para>
2001-03-03 23:29:50 +00:00
<!-- ##### MACRO GTK_TYPE_IDENTIFIER ##### -->
2000-10-18 18:42:54 +00:00
<para>
2001-03-03 23:29:50 +00:00
Hide the name of gtk_identifier_get_type
2000-10-18 18:42:54 +00:00
</para>
2001-03-03 23:29:50 +00:00
<!-- ##### MACRO GTK_TYPE_MAKE ##### -->
2000-11-21 02:06:21 +00:00
<para>
2001-03-03 23:29:50 +00:00
Combine a fundemantal type and a sequence number to create a gtk type.
2000-11-21 02:06:21 +00:00
</para>
2001-03-03 23:29:50 +00:00
@parent_t:
@seqno:
2000-11-21 02:06:21 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### MACRO GTK_TYPE_NUM_BUILTINS ##### -->
1999-09-22 21:30:57 +00:00
<para>
2001-03-03 23:29:50 +00:00
No idea.
1999-09-22 21:30:57 +00:00
</para>
2001-03-03 23:29:50 +00:00
<!-- ##### MACRO GTK_TYPE_SEQNO ##### -->
2000-11-14 16:36:20 +00:00
<para>
2001-03-03 23:29:50 +00:00
Convert a gtk type into its sequence number
2000-11-14 16:36:20 +00:00
</para>
2001-03-03 23:29:50 +00:00
@type:
2000-11-14 16:36:20 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### MACRO GTK_TYPE_STRUCTURED_FIRST ##### -->
2000-10-29 08:03:34 +00:00
<para>
2001-03-03 23:29:50 +00:00
The first structured enumerated type value.
2000-10-29 08:03:34 +00:00
</para>
2000-11-04 16:31:37 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### MACRO GTK_TYPE_STRUCTURED_LAST ##### -->
2000-10-29 08:03:34 +00:00
<para>
2001-03-03 23:29:50 +00:00
The last structured enumerated type value.
2000-10-29 08:03:34 +00:00
</para>
2001-03-18 04:50:34 +00:00
<!-- ##### MACRO GTK_TYPE_TREE_COLUMN ##### -->
<para>
</para>
2001-03-03 23:29:50 +00:00
<!-- ##### MACRO GTK_VALUE_ARGS ##### -->
2000-10-29 08:03:34 +00:00
<para>
2001-03-03 23:29:50 +00:00
Use to get the value of a GtkArg whose GtkType is GTK_TYPE_ARGS
2000-10-29 08:03:34 +00:00
</para>
2001-03-03 23:29:50 +00:00
@a:
2000-10-29 08:03:34 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### MACRO GTK_VALUE_CALLBACK ##### -->
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
<para>
2001-03-03 23:29:50 +00:00
Use to get the value of a GtkArg whose GtkType is GTK_TYPE_CALLBACK
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
</para>
2000-10-18 18:42:54 +00:00
2001-03-03 23:29:50 +00:00
@a:
1999-09-22 21:30:57 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### MACRO GTK_VALUE_C_CALLBACK ##### -->
2000-11-04 16:31:37 +00:00
<para>
2001-03-03 23:29:50 +00:00
Use to get the value of a GtkArg whose GtkType is GTK_TYPE_C_CALLBACK
1999-09-22 21:30:57 +00:00
</para>
2001-03-03 23:29:50 +00:00
@a:
2000-09-07 18:17:06 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### MACRO GTK_VALUE_FOREIGN ##### -->
2000-10-18 18:42:54 +00:00
<para>
2001-03-03 23:29:50 +00:00
Use to get the value of a GtkArg whose GtkType is GTK_TYPE_C_FOREIGN
2000-10-18 18:42:54 +00:00
</para>
2001-03-03 23:29:50 +00:00
@a:
2000-10-18 18:42:54 +00:00
2001-03-15 19:02:23 +00:00
<!-- ##### STRUCT GtkData ##### -->
<para>
The #GtkData-struct struct contains no public fields.
</para>
<!-- ##### SIGNAL GtkData::disconnect ##### -->
<para>
Emitted to notify any views on the #GtkData object to disconnect from it,
possibly because the #GtkData object is about to be destroyed.
</para>
@data: the object which received the signal.
2001-03-03 23:29:50 +00:00
<!-- ##### SIGNAL GtkEditable::activate ##### -->
2000-09-07 18:17:06 +00:00
<para>
2001-03-03 23:29:50 +00:00
Indicates that the user has activated the widget
in some fashion. Generally, this will be done
with a keystroke. (The default binding for this
action is Return for #GtkEntry and
Control-Return for #GtkText.)
2000-09-07 18:17:06 +00:00
</para>
2001-03-03 23:29:50 +00:00
@editable: the object which received the signal.
2000-09-07 18:17:06 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### SIGNAL GtkEditable::changed ##### -->
2000-09-07 18:17:06 +00:00
<para>
2001-03-03 23:29:50 +00:00
Indicates that the user has changed the contents
of the widget.
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
</para>
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
@editable: the object which received the signal.
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### SIGNAL GtkEditable::copy-clipboard ##### -->
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
<para>
2001-03-03 23:29:50 +00:00
An action signal. Causes the characters in the current selection to
be copied to the clipboard.
2000-09-07 18:17:06 +00:00
</para>
2001-03-03 23:29:50 +00:00
@editable: the object which received the signal.
2000-09-07 18:17:06 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### SIGNAL GtkEditable::cut-clipboard ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
An action signal. Causes the characters in the current
selection to be copied to the clipboard and then deleted from
the widget.
2000-09-07 18:17:06 +00:00
</para>
2001-03-03 23:29:50 +00:00
@editable: the object which received the signal.
2000-09-07 18:17:06 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### SIGNAL GtkEditable::delete-text ##### -->
2000-10-18 18:42:54 +00:00
<para>
2001-03-03 23:29:50 +00:00
This signal is emitted when text is deleted from
the widget by the user. The default handler for
this signal will normally be responsible for inserting
the text, so by connecting to this signal and then
stopping the signal with gtk_signal_emit_stop(), it
is possible to modify the inserted text, or prevent
it from being inserted entirely. The @start_pos
and @end_pos parameters are interpreted as for
gtk_editable_delete_text()
2000-10-18 18:42:54 +00:00
</para>
2001-03-03 23:29:50 +00:00
@editable: the object which received the signal.
@start_pos: the starting position.
@end_pos: the end position.
2000-10-18 18:42:54 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### SIGNAL GtkEditable::insert-text ##### -->
2001-01-09 16:41:17 +00:00
<para>
2001-03-03 23:29:50 +00:00
This signal is emitted when text is inserted into
the widget by the user. The default handler for
this signal will normally be responsible for inserting
the text, so by connecting to this signal and then
stopping the signal with gtk_signal_emit_stop(), it
is possible to modify the inserted text, or prevent
it from being inserted entirely.
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
@editable: the object which received the signal.
@new_text: the new text to insert.
@new_text_length: the length of the new text.
@position: the position at which to insert the new text.
this is an in-out paramter. After the signal
emission is finished, it should point after
the newly inserted text.
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### SIGNAL GtkEditable::kill-char ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
An action signal. Delete a single character.
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
@editable: the object which received the signal.
@direction: the direction in which to delete. Positive
indicates forward deletion, negative, backwards deletion.
<!-- ##### SIGNAL GtkEditable::kill-line ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
An action signal. Delete a single line.
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
@editable: the object which received the signal.
@direction: the direction in which to delete. Positive
indicates forward deletion, negative, backwards deletion.
<!-- ##### SIGNAL GtkEditable::kill-word ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
An action signal. Delete a single word.
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
@editable: the object which received the signal.
@direction: the direction in which to delete. Positive
indicates forward deletion, negative, backwards deletion.
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### SIGNAL GtkEditable::move-cursor ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
An action signal. Move the cursor position.
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
@editable: the object which received the signal.
@x: horizontal distance to move the cursor.
@y: vertical distance to move the cursor.
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### SIGNAL GtkEditable::move-page ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
An action signal. Move the cursor by pages.
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
@editable: the object which received the signal.
@x: Number of pages to move the cursor horizontally.
@y: Number of pages to move the cursor vertically.
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### SIGNAL GtkEditable::move-to-column ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
An action signal. Move the cursor to the given column.
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
@editable: the object which received the signal.
@column: the column to move to. (A negative value indicates
the last column)
<!-- ##### SIGNAL GtkEditable::move-to-row ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
An action signal. Move the cursor to the given row.
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
@editable: the object which received the signal.
@row: the row to move to. (A negative value indicates
the last row)
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### SIGNAL GtkEditable::move-word ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
An action signal. Move the cursor by words.
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
@editable: the object which received the signal.
@num_words: The number of words to move the
cursor. (Can be negative).
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### SIGNAL GtkEditable::paste-clipboard ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
An action signal. Causes the contents of the clipboard to
be pasted into the editable widget at the current cursor
position.
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
@editable: the object which received the signal.
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### SIGNAL GtkEditable::set-editable ##### -->
<para>
Determines if the user can edit the text in the editable
widget or not. This is meant to be overriden by
child classes and should not generally useful to
applications.
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
@editable: the object which received the signal.
@is_editable: %TRUE if the user is allowed to edit the text
in the widget.
2001-01-09 16:41:17 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### ARG GtkEditable:editable ##### -->
<para>
A boolean indicating whether the widget is editable by
the user.
2001-01-09 16:41:17 +00:00
</para>
2001-03-03 23:29:50 +00:00
<!-- ##### ARG GtkEditable:text-position ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
The position of the cursor.
2001-02-12 17:50:13 +00:00
</para>
2001-03-22 22:41:05 +00:00
<!-- ##### USER_FUNCTION GtkEmissionHook ##### -->
<para>
A simple function pointer to get invoked when the
signal is emitted. This allows you tie a hook to the signal type,
so that it will trap all emissions of that signal, from any object.
</para>
<para>
You may not attach these to signals created with the
#GTK_RUN_NO_HOOKS flag.
</para>
@object:
@signal_id:
@n_params:
@params:
@data:
@Returns:
2001-03-03 23:29:50 +00:00
<!-- ##### ENUM GtkFontFilterType ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
A set of bit flags used to specify the filter being set
when calling gtk_font_selection_dialog_set_filter() or
gtk_font_selection_set_filter().
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
@GTK_FONT_FILTER_BASE: the base filter, which can't be changed by the user.
@GTK_FONT_FILTER_USER: the user filter, which can be changed from within the
'Filter' page of the #GtkFontSelection widget.
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### ENUM GtkFontType ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
A set of bit flags used to specify the type of fonts shown
when calling gtk_font_selection_dialog_set_filter() or
gtk_font_selection_set_filter().
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
@GTK_FONT_BITMAP: bitmap fonts.
@GTK_FONT_SCALABLE: scalable fonts.
@GTK_FONT_SCALABLE_BITMAP: scaled bitmap fonts.
@GTK_FONT_ALL: a bitwise combination of all of the above.
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### STRUCT GtkIMContextSimple ##### -->
2001-02-12 17:50:13 +00:00
<para>
</para>
2001-03-03 23:29:50 +00:00
@object:
@tables:
@compose_buffer:
@tentative_match:
@tentative_match_len:
2001-02-12 17:50:13 +00:00
2001-03-22 13:44:00 +00:00
<!-- ##### ARG GtkLabel:accel-keyval ##### -->
<para>
</para>
2001-03-03 23:29:50 +00:00
<!-- ##### ARG GtkObject:object-signal ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
Setting this with a GtkType of GTK_TYPE_SIGNAL connects
the signal to the object, so that the user data and objects
and swapped when the signal handler is invoked.
2001-02-12 17:50:13 +00:00
</para>
<para>
2001-03-03 23:29:50 +00:00
This is useful for handlers that are primarily notifying
other objects and could just invoke an already existing function
if the parameters were swapped.
See gtk_signal_connect_object() for more details.
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
<!-- ##### ARG GtkObject:object-signal-after ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
Setting this with a GtkType of GTK_TYPE_SIGNAL connects
the signal to the object, so that the user data and objects
and swapped when the signal handler is invoked,
and so that the handler is invoked after all others.
2001-02-12 17:50:13 +00:00
</para>
<para>
2001-03-03 23:29:50 +00:00
See gtk_signal_connect_object_after() for more details.
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
<!-- ##### ARG GtkObject:signal ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
Setting this with a GtkType of GTK_TYPE_SIGNAL connects
the signal to the object.
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
<!-- ##### ARG GtkObject:signal-after ##### -->
2000-10-18 18:42:54 +00:00
<para>
2001-03-03 23:29:50 +00:00
Setting this with a GtkType of GTK_TYPE_SIGNAL connects
the signal to the object, so that the signal is always run
after other user handlers and the default handler.
2000-10-18 18:42:54 +00:00
</para>
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### ENUM GtkPrivateFlags ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
@PRIVATE_GTK_USER_STYLE:
@PRIVATE_GTK_RESIZE_PENDING:
@PRIVATE_GTK_RESIZE_NEEDED:
@PRIVATE_GTK_LEAVE_PENDING:
@PRIVATE_GTK_HAS_SHAPE_MASK:
@PRIVATE_GTK_IN_REPARENT:
@PRIVATE_GTK_DIRECTION_SET:
@PRIVATE_GTK_DIRECTION_LTR:
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### USER_FUNCTION GtkSignalDestroy ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
A function which you can use to clean up when the
signal handler is destroyed.
</para>
<para>
For example, if your handler requires a few variables
that you made into a struct and allocated (using g_new()
or something), then you will probably want to free
it as soon as the hook is destroyed. This will
allow you to do that. (For this in particular
it is convenient to pass g_free() as a #GtkSignalDestroy
function).
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
@data: The user data associated with the hook that is being
destroyed.
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### USER_FUNCTION GtkSignalMarshal ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
This is currently a hack left in for a scheme wrapper library.
It may be removed.
2001-02-12 17:50:13 +00:00
</para>
<para>
2001-03-03 23:29:50 +00:00
Don't use it.
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
@object: The object which emits the signal.
@data: The user data associated with the hook.
@nparams: The number of parameters to the function.
@args: The actual values of the arguments.
@arg_types: The types of the arguments.
@return_type: The type of the return value from the function
or #GTK_TYPE_NONE for no return value.
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### STRUCT GtkSignalQuery ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
This structure contains all the information about a particular
signal: its name, the type it affects, the signature of the handlers,
and its unique identifying integer.
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
@object_type:
@signal_id:
@signal_name:
@is_user_signal:
@signal_flags:
@return_val:
@nparams:
@params:
2001-02-12 17:50:13 +00:00
2001-03-18 04:50:34 +00:00
<!-- ##### ARG GtkSpinButton:shadow-type ##### -->
<para>
the type of border that surrounds the arrows of a spin button.
</para>
2001-03-03 23:29:50 +00:00
<!-- ##### STRUCT GtkStatusbarMsg ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
Holds the data for a statusbar message. <structfield>text</structfield> holds the actual text string. <structfield>context_id</structfield> is the context that this message is associated with, and <structfield>message_id</structfield> is this particular message's identifier. However, these fields should not be modified directly.
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
@text:
@context_id:
@message_id:
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### ARG GtkTextTag:justify ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
A #GtkJustification for the text. This is only used when the tag is
applied to the first character in a paragraph.
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
<!-- ##### ARG GtkTextTag:left-wrapped-line-margin ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
Pixel width of the left margin of the text for lines after the first
line in a wrapped paragraph.
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
<!-- ##### ARG GtkTextTag:left-wrapped-line-margin-set ##### -->
2001-02-12 17:50:13 +00:00
<para>
</para>
2001-03-03 23:29:50 +00:00
<!-- ##### ARG GtkTextTag:offset ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
Pixels to offset the text horizontally or vertically, useful to
produce superscript and subscript.
2001-02-12 17:50:13 +00:00
</para>
2001-03-18 04:50:34 +00:00
<!-- ##### ARG GtkTextView:justify ##### -->
<para>
</para>
<!-- ##### ARG GtkTextView:wrap-mode ##### -->
<para>
</para>
2001-03-07 21:10:44 +00:00
<!-- ##### SIGNAL GtkWidget::debug-msg ##### -->
<para>
</para>
@widget: the object which received the signal.
@message:
2001-03-03 23:29:50 +00:00
<!-- ##### SIGNAL GtkWidget::draw ##### -->
2001-02-12 17:50:13 +00:00
<para>
</para>
2001-03-03 23:29:50 +00:00
@widget: the object which received the signal.
@area:
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### SIGNAL GtkWidget::draw-default ##### -->
2001-02-12 17:50:13 +00:00
<para>
</para>
2001-03-03 23:29:50 +00:00
@widget: the object which received the signal.
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### SIGNAL GtkWidget::draw-focus ##### -->
2001-02-12 17:50:13 +00:00
<para>
</para>
2001-03-03 23:29:50 +00:00
@widget: the object which received the signal.
2000-10-18 18:42:54 +00:00
2001-03-07 21:10:44 +00:00
<!-- ##### FUNCTION gtk_button_box_child_requisition ##### -->
<para>
This is an internally used function and should never be called from an
application.
</para>
@widget:
@nvis_children:
@width:
@height:
<!-- ##### FUNCTION gtk_button_box_get_child_ipadding_default ##### -->
<para>
The internal padding of a button is the amount of space between the outside
of the button and the widget it contains. This function gets the default
amount of horizontal and vertical padding, placing the results in @ipad_x
and @ipad_y, respectively.
</para>
@ipad_x: the default horizontal internal button padding.
@ipad_y: the default vertical internal button padding.
<!-- ##### FUNCTION gtk_button_box_get_child_size_default ##### -->
<para>
Retrieves the default minimum width and height for all button boxes, and
places the values in @min_width and @min_height, respectively.
</para>
@min_width: the default minimum width of a child widget.
@min_height: the default minimum height of a child widget.
<!-- ##### FUNCTION gtk_button_box_set_child_ipadding_default ##### -->
<para>
Sets the default number of pixels that pad each button in every button box.
</para>
@ipad_x: new default horizontal padding.
@ipad_y: new default vertical padding.
<!-- ##### FUNCTION gtk_button_box_set_child_size_default ##### -->
<para>
Sets the default size of child buttons.
</para>
@min_width: minimum default width for child buttons.
@min_height: minimum default height for child buttons.
2001-03-22 13:44:00 +00:00
<!-- ##### FUNCTION gtk_button_new_accel ##### -->
<para>
</para>
@uline_label:
@accel_group:
@Returns:
<!-- ##### FUNCTION gtk_button_new_stock ##### -->
<para>
</para>
@stock_id:
@accel_group:
@Returns:
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_clist_construct ##### -->
1999-09-22 21:30:57 +00:00
<para>
2001-03-03 23:29:50 +00:00
Initializes a previously allocated #GtkCList widget for use. This should not
normally be used to create a #GtkCList widget. Use gtk_clist_new() instead.
1999-09-22 21:30:57 +00:00
</para>
2001-03-03 23:29:50 +00:00
@clist: A pointer to an uninitialized #GtkCList widget.
@columns: The number of columns the #GtkCList should have.
@titles: An array of strings that should be used as the titles i
of the columns. There should be enough strings in the array for
the number of columns specified.
1999-09-22 21:30:57 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_color_selection_set_opacity ##### -->
2001-01-31 03:51:14 +00:00
<para>
2001-03-03 23:29:50 +00:00
Controls whether opacity can be set with the #GtkColorSelection.
If this functionality is enabled, the necessary additional widgets
are added to the #GtkColorSelection and the opacity value can be
retrieved via the fourth value in the color array returned by
the gtk_color_selection_get_color() function.
2001-01-31 03:51:14 +00:00
</para>
2001-03-03 23:29:50 +00:00
@colorsel: a #GtkColorSelection.
@use_opacity: a boolean indicating whether the opacity selection
is enabled.
2001-01-31 03:51:14 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_ctree_construct ##### -->
1999-09-22 21:30:57 +00:00
<para>
2001-03-03 23:29:50 +00:00
This function is not usually used by users.
1999-09-22 21:30:57 +00:00
</para>
2001-03-03 23:29:50 +00:00
@ctree:
@columns:
@tree_column:
@titles:
1999-09-22 21:30:57 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_editable_changed ##### -->
1999-09-22 21:30:57 +00:00
<para>
2001-03-03 23:29:50 +00:00
Causes the "changed" signal to be emitted.
1999-09-22 21:30:57 +00:00
</para>
2001-03-03 23:29:50 +00:00
@editable: a #GtkEditable widget.
1999-09-22 21:30:57 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_editable_claim_selection ##### -->
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
<para>
2001-03-03 23:29:50 +00:00
Claim or disclaim ownership of the PRIMARY X selection.
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
</para>
2001-03-03 23:29:50 +00:00
@editable: a #GtkEditable widget.
@claim: if %TRUE, claim the selection, otherwise, disclaim it.
@time: the timestamp for claiming the selection.
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_font_selection_dialog_set_filter ##### -->
1999-09-22 21:30:57 +00:00
<para>
2001-03-03 23:29:50 +00:00
Sets one of the two font filters, to limit the fonts shown.
1999-09-22 21:30:57 +00:00
</para>
2001-03-03 23:29:50 +00:00
@fsd: a #GtkFontSelectionDialog.
@filter_type: which of the two font filters to set, either
#GTK_FONT_FILTER_BASE or #GTK_FONT_FILTER_USER. The user filter
can be changed by the user, but the base filter is permanent.
@font_type: the types of font to be shown. This is a bitwise combination of
#GTK_FONT_BITMAP, #GTK_FONT_SCALABLE and #GTK_FONT_SCALABLE_BITMAP,
or #GTK_FONT_ALL to show all three font types.
@foundries: a NULL-terminated array of strings containing foundry names which
will be shown, or NULL to show all foundries.
@weights: a NULL-terminated array of strings containing weight names which
will be shown, or NULL to show all weights.
@slants: a NULL-terminated array of strings containing slant names which
will be shown, or NULL to show all slants.
@setwidths: a NULL-terminated array of strings containing setwidth names which
will be shown, or NULL to show all setwidths.
@spacings: a NULL-terminated array of strings containing spacings which
will be shown, or NULL to show all spacings.
@charsets: a NULL-terminated array of strings containing charset names which
will be shown, or NULL to show all charsets.
2000-10-29 08:03:34 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_font_selection_set_filter ##### -->
2000-11-14 16:36:20 +00:00
<para>
2001-03-03 23:29:50 +00:00
Sets one of the two font filters, to limit the fonts shown.
2000-11-14 16:36:20 +00:00
</para>
2001-03-03 23:29:50 +00:00
@fontsel: a #GtkFontSelection.
@filter_type: which of the two font filters to set, either
#GTK_FONT_FILTER_BASE or #GTK_FONT_FILTER_USER. The user filter
can be changed by the user, but the base filter is permanent.
@font_type: the types of font to be shown. This is a bitwise combination of
#GTK_FONT_BITMAP, #GTK_FONT_SCALABLE and #GTK_FONT_SCALABLE_BITMAP,
or #GTK_FONT_ALL to show all three font types.
@foundries: a NULL-terminated array of strings containing foundry names which
will be shown, or NULL to show all foundries.
@weights: a NULL-terminated array of strings containing weight names which
will be shown, or NULL to show all weights.
@slants: a NULL-terminated array of strings containing slant names which
will be shown, or NULL to show all slants.
@setwidths: a NULL-terminated array of strings containing setwidth names which
will be shown, or NULL to show all setwidths.
@spacings: a NULL-terminated array of strings containing spacings which
will be shown, or NULL to show all spacings.
@charsets: a NULL-terminated array of strings containing charset names which
will be shown, or NULL to show all charsets.
2000-11-14 16:36:20 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_identifier_get_type ##### -->
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
<para>
2001-03-03 23:29:50 +00:00
Get the type of GtkIdentifier.
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
</para>
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
@Returns: GtkType -- the enumerated type of something.
2001-02-12 17:50:13 +00:00
2001-03-22 13:44:00 +00:00
<!-- ##### FUNCTION gtk_label_set_markup_with_accel ##### -->
<para>
</para>
@label:
@str:
@Returns:
<!-- ##### FUNCTION gtk_menu_ensure_uline_accel_group ##### -->
<para>
</para>
@menu:
@Returns:
<!-- ##### FUNCTION gtk_menu_get_uline_accel_group ##### -->
<para>
</para>
@menu:
@Returns:
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_object_arg_get ##### -->
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
<para>
2001-03-03 23:29:50 +00:00
Private function to get an argument and argument info from an object.
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
</para>
2001-03-03 23:29:50 +00:00
@object: the object whose argument should be retrieved.
@arg: the argument, for the name on input, the rest is filled on output.
@info: a #GtkArgInfo structure to optionally fill in.
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_object_arg_get_info ##### -->
1999-08-16 18:51:52 +00:00
<para>
2001-03-03 23:29:50 +00:00
Query information about an argument type.
1999-08-16 18:51:52 +00:00
</para>
2001-03-03 23:29:50 +00:00
@object_type: type of object to query about.
@arg_name: name of the argument.
@info_p: pointer to be filled in with a pointer to the GtkArgInfo.
@Returns: an error message, or NULL on success.
It is the caller's responsibility to call g_free() in the event of error.
1999-08-16 18:51:52 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_object_arg_set ##### -->
2001-01-09 16:41:17 +00:00
<para>
2001-03-03 23:29:50 +00:00
Private function to set an argument and argument info to an object.
2001-01-09 16:41:17 +00:00
</para>
2001-03-03 23:29:50 +00:00
@object: the object whose argument should be set.
@arg: the argument.
@info: infomation about this type of argument in general.
2001-01-09 16:41:17 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_object_args_collect ##### -->
2001-01-09 16:41:17 +00:00
<para>
2001-03-03 23:29:50 +00:00
Private: Gets an array of #GtkArgs from a va_list C structure.
2001-01-09 16:41:17 +00:00
</para>
2001-03-03 23:29:50 +00:00
@object_type: the type of object to collect arguments for.
@arg_list_p: pointer to be filled in with a list of parsed arguments.
@info_list_p: optional pointer for a returned list #GtkArgInfos.
@first_arg_name: name of first argument.
@var_args: value of first argument, followed by more key/value pairs,
terminated by NULL.
@Returns: an error message, or NULL on success.
It is the caller's responsibility to call g_free() in the event of error.
2001-01-09 16:41:17 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_object_class_add_signals ##### -->
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
<para>
2001-03-03 23:29:50 +00:00
Add an array of signals to a #GtkObjectClass.
Usually this is called when registering a new type of object.
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
</para>
2000-10-18 18:42:54 +00:00
2001-03-03 23:29:50 +00:00
@klass: the object class to append signals to.
@signals: the signals to append.
@nsignals: the number of signals being appended.
2000-10-18 18:42:54 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_object_class_user_signal_new ##### -->
1999-09-22 21:30:57 +00:00
<para>
2001-03-03 23:29:50 +00:00
Define a signal-handler for a new signal on an already defined
object.
</para>
<para>
See the signal documentation for more general information.
1999-09-22 21:30:57 +00:00
</para>
2001-03-03 23:29:50 +00:00
@klass: the object class to define the signal for.
@name: the name of the signal.
@signal_flags: the default emission behavior for the signal.
See gtk_signal_new().
@marshaller: a function that will take an array of GtkArgs
and invoke the appropriate handler with the normal calling
conventions.
@return_val: specify the return-value type for the signal
(or GTK_TYPE_NONE for no return-value).
@nparams: specify the number of parameters the signal
receives from the caller of gtk_signal_emit().
@Varargs: list of nparams #GtkTypes to pass to the signal handlers.
@Returns: the signal id. (See #GtkSignals)
1999-09-22 21:30:57 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_object_class_user_signal_newv ##### -->
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
<para>
2001-03-03 23:29:50 +00:00
Define a signal-handler for a new signal on an already defined
object.
</para>
@klass: the object class to define the signal for.
@name: the name of the signal.
@signal_flags: the default emission behavior for the signal.
See gtk_signal_new().
@marshaller: takes a GtkObject, a #GtkSignalFunc, and an array
of arguments, and invokes the function using the appropriate
calling conventions. Usually just select a function
out of gtkmarshal.h.
@return_val: specify the return-value type for the signal (possibly
#GTK_TYPE_NONE).
@nparams: specify the number of parameters the signal
receives from the caller of gtk_signal_emit().
@params: array of #GtkTypes the signal handlers for this signal
should have in their prototype (of length nparams).
@Returns: the signal id. (See #GtkSignals)
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_object_constructed ##### -->
<para>
Mark an allocated object as constructed.
This is used for situations
that require precise control of the construction process.
</para>
<para>
This is done when gtk_object_default_construct() is inadequate.
In #GtkCList the need arises because #GtkCList does construction work that
must happen <emphasis>after</emphasis> its derivers. This work
cannot be done in an initializer function, so an alternate
constructor is mandatory. It calls gtk_object_constructed() to
indicate it has done its job, so that no other constructor will
be invoked.
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
</para>
2000-11-14 16:36:20 +00:00
<para>
2001-03-03 23:29:50 +00:00
Normally this function is just automatically run from
gtk_object_default_construct().
2000-11-14 16:36:20 +00:00
</para>
2001-03-03 23:29:50 +00:00
@object: object which has been constructed. This is usually
done automatically by gtk_object_new() and gtk_object_newv().
2000-11-14 16:36:20 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_object_default_construct ##### -->
1999-09-22 21:30:57 +00:00
<para>
2001-03-03 23:29:50 +00:00
This function is called to construct arguments that haven't been initialized
but have the #GTK_ARG_CONSTRUCT flag set.
1999-09-22 21:30:57 +00:00
</para>
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
<para>
2001-03-03 23:29:50 +00:00
All number arguments are set to 0. All pointers and strings
are set to NULL.
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
</para>
<para>
2001-03-03 23:29:50 +00:00
Normally invoked by gtk_object_new() automatically; gtk_type_new() can
be used to bypass it.
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
</para>
1999-09-22 21:30:57 +00:00
2001-03-03 23:29:50 +00:00
@object: the object to initialize.
2000-11-04 16:31:37 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_object_getv ##### -->
2000-10-18 18:42:54 +00:00
<para>
2001-03-03 23:29:50 +00:00
Gets an array of argument values from an object.
2000-10-18 18:42:54 +00:00
</para>
2001-03-03 23:29:50 +00:00
@object: the object to get arguments from.
@n_args: the number of arguments to query.
@args: the arguments to fill in.
2000-10-18 18:42:54 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_object_newv ##### -->
2001-01-31 03:51:14 +00:00
<para>
2001-03-03 23:29:50 +00:00
Construct an object with an array of arguments.
2001-01-31 03:51:14 +00:00
</para>
2001-03-03 23:29:50 +00:00
@object_type: the type of the object to create.
@n_args: the number of arguments to set.
@args: an array of n_args arguments (which are name and value pairs).
@Returns: the new GtkObject.
2001-01-31 03:51:14 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_object_query_args ##### -->
2001-01-09 16:41:17 +00:00
<para>
2001-03-03 23:29:50 +00:00
Get all the arguments that may be used for a given type.
2001-01-09 16:41:17 +00:00
</para>
<para>
2001-03-03 23:29:50 +00:00
In Java, this type of mechanism is called
<wordasword>introspection</wordasword>. It is used by applications
like Glade, that have to determine what can be done to an object
at run-time.
2001-01-09 16:41:17 +00:00
</para>
2001-03-03 23:29:50 +00:00
@class_type: the GtkType of the ObjectClass
(returned from GTK_OBJECT_CLASS(class)->type for example).
@arg_flags: if non-NULL, obtains the #GtkArgFlags that apply to
each argument. You must g_free() this if you request it.
@n_args: the number of arguments is returned in this field.
@Returns: an array of arguments, that you must deallocate with g_free().
2001-01-09 16:41:17 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_object_setv ##### -->
1999-09-22 21:30:57 +00:00
<para>
2001-03-03 23:29:50 +00:00
Set an array of arguments.
1999-09-22 21:30:57 +00:00
</para>
2001-03-03 23:29:50 +00:00
@object: the object whose arguments should be set.
@n_args: the number of arguments to set.
@args: the desired values, as an array of #GtkArgs (which contain
the names, types, and values of the arguments).
1999-09-22 21:30:57 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_paned_compute_position ##### -->
2001-01-09 16:41:17 +00:00
<para>
2001-03-03 23:29:50 +00:00
Internal function used by #GtkHPaned and #GtkVPaned
2001-01-09 16:41:17 +00:00
</para>
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
@paned:
@allocation:
@child1_req:
@child2_req:
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_rc_init ##### -->
2001-01-09 16:41:17 +00:00
<para>
2001-03-03 23:29:50 +00:00
Internal function.
2001-01-09 16:41:17 +00:00
</para>
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_ruler_draw_pos ##### -->
2001-01-09 16:41:17 +00:00
<para>
</para>
2001-03-03 23:29:50 +00:00
@ruler: the gtkruler
2001-01-09 16:41:17 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_ruler_draw_ticks ##### -->
2000-09-07 18:17:06 +00:00
<para>
1999-09-22 21:30:57 +00:00
2000-09-07 18:17:06 +00:00
</para>
1999-09-22 21:30:57 +00:00
2001-03-03 23:29:50 +00:00
@ruler: the gtkruler
2001-02-12 17:50:13 +00:00
2001-03-22 22:41:05 +00:00
<!-- ##### FUNCTION gtk_signal_add_emission_hook ##### -->
<para>
Add an emission hook for a type of signal, for any object.
</para>
@signal_id: the type of signal to hook for.
@hook_func: the function to invoke to handle the emission hook.
@data: the user data passed in to hook_func.
@Returns: the id (that you may pass as a parameter
to gtk_signal_remove_emission_hook()).
@i:
@h:
@d:
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_signal_add_emission_hook_full ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
Add an emission hook for a type of signal, for any object.
(with control of what happens when the hook is
destroyed).
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
@signal_id: the type of signal add the hook for.
@hook_func: the function to invoke to handle the hook.
@data: the user data passed in to hook_func.
@destroy: a function to invoke when the hook is destroyed,
to clean up any allocation done just for this
signal handler.
@Returns: the id (that you may pass as a parameter
to gtk_signal_remove_emission_hook()).
2001-02-12 17:50:13 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_signal_handler_pending_by_id ##### -->
2001-02-12 17:50:13 +00:00
<para>
2001-03-03 23:29:50 +00:00
Returns whether a connection id is valid (and optionally not blocked).
2001-02-12 17:50:13 +00:00
</para>
2001-03-03 23:29:50 +00:00
@object: the object to search for the desired handler.
@handler_id: the connection id.
@may_be_blocked: whether it is acceptable to return a blocked
handler.
@Returns: TRUE if the signal exists and wasn't blocked,
unless #may_be_blocked was specified. FALSE otherwise.
1999-09-22 21:30:57 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_signal_handlers_destroy ##### -->
1999-09-22 21:30:57 +00:00
<para>
2001-03-03 23:29:50 +00:00
Destroy all the signal handlers connected to an object.
This is done automatically when the object is destroyed.
1999-09-22 21:30:57 +00:00
</para>
2000-09-07 18:17:06 +00:00
<para>
2001-03-03 23:29:50 +00:00
This function is labeled private.
2000-09-07 18:17:06 +00:00
</para>
2001-03-03 23:29:50 +00:00
@object: the object whose signal handlers should be destroyed.
2000-09-07 18:17:06 +00:00
2001-03-22 22:41:05 +00:00
<!-- ##### FUNCTION gtk_signal_init ##### -->
<para>
</para>
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_signal_n_emissions ##### -->
2001-01-09 16:41:17 +00:00
<para>
2001-03-03 23:29:50 +00:00
Find out the recursion depth of emissions for a particular type
of signal and object. (So it will
always return 0 or 1 if #GTK_RUN_NO_RECURSE is specified)
This is a way to avoid recursion: you can see if
you are currently running in that signal handler and emit it only
if you are.
2001-01-09 16:41:17 +00:00
</para>
2001-03-03 23:29:50 +00:00
<para>Another way to look at it is that this number increases
by one when #gtk_signal_emit(), et al, are called,
and decreases by one when #gtk_signal_emit() returns.
2001-01-09 16:41:17 +00:00
</para>
2001-03-03 23:29:50 +00:00
@object: the object with the signal handler.
@signal_id: the signal id.
@Returns: the recursion depth of emissions of this signal for this
object.
2001-01-09 16:41:17 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_signal_n_emissions_by_name ##### -->
1999-09-22 21:30:57 +00:00
<para>
2001-03-03 23:29:50 +00:00
Find out the recursion depth of emissions for a particular type
of signal and object. Just like gtk_signal_n_emissions()
except it will lookup the signal id for you.
1999-09-22 21:30:57 +00:00
</para>
2001-03-03 23:29:50 +00:00
@object: the object with the signal handler.
@name: the signal name.
@Returns: the recursion depth of emissions of this signal for this
object.
1999-09-22 21:30:57 +00:00
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_signal_query ##### -->
1999-09-22 21:30:57 +00:00
<para>
2001-03-03 23:29:50 +00:00
Obtain information about a signal.
1999-09-22 21:30:57 +00:00
</para>
2001-03-03 23:29:50 +00:00
@signal_id: the signal type identifier.
@Returns: a pointer to a GtkSignalQuery structure
which contains all the information, or NULL.
The pointer is allocated just for you: you must g_free() it.
1999-09-22 21:30:57 +00:00
2001-03-22 22:41:05 +00:00
<!-- ##### FUNCTION gtk_signal_remove_emission_hook ##### -->
<para>
Delete an emission hook. (see gtk_signal_add_emission_hook())
</para>
@signal_id: the id of the signal type.
@hook_id: the id of the emission handler, returned by add_emission_hook().
@i:
@h:
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_signal_set_funcs ##### -->
1999-09-22 21:30:57 +00:00
<para>
2001-03-03 23:29:50 +00:00
These set default functions to call when the user didn't
supply a function when connecting. (These are rarely
used, and probably only for language bindings)
1999-09-22 21:30:57 +00:00
</para>
2001-01-09 16:41:17 +00:00
<para>
2001-03-03 23:29:50 +00:00
By default, there are no such functions.
2001-01-09 16:41:17 +00:00
</para>
2001-03-03 23:29:50 +00:00
@marshal_func: the function to invoke on every handlers for which there
isn't a function pointer. May be NULL.
@destroy_func: the function to invoke when each hook is destroyed.
May be NULL.
2001-01-09 16:41:17 +00:00
2001-03-18 04:50:34 +00:00
<!-- ##### FUNCTION gtk_spin_button_set_shadow_type ##### -->
<para>
Creates a border around the arrows of a #GtkSpinButton. The type of border is determined by @shadow_type.
</para>
@spin_button: a #GtkSpinButton
@shadow_type: the new border type.
2001-03-03 23:29:50 +00:00
<!-- ##### FUNCTION gtk_trace_referencing ##### -->
1999-09-22 21:30:57 +00:00
<para>
2001-03-03 23:29:50 +00:00
Private: print debugging information while doing a gtk_object_ref() or
a gtk_object_unref().
1999-09-22 21:30:57 +00:00
</para>
2001-03-03 23:29:50 +00:00
@object: object to reference or unreference.
@func: name of caller's function to print (used within macros).
@dummy: unused.
@line: line number (used within macros).
@do_ref: whether to reference or unreference.
1999-09-22 21:30:57 +00:00
2001-03-09 14:49:00 +00:00
<!-- ##### FUNCTION gtk_tree_model_ref_iter ##### -->
<para>
</para>
@tree_model:
@iter:
<!-- ##### FUNCTION gtk_tree_model_unref_iter ##### -->
<para>
</para>
@tree_model:
@iter:
2001-02-12 17:50:13 +00:00
<!-- ##### FUNCTION gtk_type_check_class_cast ##### -->
1999-09-22 21:30:57 +00:00
<para>
2001-02-12 17:50:13 +00:00
Given a GtkTypeClass pointer @klass, and a GtkType @cast_type, make
sure that it's okay to cast something of that @klass into a @cast_type.
1999-09-22 21:30:57 +00:00
</para>
2001-02-12 17:50:13 +00:00
@klass: GtkTypeClass*
@cast_type: GtkType
@Returns: Always return @klass.
1999-09-22 21:30:57 +00:00
2001-02-12 17:50:13 +00:00
<!-- ##### FUNCTION gtk_type_check_object_cast ##### -->
2000-10-29 08:03:34 +00:00
<para>
2001-02-12 17:50:13 +00:00
Given a pointer to a GtkTypeObject @type_object, and a GtkType @cast_type,
make sure that it's okay to cast @type_object into a @cast_type.
2000-10-29 08:03:34 +00:00
</para>
2001-02-12 17:50:13 +00:00
@type_object: GtkTypeObject*
@cast_type: GtkType
@Returns: the same GtkTypeObject* as @type_object
2000-10-29 08:03:34 +00:00
2001-02-12 17:50:13 +00:00
<!-- ##### FUNCTION gtk_type_children_types ##### -->
2000-10-29 08:03:34 +00:00
<para>
2001-02-12 17:50:13 +00:00
Return the pointer to the type's children's types.
2000-10-29 08:03:34 +00:00
</para>
2001-02-12 17:50:13 +00:00
@type: GtkType
@Returns: pointer to a GList
2000-10-29 08:03:34 +00:00
2001-02-12 17:50:13 +00:00
<!-- ##### FUNCTION gtk_type_describe_heritage ##### -->
1999-09-22 21:30:57 +00:00
<para>
2001-02-12 17:50:13 +00:00
Print the types @type inherits from.
1999-09-22 21:30:57 +00:00
</para>
2001-02-12 17:50:13 +00:00
@type: GtkType
1999-09-22 21:30:57 +00:00
2001-02-12 17:50:13 +00:00
<!-- ##### FUNCTION gtk_type_describe_tree ##### -->
2000-10-30 23:21:38 +00:00
<para>
2001-02-12 17:50:13 +00:00
Given a @type, describe all of its children, and their children. Only
show the size if @show_size is true.
2000-10-30 23:21:38 +00:00
</para>
2001-02-12 17:50:13 +00:00
@type: GtkType
@show_size: gboolean
1999-09-22 21:30:57 +00:00
2001-02-12 17:50:13 +00:00
<!-- ##### FUNCTION gtk_type_free ##### -->
2000-11-04 16:31:37 +00:00
<para>
2001-02-12 17:50:13 +00:00
Given the type of an object and a pointer to it, the object is freed.
1999-09-22 21:30:57 +00:00
</para>
2001-02-12 17:50:13 +00:00
@type: GtkType
@mem: gpointer to the object
1999-09-22 21:30:57 +00:00
2001-02-12 17:50:13 +00:00
<!-- ##### FUNCTION gtk_type_get_varargs_type ##### -->
1999-09-22 21:30:57 +00:00
<para>
2001-02-12 17:50:13 +00:00
Get the varargs type associated with @foreign_type
</para>
1999-09-22 21:30:57 +00:00
2001-02-12 17:50:13 +00:00
@foreign_type: GtkType
@Returns: GtkType
<!-- ##### FUNCTION gtk_type_parent_class ##### -->
<para>
Return the class of the parent. Initialize the class if necessary.
Return NULL if anything goes wrong.
1999-09-22 21:30:57 +00:00
</para>
2001-02-12 17:50:13 +00:00
@type: GtkType
@Returns: gpointer to the klass.
1999-09-22 21:30:57 +00:00
2001-02-12 17:50:13 +00:00
<!-- ##### FUNCTION gtk_type_query ##### -->
2000-10-18 18:42:54 +00:00
<para>
2001-02-12 17:50:13 +00:00
Given a type, return various interesting parameters of the type.
</para>
@type: GtkType
@Returns: GtkTypeQuery*
2000-10-18 18:42:54 +00:00
2001-02-12 17:50:13 +00:00
<!-- ##### FUNCTION gtk_type_register_enum ##### -->
<para>
Register a new set of enum @values and give them the name in
@type_name.
2000-10-18 18:42:54 +00:00
</para>
2001-02-12 17:50:13 +00:00
@type_name: must not be null.
@values: GtkEnumValue*
@Returns:
2000-10-18 18:42:54 +00:00
2001-02-12 17:50:13 +00:00
<!-- ##### FUNCTION gtk_type_register_flags ##### -->
2000-11-04 16:31:37 +00:00
<para>
2001-02-12 17:50:13 +00:00
Register a new set of flags @values and give them the name in
@type_name.
</para>
@type_name: must not be null.
@values: GtkFlagValue*
@Returns:
2000-11-04 16:31:37 +00:00
2001-02-12 17:50:13 +00:00
<!-- ##### FUNCTION gtk_type_set_chunk_alloc ##### -->
<para>
Set the mem_chunk size so it will hold @n_chunks of the objects of that @type.
2000-11-04 16:31:37 +00:00
</para>
2000-09-07 18:17:06 +00:00
2001-02-12 17:50:13 +00:00
@type: There must be an unlocked TypeNode associated with this type otherwise nothing happens.
@n_chunks:
2000-09-07 18:17:06 +00:00
2001-02-12 17:50:13 +00:00
<!-- ##### FUNCTION gtk_type_set_varargs_type ##### -->
<para>
Set the varargs type for a fundamental type @foreign_type.
</para>
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
2001-02-12 17:50:13 +00:00
@foreign_type: Must be a GtkType with a sequence number of zero. Must not be a
fundamental type.
@varargs_type: Must be a GtkType which is either structured or flag, or NONE.
Derive from GtkDialog, and use stock buttons. Should be 100% source
2000-11-02 Havoc Pennington <hp@redhat.com>
* gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
use stock buttons. Should be 100% source compatible, appropriate
filesel fields now point to dialog->vbox and dialog->action_area.
On the bizarre side, dialog->action_area and filesel->action_area
are not the same widget.
(gtk_file_selection_init): Put some padding around the selection
entry, so it isn't touching the GtkDialog separator.
* gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
use stock buttons, etc. Should also be source compatible.
Set the dialog default title in _init not _new().
* gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
Use stock buttons; don't put a button box inside the existing
dialog button box. Don't bother with push/pop colormap anymore.
* gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
for message dialog, and necessary for the font selection and color
selection with help and apply buttons.
* gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
to the created button widget. Set GTK_CAN_DEFAULT on the button.
(gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
between buttons, put less padding around the action area.
(gtk_dialog_run): Exit on unmap rather than on destroy.
This will also exit the loop if the widget is hidden.
(gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
instead of GTK_RESPONSE_NONE; since we're already adding a bunch
of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
special-case delete event.
* gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
formatting
2000-11-06 16:44:01 +00:00
2001-03-22 13:44:00 +00:00
<!-- ##### FUNCTION gtk_window_get_default_accel_group ##### -->
<para>
</para>
@window:
@Returns: