mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Doc typo fix. (#68172)
* gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172) * gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs. * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document. * gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs. * gtk/gtkrc.c (gtk_rc_get_style_by_paths), gtk/gtkwidget.c (gtk_widget_get_toplevel, gtk_widget_push_composite_child), gtk/gtkdialog.c (gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc from messing up the indentation of inline examples. * gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv() instead of getenv(). * gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c, gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c, gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes. * gtk/gtkaccelmap.c (gtk_accel_map_add_filter, gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner): Document. * gtk/tmpl/gtksocket.sgml: Mention gtk_socket_get_id() instead of GTK_WINDOW_XWINDOW(). (#68172) * gtk/gtk-sections.txt: Move functions which are documented as "private" or "internal" into Private subsections. * gtk/tmpl/gtkdnd.sgml, gtk/tmpl/gtkobject.sgml, gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwidget.sgml, gtk/tmpl/gtkclipboard.sgml, gtk/tmpl/gtkstyle.sgml, gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtkfeatures.sgml: Minor markup fixes. * gtk/tmpl/gtksignal.sgml: Add link to GLib signal docs. * gtk/tmpl/gtkpreview.sgml, gtk/tmpl/gtktext.sgml, gtk/tmpl/gtktree.sgml: Remove "deprecated" from short desc. * gtk/tmpl/gtkrc.sgml: Correct names of default RC files.
This commit is contained in:
parent
947c91dca7
commit
c1808baa01
27
ChangeLog
27
ChangeLog
@ -1,3 +1,30 @@
|
||||
2002-01-07 Matthias Clasen <matthiasc@poet.de>
|
||||
|
||||
* gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
|
||||
|
||||
* gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
|
||||
|
||||
* gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
|
||||
|
||||
* gtk/gtkrc.c (gtk_rc_get_style_by_paths),
|
||||
gtk/gtkwidget.c (gtk_widget_get_toplevel,
|
||||
gtk_widget_push_composite_child), gtk/gtkdialog.c
|
||||
(gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
|
||||
from messing up the indentation of inline examples.
|
||||
|
||||
* gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv()
|
||||
instead of getenv().
|
||||
|
||||
* gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
|
||||
gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
|
||||
gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
|
||||
|
||||
* gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
|
||||
gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
|
||||
Document.
|
||||
|
||||
2002-01-07 Anders Carlsson <andersca@gnu.org>
|
||||
|
||||
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
|
||||
|
@ -1,3 +1,30 @@
|
||||
2002-01-07 Matthias Clasen <matthiasc@poet.de>
|
||||
|
||||
* gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
|
||||
|
||||
* gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
|
||||
|
||||
* gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
|
||||
|
||||
* gtk/gtkrc.c (gtk_rc_get_style_by_paths),
|
||||
gtk/gtkwidget.c (gtk_widget_get_toplevel,
|
||||
gtk_widget_push_composite_child), gtk/gtkdialog.c
|
||||
(gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
|
||||
from messing up the indentation of inline examples.
|
||||
|
||||
* gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv()
|
||||
instead of getenv().
|
||||
|
||||
* gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
|
||||
gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
|
||||
gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
|
||||
|
||||
* gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
|
||||
gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
|
||||
Document.
|
||||
|
||||
2002-01-07 Anders Carlsson <andersca@gnu.org>
|
||||
|
||||
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
|
||||
|
@ -1,3 +1,30 @@
|
||||
2002-01-07 Matthias Clasen <matthiasc@poet.de>
|
||||
|
||||
* gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
|
||||
|
||||
* gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
|
||||
|
||||
* gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
|
||||
|
||||
* gtk/gtkrc.c (gtk_rc_get_style_by_paths),
|
||||
gtk/gtkwidget.c (gtk_widget_get_toplevel,
|
||||
gtk_widget_push_composite_child), gtk/gtkdialog.c
|
||||
(gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
|
||||
from messing up the indentation of inline examples.
|
||||
|
||||
* gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv()
|
||||
instead of getenv().
|
||||
|
||||
* gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
|
||||
gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
|
||||
gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
|
||||
|
||||
* gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
|
||||
gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
|
||||
Document.
|
||||
|
||||
2002-01-07 Anders Carlsson <andersca@gnu.org>
|
||||
|
||||
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
|
||||
|
@ -1,3 +1,30 @@
|
||||
2002-01-07 Matthias Clasen <matthiasc@poet.de>
|
||||
|
||||
* gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
|
||||
|
||||
* gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
|
||||
|
||||
* gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
|
||||
|
||||
* gtk/gtkrc.c (gtk_rc_get_style_by_paths),
|
||||
gtk/gtkwidget.c (gtk_widget_get_toplevel,
|
||||
gtk_widget_push_composite_child), gtk/gtkdialog.c
|
||||
(gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
|
||||
from messing up the indentation of inline examples.
|
||||
|
||||
* gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv()
|
||||
instead of getenv().
|
||||
|
||||
* gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
|
||||
gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
|
||||
gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
|
||||
|
||||
* gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
|
||||
gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
|
||||
Document.
|
||||
|
||||
2002-01-07 Anders Carlsson <andersca@gnu.org>
|
||||
|
||||
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
|
||||
|
@ -1,3 +1,30 @@
|
||||
2002-01-07 Matthias Clasen <matthiasc@poet.de>
|
||||
|
||||
* gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
|
||||
|
||||
* gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
|
||||
|
||||
* gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
|
||||
|
||||
* gtk/gtkrc.c (gtk_rc_get_style_by_paths),
|
||||
gtk/gtkwidget.c (gtk_widget_get_toplevel,
|
||||
gtk_widget_push_composite_child), gtk/gtkdialog.c
|
||||
(gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
|
||||
from messing up the indentation of inline examples.
|
||||
|
||||
* gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv()
|
||||
instead of getenv().
|
||||
|
||||
* gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
|
||||
gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
|
||||
gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
|
||||
|
||||
* gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
|
||||
gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
|
||||
Document.
|
||||
|
||||
2002-01-07 Anders Carlsson <andersca@gnu.org>
|
||||
|
||||
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
|
||||
|
@ -1,3 +1,30 @@
|
||||
2002-01-07 Matthias Clasen <matthiasc@poet.de>
|
||||
|
||||
* gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
|
||||
|
||||
* gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
|
||||
|
||||
* gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
|
||||
|
||||
* gtk/gtkrc.c (gtk_rc_get_style_by_paths),
|
||||
gtk/gtkwidget.c (gtk_widget_get_toplevel,
|
||||
gtk_widget_push_composite_child), gtk/gtkdialog.c
|
||||
(gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
|
||||
from messing up the indentation of inline examples.
|
||||
|
||||
* gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv()
|
||||
instead of getenv().
|
||||
|
||||
* gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
|
||||
gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
|
||||
gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
|
||||
|
||||
* gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
|
||||
gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
|
||||
Document.
|
||||
|
||||
2002-01-07 Anders Carlsson <andersca@gnu.org>
|
||||
|
||||
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
|
||||
|
@ -1,3 +1,30 @@
|
||||
2002-01-07 Matthias Clasen <matthiasc@poet.de>
|
||||
|
||||
* gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
|
||||
|
||||
* gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
|
||||
|
||||
* gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
|
||||
|
||||
* gtk/gtkrc.c (gtk_rc_get_style_by_paths),
|
||||
gtk/gtkwidget.c (gtk_widget_get_toplevel,
|
||||
gtk_widget_push_composite_child), gtk/gtkdialog.c
|
||||
(gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
|
||||
from messing up the indentation of inline examples.
|
||||
|
||||
* gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv()
|
||||
instead of getenv().
|
||||
|
||||
* gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
|
||||
gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
|
||||
gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
|
||||
|
||||
* gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
|
||||
gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
|
||||
Document.
|
||||
|
||||
2002-01-07 Anders Carlsson <andersca@gnu.org>
|
||||
|
||||
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
|
||||
|
@ -1,3 +1,24 @@
|
||||
2002-01-07 Matthias Clasen <matthiasc@poet.de>
|
||||
|
||||
* gtk/tmpl/gtksocket.sgml: Mention gtk_socket_get_id()
|
||||
instead of GTK_WINDOW_XWINDOW(). (#68172)
|
||||
|
||||
* gtk/gtk-sections.txt: Move functions which are documented
|
||||
as "private" or "internal" into Private subsections.
|
||||
|
||||
* gtk/tmpl/gtkdnd.sgml, gtk/tmpl/gtkobject.sgml,
|
||||
gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtktooltips.sgml,
|
||||
gtk/tmpl/gtkwidget.sgml, gtk/tmpl/gtkclipboard.sgml,
|
||||
gtk/tmpl/gtkstyle.sgml, gtk/tmpl/gtkselection.sgml,
|
||||
gtk/tmpl/gtkfeatures.sgml: Minor markup fixes.
|
||||
|
||||
* gtk/tmpl/gtksignal.sgml: Add link to GLib signal docs.
|
||||
|
||||
* gtk/tmpl/gtkpreview.sgml, gtk/tmpl/gtktext.sgml,
|
||||
gtk/tmpl/gtktree.sgml: Remove "deprecated" from short desc.
|
||||
|
||||
* gtk/tmpl/gtkrc.sgml: Correct names of default RC files.
|
||||
|
||||
2002-01-06 Matthias Clasen <matthiasc@poet.de>
|
||||
|
||||
* gtk/tmpl/gtktypeutils.sgml: Replace GTK_NO_CHECK_CASTS by
|
||||
|
@ -1688,8 +1688,6 @@ GtkObjectFlags
|
||||
GTK_OBJECT_FLAGS
|
||||
GTK_OBJECT_FLOATING
|
||||
GTK_OBJECT_CONNECTED
|
||||
GTK_OBJECT_SET_FLAGS
|
||||
GTK_OBJECT_UNSET_FLAGS
|
||||
GtkArgFlags
|
||||
gtk_object_new
|
||||
gtk_object_sink
|
||||
@ -1726,6 +1724,8 @@ GTK_OBJECT_GET_CLASS
|
||||
<SUBSECTION Private>
|
||||
gtk_object_get_type
|
||||
GTK_ARG_READWRITE
|
||||
GTK_OBJECT_SET_FLAGS
|
||||
GTK_OBJECT_UNSET_FLAGS
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
@ -3990,7 +3990,7 @@ gtk_selection_data_targets_include_text
|
||||
gtk_selection_remove_all
|
||||
gtk_selection_data_copy
|
||||
gtk_selection_data_free
|
||||
<SUBSECTION Internals>
|
||||
<SUBSECTION Private>
|
||||
gtk_selection_clear
|
||||
gtk_selection_incr_event
|
||||
gtk_selection_notify
|
||||
|
@ -2,7 +2,7 @@
|
||||
Clipboards
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
Storing data on Clipboards.
|
||||
Storing data on clipboards.
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
@ -34,7 +34,7 @@ Storing data on Clipboards.
|
||||
with callbacks to convert it into the various data types that you
|
||||
advertise. When the @clear_func you provided is called, you
|
||||
simply free the data blob. The latter is more useful when the
|
||||
contents of clipboard reflect the internal state of a @GObject
|
||||
contents of clipboard reflect the internal state of a #GObject
|
||||
(As an example, for the PRIMARY clipboard, when an entry widget
|
||||
provides the clipboard's contents the contents are simply the
|
||||
text within the selected region.) If the contents change, the
|
||||
@ -53,7 +53,7 @@ Storing data on Clipboards.
|
||||
callback that will be called when the contents are received (or
|
||||
when the request fails.) If you don't want to deal with providing
|
||||
a separate callback, you can also use gtk_clipboard_wait_for_contents().
|
||||
What this does is run the Glib main loop recursively waiting for
|
||||
What this does is run the GLib main loop recursively waiting for
|
||||
the contents. This can simplify the code flow, but you still have
|
||||
to be aware that other callbacks in your program can be called
|
||||
while this recursive mainloop is running.
|
||||
@ -75,7 +75,7 @@ Storing data on Clipboards.
|
||||
|
||||
<varlistentry>
|
||||
<term>#GtkSelection</term>
|
||||
<listitem><para>@GtkClipboard provides a high-level wrapper around the
|
||||
<listitem><para>#GtkClipboard provides a high-level wrapper around the
|
||||
lower level routines that deal with X selections. It is
|
||||
also possibly to directly manipulate the X selections,
|
||||
though it is seldom necessary to do so.</para></listitem>
|
||||
|
@ -26,35 +26,21 @@ in the #GtkWidget class.
|
||||
|
||||
<!-- ##### ENUM GtkDestDefaults ##### -->
|
||||
<para>
|
||||
The #GtkDestfaults enumeration specifies the various
|
||||
The #GtkDestDefaults enumeration specifies the various
|
||||
types of action that will be taken on behalf
|
||||
of the user for a drag destination site.
|
||||
</para>
|
||||
<informaltable pgwide=1 frame="none" role="enum">
|
||||
<tgroup cols="2"><colspec colwidth="2*"><colspec colwidth="8*">
|
||||
<tbody>
|
||||
|
||||
<row>
|
||||
<entry><symbol>GTK_DEST_DEFAULT_MOTION</symbol></entry>
|
||||
<entry>
|
||||
@GTK_DEST_DEFAULT_MOTION:
|
||||
If set for a widget, GTK+, during a drag over this
|
||||
widget will check if the drag matches this widget's
|
||||
list of possible targets and actions.
|
||||
GTK+ will then call gtk_drag_status() as appropriate.
|
||||
</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><symbol>GTK_DEST_DEFAULT_HIGHLIGHT</symbol></entry>
|
||||
<entry>
|
||||
@GTK_DEST_DEFAULT_HIGHLIGHT:
|
||||
If set for a widget, GTK+ will draw a highlight on
|
||||
this widget as long as a drag is over this widget
|
||||
and the widget drag format and action are acceptable.</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><symbol>GTK_DEST_DEFAULT_DROP</symbol></entry>
|
||||
<entry>
|
||||
and the widget drag format and action are acceptable.
|
||||
@GTK_DEST_DEFAULT_DROP:
|
||||
If set for a widget, when a drop occurs, GTK+ will
|
||||
will check if the drag matches this widget's
|
||||
list of possible targets and actions. If so,
|
||||
@ -64,50 +50,23 @@ of the user for a drag destination site.
|
||||
was a move, then if the drag was successful, then
|
||||
%TRUE will be passed for the @delete parameter
|
||||
to gtk_drag_finish().
|
||||
</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><symbol>GTK_DEST_DEFAULT_ALL</symbol></entry>
|
||||
<entry>
|
||||
@GTK_DEST_DEFAULT_ALL:
|
||||
If set, specifies that all default actions should
|
||||
be taken.
|
||||
</entry>
|
||||
</row>
|
||||
|
||||
</tbody></tgroup></informaltable>
|
||||
|
||||
@GTK_DEST_DEFAULT_MOTION:
|
||||
@GTK_DEST_DEFAULT_HIGHLIGHT:
|
||||
@GTK_DEST_DEFAULT_DROP:
|
||||
@GTK_DEST_DEFAULT_ALL:
|
||||
|
||||
<!-- ##### ENUM GtkTargetFlags ##### -->
|
||||
<para>
|
||||
The #GtkTargetFlags enumeration is used to specify
|
||||
constraints on an entry in a #GtkTargetTable.
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry><term> %GTK_TARGET_SAME_APP </term>
|
||||
<listitem>
|
||||
<para>
|
||||
|
||||
@GTK_TARGET_SAME_APP:
|
||||
If this is set, the target will only be selected
|
||||
for drags within a single application.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry><term> %GTK_TARGET_SAME_WIDGET </term>
|
||||
<listitem>
|
||||
<para>
|
||||
@GTK_TARGET_SAME_WIDGET:
|
||||
If this is set, the target will only be selected
|
||||
for drags within a single widget.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
|
||||
@GTK_TARGET_SAME_APP:
|
||||
@GTK_TARGET_SAME_WIDGET:
|
||||
|
||||
<!-- ##### FUNCTION gtk_drag_dest_set ##### -->
|
||||
<para>
|
||||
@ -119,7 +78,7 @@ Sets a widget as a potential drop destination.
|
||||
on behalf of a widget for drops onto that widget. The @targets
|
||||
and @actions fields only are used if %GTK_DEST_DEFAULT_MOTION
|
||||
or %GTK_DEST_DEFAULT_DROP are given.
|
||||
@targets: a pointer to an array of #GtkTargetEntry indicating
|
||||
@targets: a pointer to an array of #GtkTargetEntry<!>s indicating
|
||||
the drop types that this widget will accept.
|
||||
@n_targets: the number of entries in @targets.
|
||||
@actions: a bitmask of possible actions for a drop onto this
|
||||
@ -194,7 +153,7 @@ that the data of the drag will no longer be required.
|
||||
|
||||
<!-- ##### FUNCTION gtk_drag_get_data ##### -->
|
||||
<para>
|
||||
Get the data associated with a drag. When the data
|
||||
Gets the data associated with a drag. When the data
|
||||
is received or the retrieval fails, GTK+ will emit a
|
||||
"drag_data_received" signal. Failure of the retrieval
|
||||
is indicated by the length field of the @selection_data
|
||||
|
@ -60,15 +60,17 @@ represents the micro version of the GTK+ headers you have included.
|
||||
|
||||
<!-- ##### VARIABLE gtk_binary_age ##### -->
|
||||
<para>
|
||||
This is the binary age passed to libtool. If "libtool" means nothing
|
||||
to you, don't worry about it. ;-)
|
||||
This is the binary age passed to <application>libtool</application>. If
|
||||
<application>libtool</application> means nothing to you, don't worry
|
||||
about it. ;-)
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### VARIABLE gtk_interface_age ##### -->
|
||||
<para>
|
||||
This is the interface age passed to libtool. If "libtool" means nothing
|
||||
to you, don't worry about it. ;-)
|
||||
This is the interface age passed to <application>libtool</application>. If
|
||||
<application>libtool</application> means nothing to you, don't worry
|
||||
about it. ;-)
|
||||
</para>
|
||||
|
||||
|
||||
@ -87,7 +89,7 @@ micro version of GTK+ than the one they were compiled against.
|
||||
@required_major: the required major version.
|
||||
@required_minor: the required major version.
|
||||
@required_micro: the required major version.
|
||||
@Returns: NULL if the GTK+ library is compatible with the given version, or
|
||||
@Returns: %NULL if the GTK+ library is compatible with the given version, or
|
||||
a string describing the version mismatch.
|
||||
|
||||
|
||||
@ -142,8 +144,8 @@ Returns %TRUE if the version of the GTK+ header files is the same
|
||||
as the passed-in version.
|
||||
</para>
|
||||
|
||||
@major: major version (first number in 1.2.5)
|
||||
@minor: minor version (second number in 1.2.5)
|
||||
@micro: micro version (third number in 1.2.5)
|
||||
@major: major version (e.g. 1 for version 1.2.5)
|
||||
@minor: minor version (e.g. 2 for version 1.2.5)
|
||||
@micro: micro version (e.g. 5 for version 1.2.5)
|
||||
|
||||
|
||||
|
@ -80,7 +80,7 @@ In particular, widgets are almost always destroyed in this way.
|
||||
</para></listitem>
|
||||
<listitem><para> Because of the floating reference count, you don't need to
|
||||
worry about reference counting for widgets and toplevel windows, unless you
|
||||
explicitly call g_object_ref() yourself. </para></listitem>
|
||||
explicitly call g_object_ref() yourself.</para></listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
GtkPreview
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
deprecated widget to display RGB or grayscale data.
|
||||
widget to display RGB or grayscale data.
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
|
@ -16,28 +16,33 @@ at runtime.
|
||||
An application can cause GTK+ to parse a specific RC
|
||||
file by calling gtk_rc_parse(). In addition to this,
|
||||
certain files will be read at the end of gtk_init().
|
||||
Unless modified, the files looked for will be <filename>.gtkrc</filename>
|
||||
in the users home directory, and
|
||||
<filename>$localstatedir/gtk/gtkrc</filename>
|
||||
(<literal>$localstatedir</literal> defaults to
|
||||
<filename>/usr/local/etc</filename>).
|
||||
Unless modified, the files looked for will be
|
||||
<filename><SYSCONFDIR>/gtk-2.0/gtkrc</filename>
|
||||
and <filename>.gtkrc-2.0</filename> in the users home directory.
|
||||
(<filename><SYSCONFDIR></filename> defaults to
|
||||
<filename>/usr/local/etc</filename>. It can be changed with the
|
||||
<option>--prefix</option> or <option>--sysconfdir</option> options when
|
||||
configuring GTK+.)
|
||||
</para>
|
||||
<para>
|
||||
The set of these <firstterm>default</firstterm> files
|
||||
can be retrieved with gtk_rc_get_default_files()
|
||||
and modified with gtk_rc_add_default_file() and
|
||||
gtk_rc_set_default_files().
|
||||
Additionally, the <envar>GTK_RC_FILES</envar> environment variable
|
||||
can be set to a #G_SEARCHPATH_SEPARATOR_S-separated list of files
|
||||
in order to overwrite the set of default files at runtime.
|
||||
</para>
|
||||
<para>
|
||||
For each default file, in addition to the file itself,
|
||||
GTK+ will look for a locale-specific file that will
|
||||
be parsed in addition to the main file. For instance,
|
||||
if <literal>LANG</literal> is set to <literal>ja_JP.ujis</literal>,
|
||||
be parsed before the main file. For instance,
|
||||
if <envar>LANG</envar> is set to <literal>ja_JP.ujis</literal>,
|
||||
when loading the default file <filename>~/.gtkrc</filename>
|
||||
then GTK+ looks for <filename>~/.gtkrc.ja_JP.ujis</filename>,
|
||||
<filename>~/.gtkrc.ja_JP</filename>, and
|
||||
<filename>~/.gtkrc.ja</filename>, and parses the
|
||||
first one it finds.
|
||||
<filename>~/.gtkrc.ja</filename>, and parses all files that
|
||||
it finds.
|
||||
</para>
|
||||
</refsect2>
|
||||
|
||||
@ -68,12 +73,12 @@ hierarchy. Both the widget and the class paths consists of a
|
||||
parents of the widget and the widget itself from
|
||||
outermost to innermost. The difference is that in
|
||||
the widget path, the name assigned by
|
||||
<function>gtk_widget_set_name()</function> is used
|
||||
gtk_widget_set_name() is used
|
||||
if present, otherwise the class name of the widget, while
|
||||
for the widget path, the class name is always used.
|
||||
</para>
|
||||
<para>
|
||||
So, if you have a <classname>GtkEntry</classname> named
|
||||
So, if you have a #GtkEntry named
|
||||
<literal>"myentry"</literal>, inside of a of a window
|
||||
named <literal>"mywindow"</literal>, then the
|
||||
widget path is: <literal>"mwindow.GtkHBox.myentry"</literal>
|
||||
@ -87,18 +92,18 @@ pattern:
|
||||
<informalexample><programlisting>
|
||||
class "GtkButton" style "my-style"
|
||||
</programlisting></informalexample>
|
||||
will match not just <classname>GtkButton</classname> widgets,
|
||||
but also <classname>GtkToggleButton</classname> and
|
||||
<classname>GtkCheckButton</classname> widgets, since
|
||||
those classes derive from <classname>GtkButton</classname>.
|
||||
will match not just #GtkButton widgets,
|
||||
but also #GtkToggleButton and
|
||||
#GtkCheckButton widgets, since
|
||||
those classes derive from #GtkButton.
|
||||
</para>
|
||||
</refsect2>
|
||||
|
||||
<refsect2><title>Toplevel declarations</title>
|
||||
<para>
|
||||
An RC file is a text file which is composed of a sequence
|
||||
of declarations. '#' characters delimit comments and
|
||||
the portion of a line after a '#' is ignored when parsing
|
||||
of declarations. <literal>'#'</literal> characters delimit comments and
|
||||
the portion of a line after a <literal>'#'</literal> is ignored when parsing
|
||||
an RC file.
|
||||
</para>
|
||||
|
||||
@ -110,7 +115,7 @@ The possible toplevel declarations are:
|
||||
<term><literal>binding <replaceable>name</replaceable>
|
||||
{ ... }</literal></term>
|
||||
<listitem>
|
||||
<para>Declare a binding set</para>
|
||||
<para>Declares a binding set.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
@ -118,14 +123,14 @@ The possible toplevel declarations are:
|
||||
[ style | binding [ : <replaceable>priority</replaceable> ]]
|
||||
<replaceable>name</replaceable></literal></term>
|
||||
<listitem>
|
||||
<para>Specify a style or binding set for a particular
|
||||
<para>Specifies a style or binding set for a particular
|
||||
branch of the inheritance hierarchy.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><literal>include <replaceable>filename</replaceable></literal></term>
|
||||
<listitem>
|
||||
<para>Parse another file at this point</para>
|
||||
<para>Parses another file at this point.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
@ -148,7 +153,7 @@ The possible toplevel declarations are:
|
||||
<term><literal>style <replaceable>name</replaceable> [ =
|
||||
<replaceable>parent</replaceable> ] { ... }</literal></term>
|
||||
<listitem>
|
||||
<para>Declare a style</para>
|
||||
<para>Declares a style.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
@ -156,7 +161,7 @@ The possible toplevel declarations are:
|
||||
[ style | binding [ : <replaceable>priority</replaceable> ]]
|
||||
<replaceable>name</replaceable></literal></term>
|
||||
<listitem>
|
||||
<para>Specify a style or binding set for a particular
|
||||
<para>Specifies a style or binding set for a particular
|
||||
group of widgets by matching on the widget pathname.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -165,7 +170,7 @@ The possible toplevel declarations are:
|
||||
[ style | binding [ : <replaceable>priority</replaceable> ]]
|
||||
<replaceable>name</replaceable></literal></term>
|
||||
<listitem>
|
||||
<para>Specify a style or binding set for a particular
|
||||
<para>Specifies a style or binding set for a particular
|
||||
group of widgets by matching on the class pathname.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -197,7 +202,7 @@ elements are:
|
||||
<replaceable>color</replaceable></literal></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Set color used for the background of most widgets.
|
||||
Sets the color used for the background of most widgets.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -206,7 +211,7 @@ elements are:
|
||||
<replaceable>color</replaceable></literal></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Set color used for the foreground of most widgets.
|
||||
Sets the color used for the foreground of most widgets.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -215,7 +220,7 @@ elements are:
|
||||
<replaceable>color</replaceable></literal></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Set color used for the background of widgets displaying
|
||||
Sets the color used for the background of widgets displaying
|
||||
editable text. This color is used for the background
|
||||
of, among others, #GtkText, #GtkEntry, #GtkList, and #GtkClist.
|
||||
</para>
|
||||
@ -226,7 +231,7 @@ elements are:
|
||||
<replaceable>color</replaceable></literal></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Set color used for foreground of widgets using
|
||||
Sets the color used for foreground of widgets using
|
||||
<literal>base</literal> for the background color.
|
||||
</para>
|
||||
</listitem>
|
||||
@ -236,7 +241,7 @@ elements are:
|
||||
<replaceable>pixmap</replaceable></literal></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Set a background pixmap to be used in place of
|
||||
Sets a background pixmap to be used in place of
|
||||
the <literal>bg</literal> color (or for #GtkText,
|
||||
in place of the <literal>base</literal> color. The special
|
||||
value "<parent>" may be used to indicate that the widget should
|
||||
@ -249,7 +254,7 @@ elements are:
|
||||
<term><literal>font = <replaceable>font</replaceable></literal></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Set the font for a widget.
|
||||
Sets the font for a widget.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -257,7 +262,7 @@ elements are:
|
||||
<term><literal>fontset = <replaceable>font</replaceable></literal></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Set the fontset for a widget. Overrides any
|
||||
Sets the fontset for a widget. Overrides any
|
||||
<literal>font</literal> declarations.
|
||||
</para>
|
||||
</listitem>
|
||||
@ -281,7 +286,7 @@ state of the widget. The states are:
|
||||
<term><literal>NORMAL</literal></term>
|
||||
<listitem>
|
||||
<para>
|
||||
A color used for a widget in its normal state
|
||||
A color used for a widget in its normal state.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -314,8 +319,8 @@ state of the widget. The states are:
|
||||
<listitem>
|
||||
<para>
|
||||
A color used to highlight data selected by the user.
|
||||
for instance, the selected ListItems in a List widget, and the
|
||||
selection in an Editable widget.
|
||||
for instance, the selected items in a list widget, and the
|
||||
selection in an editable widget.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -324,7 +329,7 @@ state of the widget. The states are:
|
||||
<listitem>
|
||||
<para>
|
||||
A color used for the background of widgets that have
|
||||
been set insensitive with gtk_widget_set_sensitive()
|
||||
been set insensitive with gtk_widget_set_sensitive().
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -515,41 +520,11 @@ The #GtkRcFlags enumeration is used as a bitmask
|
||||
to specify which fields of a #GtkRcStyle have been
|
||||
set for each state.
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry><term> %GTK_RC_FG </term>
|
||||
<listitem>
|
||||
<para>
|
||||
If present, the foreground color has been set for this state.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry><term> %GTK_RC_BG </term>
|
||||
<listitem>
|
||||
<para>
|
||||
If present, the background color has been set for this state.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry><term> %GTK_RC_TEXT </term>
|
||||
<listitem>
|
||||
<para>
|
||||
If present, the text color has been set for this state.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry><term> %GTK_RC_BASE </term>
|
||||
<listitem>
|
||||
<para>
|
||||
If present, the base color has been set for this state.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
|
||||
@GTK_RC_FG:
|
||||
@GTK_RC_BG:
|
||||
@GTK_RC_TEXT:
|
||||
@GTK_RC_BASE:
|
||||
@GTK_RC_FG: If present, the foreground color has been set for this state.
|
||||
@GTK_RC_BG: If present, the background color has been set for this state.
|
||||
@GTK_RC_TEXT: If present, the text color has been set for this state.
|
||||
@GTK_RC_BASE: If present, the base color has been set for this state.
|
||||
|
||||
<!-- ##### ENUM GtkRcTokenType ##### -->
|
||||
<para>
|
||||
@ -628,7 +603,7 @@ specific portions of a RC file.
|
||||
|
||||
<!-- ##### FUNCTION gtk_rc_add_widget_name_style ##### -->
|
||||
<para>
|
||||
Adds a RcStyle that will be looked up by a match against
|
||||
Adds a #GtkRcStyle that will be looked up by a match against
|
||||
the widget's pathname. This is equivalent to a:
|
||||
<literal>
|
||||
widget PATTERN style STYLE
|
||||
@ -642,7 +617,7 @@ statement in a RC file.
|
||||
|
||||
<!-- ##### FUNCTION gtk_rc_add_widget_class_style ##### -->
|
||||
<para>
|
||||
Adds a RcStyle that will be looked up by a match against
|
||||
Adds a #GtkRcStyle that will be looked up by a match against
|
||||
the widget's class pathname. This is equivalent to a:
|
||||
<literal>
|
||||
widget_class PATTERN style STYLE
|
||||
@ -656,7 +631,7 @@ statement in a RC file.
|
||||
|
||||
<!-- ##### FUNCTION gtk_rc_add_class_style ##### -->
|
||||
<para>
|
||||
Adds a RcStyle that will be looked up by a matching against
|
||||
Adds a #GtkRcStyle that will be looked up by a matching against
|
||||
the class hierarchy of the widget. This is equivalent to a:
|
||||
<literal>
|
||||
class PATTERN style STYLE
|
||||
@ -765,7 +740,7 @@ Looks up a file in the current module path.
|
||||
</para>
|
||||
|
||||
@module_file: The name of the module to search for.
|
||||
@Returns: The filename, if found. (Must be freed with g_free()),
|
||||
@Returns: The filename, if found (must be freed with g_free()),
|
||||
otherwise %NULL.
|
||||
|
||||
|
||||
@ -777,7 +752,7 @@ otherwise %NULL.
|
||||
@scanner: a #GtkScanner. Used for printing out warning messages
|
||||
if the file is not found.
|
||||
@pixmap_file: The name of the file to search for.
|
||||
@Returns: The filename, if found. (Must be freed with g_free()),
|
||||
@Returns: The filename, if found (must be freed with g_free()),
|
||||
otherwise %NULL.
|
||||
<!-- # Unused Parameters # -->
|
||||
@context:
|
||||
@ -815,7 +790,7 @@ be installed. (GTK+ does not actually use this directory
|
||||
itself.)
|
||||
</para>
|
||||
|
||||
@Returns: The directory. (Must be freed with g_free())
|
||||
@Returns: The directory (must be freed with g_free()).
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_rc_style_new ##### -->
|
||||
|
@ -8,7 +8,7 @@ Functions for handling inter-process communication via selections.
|
||||
|
||||
<para>
|
||||
The selection mechanism provides the basis for different types
|
||||
of IPC between processes. In particular, drag and drop and
|
||||
of communication between processes. In particular, drag and drop and
|
||||
#GtkClipboard work via selections. You will very seldom or
|
||||
never need to use most of the functions in this section directly;
|
||||
#GtkClipboard provides a nicer interface to the same functionality.
|
||||
@ -211,7 +211,7 @@ a "selection_received" signal will be generated.
|
||||
|
||||
<!-- ##### FUNCTION gtk_selection_data_set ##### -->
|
||||
<para>
|
||||
Stores new data into a GtkSelectionData object. Should
|
||||
Stores new data into a #GtkSelectionData object. Should
|
||||
<emphasis>only</emphasis> by called from a selection handler callback.
|
||||
zero-terminates the stored data.
|
||||
</para>
|
||||
@ -276,8 +276,7 @@ called by applications.
|
||||
|
||||
<!-- ##### FUNCTION gtk_selection_data_copy ##### -->
|
||||
<para>
|
||||
Makes a copy of a #GtkSelection data structure and its
|
||||
data.
|
||||
Makes a copy of a #GtkSelectionData structure and its data.
|
||||
</para>
|
||||
|
||||
@data: a pointer to a #GtkSelectionData structure.
|
||||
|
@ -7,8 +7,8 @@ Object methods and callbacks.
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
The GTK+ signal system merely proxies the GLib signal system now. For future
|
||||
usage, direct use of the #GSignal API is recommended, this avoids significant
|
||||
performance hits where #GtkArg structures have to be converted into #GValues.
|
||||
usage, direct use of the <link linkend="gobject-Signals">GSignal</linkend> API is recommended, this avoids significant
|
||||
performance hits where #GtkArg structures have to be converted into #GValue<!>s.
|
||||
</para>
|
||||
|
||||
<refsect2>
|
||||
@ -49,7 +49,7 @@ methods.
|
||||
<title>How are signals used?</title>
|
||||
<para>
|
||||
There are two basic actions in the signal handling game.
|
||||
If you want notification of an event, you must <Emphasis>connect</Emphasis>
|
||||
If you want notification of an event, you must <emphasis>connect</emphasis>
|
||||
a function pointer and a data pointer to that signal; the data pointer
|
||||
will be passed as the last argument to the function (so long as you
|
||||
are using the default marshalling functions).
|
||||
@ -150,6 +150,10 @@ you might have to write a marshaller.
|
||||
<listitem><para>The base class for things which emit signals.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><link linkend="gobject-Signals">GSignal</link></term>
|
||||
<listitem><para>The GLib signal system.</para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
|
||||
|
@ -18,16 +18,13 @@ inside the first applications window.
|
||||
|
||||
<para>
|
||||
The XID of the socket's window is obtained by using
|
||||
the GTK_WINDOW_XWINDOW() macro from the header
|
||||
file <gdk/gdkx.h>. Before using this macro,
|
||||
gtk_socket_get_id(). Before using this function,
|
||||
the socket must have been realized, and for hence,
|
||||
have been added to its parent.
|
||||
|
||||
<example>
|
||||
<title>Obtaining the XID of a socket.</title>
|
||||
<programlisting>
|
||||
#include <gdk/gdkx.h>
|
||||
|
||||
GtkWidget *socket = gtk_socket_new (<!>);
|
||||
gtk_widget_show (socket);
|
||||
gtk_container_add (GTK_CONTAINER (parent), socket);
|
||||
@ -37,7 +34,7 @@ gtk_container_add (GTK_CONTAINER (parent), socket);
|
||||
*/
|
||||
gtk_widget_realize (socket);
|
||||
g_print ("The XID of the sockets window is %#x\n",
|
||||
GDK_WINDOW_XWINDOW (socket->window));
|
||||
gtk_socket_get_id (socket));
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
@ -85,22 +82,14 @@ as between a #GtkPlug and a #GtkSocket.</para>
|
||||
|
||||
<!-- ##### STRUCT GtkSocket ##### -->
|
||||
<para>
|
||||
The #GtkEditable structure contains the following field.
|
||||
The #GtkSocket structure contains the following field.
|
||||
(This field should be considered read-only. It should
|
||||
never be set by an application.)
|
||||
|
||||
<informaltable pgwide=1 frame="none" role="struct">
|
||||
<tgroup cols="2"><colspec colwidth="2*"><colspec colwidth="8*">
|
||||
<tbody>
|
||||
|
||||
<row>
|
||||
<entry>#GdkWindow *plug_window;</entry>
|
||||
<entry>the window embedded inside this #GtkSocket.</entry>
|
||||
</row>
|
||||
|
||||
</tbody></tgroup></informaltable>
|
||||
</para>
|
||||
|
||||
@plug_window:
|
||||
the window embedded inside this #GtkSocket.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_socket_new ##### -->
|
||||
<para>
|
||||
|
@ -16,7 +16,7 @@ Styles
|
||||
|
||||
<!-- ##### MACRO GTK_STYLE_ATTACHED ##### -->
|
||||
<para>
|
||||
Returns whether the styleis attached to a window.
|
||||
Returns whether the style is attached to a window.
|
||||
</para>
|
||||
|
||||
@style: a #GtkStyle.
|
||||
|
@ -2,7 +2,7 @@
|
||||
GtkText
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
Deprecated text widget, use #GtkTextView instead.
|
||||
a text widget.
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
|
@ -20,7 +20,7 @@ To assign a tip to a particular #GtkWidget, gtk_tooltips_set_tip() is used.
|
||||
<note>
|
||||
<para>
|
||||
Tooltips can only be set on widgets which have their own X window.
|
||||
To check if a widget has its own window use <literal>GTK_WIDGET_NO_WINDOW (widget)</literal>.
|
||||
To check if a widget has its own window use GTK_WIDGET_NO_WINDOW().
|
||||
To add a tooltip to a widget that doesn't have its own window, place the
|
||||
widget inside a #GtkEventBox and add a tooltip to that instead.
|
||||
</para>
|
||||
|
@ -2,7 +2,7 @@
|
||||
GtkTree
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
Deprecated tree widget, use #GtkTreeView instead.
|
||||
a tree widget.
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
|
@ -26,8 +26,8 @@ Tells about certain properties of the widget.
|
||||
</para>
|
||||
|
||||
@GTK_TOPLEVEL:
|
||||
widgets without a real parent, as there are #GtkWindows and
|
||||
#GtkMenus have this flag set throughout their lifetime.
|
||||
widgets without a real parent, as there are #GtkWindow<!>s and
|
||||
#GtkMenu<!>s have this flag set throughout their lifetime.
|
||||
Toplevel widgets always contain their own #GdkWindow.
|
||||
@GTK_NO_WINDOW:
|
||||
Indicative for a widget that does not provide its own #GdkWindow.
|
||||
|
@ -264,8 +264,8 @@ gtk_accel_groups_from_object (GObject *object)
|
||||
* @returns: the key of the first entry passing @find_func. The key is
|
||||
* owned by GTK+ and must not be freed.
|
||||
*
|
||||
* Finds the first entry in an accelerator group for which @find_func
|
||||
* returns %TRUE and returns its #GtkAccelKey.
|
||||
* Finds the first entry in an accelerator group for which
|
||||
* @find_func returns %TRUE and returns its #GtkAccelKey.
|
||||
*
|
||||
*/
|
||||
GtkAccelKey*
|
||||
|
@ -104,18 +104,18 @@ _gtk_accel_path_is_valid (const gchar *accel_path)
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_accel_map_add_entry
|
||||
* gtk_accel_map_add_entry:
|
||||
* @accel_path: valid accelerator path
|
||||
* @accel_key: the accelerator key
|
||||
* @accel_mods: the accelerator modifiers
|
||||
*
|
||||
* Register a new accelerator with the global accelerator map.
|
||||
* Registers a new accelerator with the global accelerator map.
|
||||
* This function should only be called once per @accel_path
|
||||
* with the canonical @accel_key and @accel_mods for this path.
|
||||
* To change the accelerator during runtime programatically, use
|
||||
* gtk_accel_map_change_entry().
|
||||
* The accelerator path must consist of "<WINDOWTYPE>/Category1/Category2/.../Action",
|
||||
* where WINDOWTYPE should be a unique application-specific identifier, that
|
||||
* where <WINDOWTYPE> should be a unique application-specific identifier, that
|
||||
* corresponds to the kind of window the accelerator is being used in, e.g. "Gimp-Image",
|
||||
* "Abiword-Document" or "Gnumeric-Settings".
|
||||
* The Category1/.../Action portion is most appropriately chosen by the action the
|
||||
@ -164,9 +164,9 @@ gtk_accel_map_add_entry (const gchar *accel_path,
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_accel_map_lookup_entry
|
||||
* @accel_path: valid accelerator path
|
||||
* @key: accelerator key to be filled in (optional)
|
||||
* gtk_accel_map_lookup_entry:
|
||||
* @accel_path: a valid accelerator path
|
||||
* @key: the accelerator key to be filled in (optional)
|
||||
* @returns: %TRUE if @accel_path is known, %FALSE otherwise
|
||||
*
|
||||
* Looks up the accelerator entry for @accel_path and fills in @key.
|
||||
@ -378,14 +378,14 @@ internal_change_entry (const gchar *accel_path,
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_accel_map_change_entry
|
||||
* @accel_path: valid accelerator path
|
||||
* @accel_key: new accelerator key
|
||||
* @accel_mods: new accelerator modifiers
|
||||
* gtk_accel_map_change_entry:
|
||||
* @accel_path: a valid accelerator path
|
||||
* @accel_key: the new accelerator key
|
||||
* @accel_mods: the new accelerator modifiers
|
||||
* @replace: %TRUE if other accelerators may be deleted upon conflicts
|
||||
* @returns: %TRUE if the accelerator could be changed, %FALSE otherwise
|
||||
*
|
||||
* Change the @accel_key and @accel_mods currently associated with @accel_path.
|
||||
* Changes the @accel_key and @accel_mods currently associated with @accel_path.
|
||||
* Due to conflicts with other accelerators, a change may not always be possible,
|
||||
* @replace indicates whether other accelerators may be deleted to resolve such
|
||||
* conflicts. A change will only occur if all conflicts could be resolved (which
|
||||
@ -488,6 +488,12 @@ accel_map_parse_statement (GScanner *scanner)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_accel_map_load_scanner:
|
||||
* @scanner: a #GScanner which has already been provided with an input file
|
||||
*
|
||||
* #GScanner variant of gtk_accel_map_load().
|
||||
*/
|
||||
void
|
||||
gtk_accel_map_load_scanner (GScanner *scanner)
|
||||
{
|
||||
@ -530,10 +536,11 @@ gtk_accel_map_load_scanner (GScanner *scanner)
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_accel_map_load_fd
|
||||
* @fd: valid readable file descriptor
|
||||
* gtk_accel_map_load_fd:
|
||||
* @fd: a valid readable file descriptor
|
||||
*
|
||||
* Filedescriptor variant of gtk_accel_map_load().
|
||||
*
|
||||
* Note that the file descriptor will not be closed by this function.
|
||||
*/
|
||||
void
|
||||
@ -553,7 +560,7 @@ gtk_accel_map_load_fd (gint fd)
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_accel_map_load
|
||||
* gtk_accel_map_load:
|
||||
* @file_name: a file containing accelerator specifications
|
||||
*
|
||||
* Parses a file previously saved with gtk_accel_map_save() for
|
||||
@ -613,10 +620,11 @@ accel_map_print (gpointer data,
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_accel_map_save_fd
|
||||
* @fd: valid writable file descriptor
|
||||
* gtk_accel_map_save_fd:
|
||||
* @fd: a valid writable file descriptor
|
||||
*
|
||||
* Filedescriptor variant of gtk_accel_map_save().
|
||||
*
|
||||
* Note that the file descriptor will not be closed by this function.
|
||||
*/
|
||||
void
|
||||
@ -642,7 +650,7 @@ gtk_accel_map_save_fd (gint fd)
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_accel_map_save
|
||||
* gtk_accel_map_save:
|
||||
* @file_name: the file to contain accelerator specifications
|
||||
*
|
||||
* Saves current accelerator specifications (accelerator path, key
|
||||
@ -667,13 +675,15 @@ gtk_accel_map_save (const gchar *file_name)
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_accel_map_foreach
|
||||
* gtk_accel_map_foreach:
|
||||
* @data: data to be passed into @foreach_func
|
||||
* @foreach_func: function to be executed for each accel map entry
|
||||
* @foreach_func: function to be executed for each accel map entry which
|
||||
* is not filtered out
|
||||
*
|
||||
* Loop over the entries in the accelerator map, and execute
|
||||
* @foreach_func on each. The signature of @foreach_func is that of
|
||||
* #GtkAccelMapForeach, the @changed parameter indicates whether
|
||||
* Loops over the entries in the accelerator map whose accel path
|
||||
* doesn't match any of the filters added with gtk_accel_map_add_filter(),
|
||||
* and execute @foreach_func on each. The signature of @foreach_func is
|
||||
* that of #GtkAccelMapForeach, the @changed parameter indicates whether
|
||||
* this accelerator was changed during runtime (thus, would need
|
||||
* saving during an accelerator map dump).
|
||||
*/
|
||||
@ -701,6 +711,17 @@ gtk_accel_map_foreach (gpointer data,
|
||||
g_slist_free (entries);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_accel_map_foreach_unfiltered:
|
||||
* @data: data to be passed into @foreach_func
|
||||
* @foreach_func: function to be executed for each accel map entry
|
||||
*
|
||||
* Loops over all entries in the accelerator map, and execute
|
||||
* @foreach_func on each. The signature of @foreach_func is that of
|
||||
* #GtkAccelMapForeach, the @changed parameter indicates whether
|
||||
* this accelerator was changed during runtime (thus, would need
|
||||
* saving during an accelerator map dump).
|
||||
*/
|
||||
void
|
||||
gtk_accel_map_foreach_unfiltered (gpointer data,
|
||||
GtkAccelMapForeach foreach_func)
|
||||
@ -720,6 +741,15 @@ gtk_accel_map_foreach_unfiltered (gpointer data,
|
||||
g_slist_free (entries);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_accel_map_add_filter:
|
||||
* @filter_pattern: a pattern (see #GPatternSpec)
|
||||
*
|
||||
* Adds a filter to the global list of accel path filters.
|
||||
*
|
||||
* Accel map entries whose accel path matches one of the filters
|
||||
* are skipped by gtk_accel_map_foreach().
|
||||
*/
|
||||
void
|
||||
gtk_accel_map_add_filter (const gchar *filter_pattern)
|
||||
{
|
||||
|
@ -454,7 +454,7 @@ gtk_clipboard_set_with_owner (GtkClipboard *clipboard,
|
||||
*
|
||||
* If the clipboard contents callbacks were set with
|
||||
* gtk_clipboard_set_with_owner(), and the gtk_clipboard_set_with_data() or
|
||||
* gtk_clipboard_clear() has not subsequently called, returns the @owner set
|
||||
* gtk_clipboard_clear() has not subsequently called, returns the owner set
|
||||
* by gtk_clipboard_set_with_owner().
|
||||
*
|
||||
* Return value: the owner of the clipboard, if any; otherwise %NULL.
|
||||
|
@ -386,14 +386,14 @@ gtk_dialog_new_empty (const gchar *title,
|
||||
*
|
||||
* Here's a simple example:
|
||||
* <informalexample><programlisting>
|
||||
* GtkWidget *dialog = gtk_dialog_new_with_buttons ("My dialog",
|
||||
* main_app_window,
|
||||
* GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
|
||||
* GTK_STOCK_OK,
|
||||
* GTK_RESPONSE_ACCEPT,
|
||||
* GTK_STOCK_CANCEL,
|
||||
* GTK_RESPONSE_REJECT,
|
||||
* NULL);
|
||||
* <!>GtkWidget *dialog = gtk_dialog_new_with_buttons ("My dialog",
|
||||
* <!> main_app_window,
|
||||
* <!> GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
|
||||
* <!> GTK_STOCK_OK,
|
||||
* <!> GTK_RESPONSE_ACCEPT,
|
||||
* <!> GTK_STOCK_CANCEL,
|
||||
* <!> GTK_RESPONSE_REJECT,
|
||||
* <!> NULL);
|
||||
* </programlisting></informalexample>
|
||||
*
|
||||
* Return value: a new #GtkDialog
|
||||
@ -851,17 +851,17 @@ run_destroy_handler (GtkDialog *dialog, gpointer data)
|
||||
*
|
||||
* Typical usage of this function might be:
|
||||
* <informalexample><programlisting>
|
||||
* gint result = gtk_dialog_run (GTK_DIALOG (dialog));
|
||||
* switch (result)
|
||||
* {
|
||||
* case GTK_RESPONSE_ACCEPT:
|
||||
* do_application_specific_something (<!-- -->);
|
||||
* break;
|
||||
* default:
|
||||
* do_nothing_since_dialog_was_cancelled (<!-- -->);
|
||||
* break;
|
||||
* }
|
||||
* gtk_widget_destroy (dialog);
|
||||
* <!> gint result = gtk_dialog_run (GTK_DIALOG (dialog));
|
||||
* <!> switch (result)
|
||||
* <!> {
|
||||
* <!> case GTK_RESPONSE_ACCEPT:
|
||||
* <!> do_application_specific_something (<!-- -->);
|
||||
* <!> break;
|
||||
* <!> default:
|
||||
* <!> do_nothing_since_dialog_was_cancelled (<!-- -->);
|
||||
* <!> break;
|
||||
* <!> }
|
||||
* <!> gtk_widget_destroy (dialog);
|
||||
* </programlisting></informalexample>
|
||||
*
|
||||
* Return value: response ID
|
||||
|
@ -2342,7 +2342,7 @@ gtk_drag_set_icon_default (GdkDragContext *context)
|
||||
* Changes the default drag icon. GTK+ retains references for the
|
||||
* arguments, and will release them when they are no longer needed.
|
||||
* This function is obsolete. The default icon should now be changed
|
||||
* via the stock system by changing the stock pixbuf for %GTK_STOCK_DND.
|
||||
* via the stock system by changing the stock pixbuf for #GTK_STOCK_DND.
|
||||
**/
|
||||
void
|
||||
gtk_drag_set_default_icon (GdkColormap *colormap,
|
||||
@ -3154,11 +3154,11 @@ gtk_drag_abort_timeout (gpointer data)
|
||||
* @current_x: current X coordinate
|
||||
* @current_y: current Y coordinate
|
||||
*
|
||||
* Checks to see if a mouse drag starting at (start_x, start_y) and ending
|
||||
* at (current_x, current_y) has passed the GTK drag threshhold, and thus
|
||||
* Checks to see if a mouse drag starting at (@start_x, @start_y) and ending
|
||||
* at (@current_x, @current_y) has passed the GTK+ drag threshhold, and thus
|
||||
* should trigger the beginning of a drag-and-drop operation.
|
||||
*
|
||||
* Return Value: If the drag threshold has been passed.
|
||||
* Return Value: %TRUE if the drag threshold has been passed.
|
||||
**/
|
||||
gboolean
|
||||
gtk_drag_check_threshold (GtkWidget *widget,
|
||||
|
@ -134,11 +134,11 @@ gtk_icon_factory_finalize (GObject *object)
|
||||
* gtk_icon_factory_new:
|
||||
*
|
||||
* Creates a new #GtkIconFactory. An icon factory manages a collection
|
||||
* of #GtkIconSet; a #GtkIconSet manages a set of variants of a
|
||||
* of #GtkIconSet<!>s; a #GtkIconSet manages a set of variants of a
|
||||
* particular icon (i.e. a #GtkIconSet contains variants for different
|
||||
* sizes and widget states). Icons in an icon factory are named by a
|
||||
* stock ID, which is a simple string identifying the icon. Each
|
||||
* #GtkStyle has a list of #GtkIconFactory derived from the current
|
||||
* #GtkStyle has a list of #GtkIconFactory<!>s derived from the current
|
||||
* theme; those icon factories are consulted first when searching for
|
||||
* an icon. If the theme doesn't set a particular icon, GTK+ looks for
|
||||
* the icon in a list of default icon factories, maintained by
|
||||
@ -1718,7 +1718,7 @@ gtk_icon_source_set_size (GtkIconSource *source,
|
||||
* @source: a #GtkIconSource
|
||||
*
|
||||
* Obtains the text direction this icon source applies to. The return
|
||||
* value is only useful/meaningful if the text direction is NOT
|
||||
* value is only useful/meaningful if the text direction is <emphasis>not</emphasis>
|
||||
* wildcarded.
|
||||
*
|
||||
* Return value: text direction this source matches
|
||||
@ -1736,7 +1736,7 @@ gtk_icon_source_get_direction (const GtkIconSource *source)
|
||||
* @source: a #GtkIconSource
|
||||
*
|
||||
* Obtains the widget state this icon source applies to. The return
|
||||
* value is only useful/meaningful if the widget state is NOT
|
||||
* value is only useful/meaningful if the widget state is <emphasis>not</emphasis>
|
||||
* wildcarded.
|
||||
*
|
||||
* Return value: widget state this source matches
|
||||
@ -1754,7 +1754,7 @@ gtk_icon_source_get_state (const GtkIconSource *source)
|
||||
* @source: a #GtkIconSource
|
||||
*
|
||||
* Obtains the icon size this source applies to. The return value
|
||||
* is only useful/meaningful if the icon size is NOT wildcarded.
|
||||
* is only useful/meaningful if the icon size is <emphasis>not</emphasis> wildcarded.
|
||||
*
|
||||
* Return value: icon size this source matches.
|
||||
**/
|
||||
|
@ -284,7 +284,7 @@ static gchar **
|
||||
get_module_path (void)
|
||||
{
|
||||
const gchar *module_path_env = g_getenv ("GTK_MODULE_PATH");
|
||||
const gchar *exe_prefix = g_getenv("GTK_EXE_PREFIX");
|
||||
const gchar *exe_prefix = g_getenv ("GTK_EXE_PREFIX");
|
||||
gchar **result;
|
||||
gchar *module_path;
|
||||
gchar *default_dir;
|
||||
@ -470,7 +470,7 @@ gtk_init_check (int *argc,
|
||||
gdk_event_handler_set ((GdkEventFunc)gtk_main_do_event, NULL, NULL);
|
||||
|
||||
#ifdef G_ENABLE_DEBUG
|
||||
env_string = getenv ("GTK_DEBUG");
|
||||
env_string = g_getenv ("GTK_DEBUG");
|
||||
if (env_string != NULL)
|
||||
{
|
||||
gtk_debug_flags = g_parse_debug_string (env_string,
|
||||
@ -480,7 +480,7 @@ gtk_init_check (int *argc,
|
||||
}
|
||||
#endif /* G_ENABLE_DEBUG */
|
||||
|
||||
env_string = getenv ("GTK_MODULES");
|
||||
env_string = g_getenv ("GTK_MODULES");
|
||||
if (env_string)
|
||||
gtk_modules_string = g_string_new (env_string);
|
||||
|
||||
|
26
gtk/gtkrc.c
26
gtk/gtkrc.c
@ -301,7 +301,7 @@ gtk_rc_make_default_dir (const gchar *type)
|
||||
{
|
||||
gchar *var, *path;
|
||||
|
||||
var = getenv("GTK_EXE_PREFIX");
|
||||
var = g_getenv ("GTK_EXE_PREFIX");
|
||||
if (var)
|
||||
path = g_build_filename (var, "lib", "gtk-2.0", type, GTK_BINARY_VERSION, NULL);
|
||||
else
|
||||
@ -347,7 +347,7 @@ gtk_rc_get_theme_dir (void)
|
||||
{
|
||||
gchar *var, *path;
|
||||
|
||||
var = getenv("GTK_DATA_PREFIX");
|
||||
var = g_getenv ("GTK_DATA_PREFIX");
|
||||
if (var)
|
||||
path = g_build_filename (var, "share", "themes", NULL);
|
||||
else
|
||||
@ -363,7 +363,7 @@ gtk_rc_get_module_dir (void)
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_rc_append_default_module_path(void)
|
||||
gtk_rc_append_default_module_path (void)
|
||||
{
|
||||
const gchar *var;
|
||||
gchar *path;
|
||||
@ -373,7 +373,7 @@ gtk_rc_append_default_module_path(void)
|
||||
if (n >= GTK_RC_MAX_MODULE_PATHS - 1)
|
||||
return;
|
||||
|
||||
var = getenv("GTK_EXE_PREFIX");
|
||||
var = g_getenv ("GTK_EXE_PREFIX");
|
||||
if (var)
|
||||
path = g_build_filename (var, "lib", "gtk-2.0", GTK_VERSION, "engines", NULL);
|
||||
else
|
||||
@ -404,7 +404,7 @@ gtk_rc_add_initial_default_files (void)
|
||||
gtk_rc_default_files[0] = NULL;
|
||||
init = TRUE;
|
||||
|
||||
var = g_getenv("GTK_RC_FILES");
|
||||
var = g_getenv ("GTK_RC_FILES");
|
||||
if (var)
|
||||
{
|
||||
files = g_strsplit (var, G_SEARCHPATH_SEPARATOR_S, 128);
|
||||
@ -692,7 +692,7 @@ gtk_rc_parse_default_files (GtkRcContext *context)
|
||||
gchar *normalized_locale;
|
||||
|
||||
p = strchr (locale, '@');
|
||||
length = p ? (p -locale) : strlen (locale);
|
||||
length = p ? (p - locale) : strlen (locale);
|
||||
|
||||
p = strchr (locale, '.');
|
||||
if (p)
|
||||
@ -1029,7 +1029,7 @@ gtk_rc_style_new (void)
|
||||
* @orig: the style to copy
|
||||
*
|
||||
* Makes a copy of the specified #GtkRcStyle. This function
|
||||
* will correctly copy an rc style that is a member of a class
|
||||
* will correctly copy an RC style that is a member of a class
|
||||
* derived from #GtkRcStyle.
|
||||
*
|
||||
* Return value: the resulting #GtkRcStyle
|
||||
@ -1510,10 +1510,10 @@ gtk_rc_get_style (GtkWidget *widget)
|
||||
*
|
||||
* The action of gtk_rc_get_style() is similar to:
|
||||
* <informalexample><programlisting>
|
||||
* gtk_widget_path (widget, NULL, &path, NULL);
|
||||
* gtk_widget_class_path (widget, NULL, &class_path, NULL);
|
||||
* gtk_rc_get_style_by_paths (gtk_widget_get_settings (widget), path, class_path,
|
||||
* G_OBJECT_TYPE (widget));
|
||||
* <!> gtk_widget_path (widget, NULL, &path, NULL);
|
||||
* <!> gtk_widget_class_path (widget, NULL, &class_path, NULL);
|
||||
* <!> gtk_rc_get_style_by_paths (gtk_widget_get_settings (widget), path, class_path,
|
||||
* <!> G_OBJECT_TYPE (widget));
|
||||
* </programlisting></informalexample>
|
||||
*
|
||||
* Return value: A style created by matching with the supplied paths,
|
||||
@ -1714,7 +1714,7 @@ gtk_rc_parse_any (GtkRcContext *context,
|
||||
if (scanner->scope_id == 0)
|
||||
{
|
||||
/* if we are in scope 0, we know the symbol names
|
||||
* that are associated with certaintoken values.
|
||||
* that are associated with certain token values.
|
||||
* so we look them up to make the error messages
|
||||
* more readable.
|
||||
*/
|
||||
@ -2683,7 +2683,7 @@ gtk_rc_check_pixmap_dir (const gchar *dir, const gchar *pixmap_file)
|
||||
|
||||
/**
|
||||
* gtk_rc_find_pixmap_in_path:
|
||||
* @settings: a #GtkSettinsg
|
||||
* @settings: a #GtkSettings
|
||||
* @scanner: Scanner used to get line number information for the
|
||||
* warning message, or %NULL
|
||||
* @pixmap_file: name of the pixmap file to locate.
|
||||
|
@ -886,7 +886,7 @@ gtk_selection_data_get_text (GtkSelectionData *selection_data)
|
||||
* stored here must be freed with g_free().
|
||||
* @n_atoms: location to store number of items in @targets.
|
||||
*
|
||||
* Get the contents of @selection_data as an array of targets.
|
||||
* Gets the contents of @selection_data as an array of targets.
|
||||
* This can be used to interpret the results of getting
|
||||
* the standard TARGETS target that is always supplied for
|
||||
* any selection.
|
||||
@ -926,7 +926,7 @@ gtk_selection_data_get_targets (GtkSelectionData *selection_data,
|
||||
* @selection_data: a #GtkSelectionData object
|
||||
*
|
||||
* Given a #GtkSelectionData object holding a list of targets,
|
||||
* Determines if any of the targets in @targets can be used to
|
||||
* determines if any of the targets in @targets can be used to
|
||||
* provide text.
|
||||
*
|
||||
* Return value: %TRUE if @selection_data holds a list of targets,
|
||||
|
@ -265,9 +265,10 @@ gtk_socket_add_id (GtkSocket *socket, GdkNativeWindow window_id)
|
||||
*
|
||||
* Gets the window ID of a #GtkSocket widget, which can then
|
||||
* be used to create a client embedded inside the socket, for
|
||||
* instance with gtk_socket_new (id). The #GtkSocket must
|
||||
* have already be added into a toplevel window before you
|
||||
* can make this call.
|
||||
* instance with gtk_plug_new ().
|
||||
*
|
||||
* The #GtkSocket must have already be added into a toplevel window
|
||||
* before you can make this call.
|
||||
*
|
||||
* Return value: the window ID for the socket
|
||||
**/
|
||||
|
@ -822,6 +822,20 @@ gtk_style_lookup_icon_set (GtkStyle *style,
|
||||
return gtk_icon_factory_lookup_default (stock_id);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_draw_hline:
|
||||
* @style: a #GtkStyle
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @x1: the starting x coordinate
|
||||
* @x2: the ending x coordinate
|
||||
* @y: the y coordinate
|
||||
*
|
||||
* Draws a horizontal line from (@x1, @y) to (@x2, @y) in @window
|
||||
* using the given style and state.
|
||||
*
|
||||
* This function is deprecated, use gtk_paint_hline() instead.
|
||||
**/
|
||||
void
|
||||
gtk_draw_hline (GtkStyle *style,
|
||||
GdkWindow *window,
|
||||
@ -837,6 +851,20 @@ gtk_draw_hline (GtkStyle *style,
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* gtk_draw_vline:
|
||||
* @style: a #GtkStyle
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @y1: the starting y coordinate
|
||||
* @y2: the ending y coordinate
|
||||
* @x: the x coordinate
|
||||
*
|
||||
* Draws a vertical line from (@x, @y1) to (@x, @y2) in @window
|
||||
* using the given style and state.
|
||||
*
|
||||
* This function is deprecated, use gtk_paint_vline() instead.
|
||||
**/
|
||||
void
|
||||
gtk_draw_vline (GtkStyle *style,
|
||||
GdkWindow *window,
|
||||
@ -4666,6 +4694,22 @@ hls_to_rgb (gdouble *h,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* gtk_paint_hline:
|
||||
* @style: a #GtkStyle
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @area: rectangle to which the output is clipped
|
||||
* @widget:
|
||||
* @detail:
|
||||
* @x1: the starting x coordinate
|
||||
* @x2: the ending x coordinate
|
||||
* @y: the y coordinate
|
||||
*
|
||||
* Draws a horizontal line from (@x1, @y) to (@x2, @y) in @window
|
||||
* using the given style and state.
|
||||
**/
|
||||
void
|
||||
gtk_paint_hline (GtkStyle *style,
|
||||
GdkWindow *window,
|
||||
@ -4683,6 +4727,20 @@ gtk_paint_hline (GtkStyle *style,
|
||||
GTK_STYLE_GET_CLASS (style)->draw_hline (style, window, state_type, area, widget, detail, x1, x2, y);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_paint_vline:
|
||||
* @style: a #GtkStyle
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @area: rectangle to which the output is clipped
|
||||
* @widget:
|
||||
* @detail:
|
||||
* @y1: the starting y coordinate
|
||||
* @y2: the ending y coordinate
|
||||
* @x: the x coordinate
|
||||
*
|
||||
* Draws a vertical line from (@x, @y1) to (@x, @y1) in @window
|
||||
* using the given style and state.
|
||||
void
|
||||
gtk_paint_vline (GtkStyle *style,
|
||||
GdkWindow *window,
|
||||
@ -5101,9 +5159,9 @@ gtk_border_free (GtkBorder *border)
|
||||
* @style: a #GtkStyle
|
||||
*
|
||||
* Gets the #GdkFont to use for the given style. This is
|
||||
* meant only as a replacement for direct access to style->font
|
||||
* meant only as a replacement for direct access to @style->font
|
||||
* and should not be used in new code. New code should
|
||||
* use style->font_desc instead.
|
||||
* use @style->font_desc instead.
|
||||
*
|
||||
* Return value: the #GdkFont for the style. This font is owned
|
||||
* by the style; if you want to keep around a copy, you must
|
||||
|
@ -148,9 +148,9 @@ gtk_tree_path_new (void)
|
||||
* colon separated list of numbers. For example, the string "10:4:0" would
|
||||
* create a path of depth 3 pointing to the 11th child of the root node, the 5th
|
||||
* child of that 11th child, and the 1st child of that 5th child. If an invalid
|
||||
* path is past in, NULL is returned.
|
||||
* path is passed in, %NULL is returned.
|
||||
*
|
||||
* Return value: A newly created #GtkTreePath, or NULL
|
||||
* Return value: A newly-created #GtkTreePath, or %NULL
|
||||
**/
|
||||
GtkTreePath *
|
||||
gtk_tree_path_new_from_string (const gchar *path)
|
||||
@ -197,7 +197,7 @@ gtk_tree_path_new_from_string (const gchar *path)
|
||||
* Generates a string representation of the path. This string is a ':'
|
||||
* separated list of numbers. For example, "4:10:0:3" would be an acceptable return value for this string.
|
||||
*
|
||||
* Return value: A newly allocated string. Must be freed with #g_free.
|
||||
* Return value: A newly-allocated string. Must be freed with g_free().
|
||||
**/
|
||||
gchar *
|
||||
gtk_tree_path_to_string (GtkTreePath *path)
|
||||
@ -312,7 +312,7 @@ gtk_tree_path_get_depth (GtkTreePath *path)
|
||||
* Returns the current indices of @path. This is an array of integers, each
|
||||
* representing a node in a tree.
|
||||
*
|
||||
* Return value: The current indices, or NULL.
|
||||
* Return value: The current indices, or %NULL.
|
||||
**/
|
||||
gint *
|
||||
gtk_tree_path_get_indices (GtkTreePath *path)
|
||||
@ -431,7 +431,7 @@ gtk_tree_path_is_ancestor (GtkTreePath *path,
|
||||
* @path: a #GtkTreePath
|
||||
* @ancestor: another #GtkTreePath
|
||||
*
|
||||
*
|
||||
* Returns %TRUE if @path is a descendant of @ancestor.
|
||||
*
|
||||
* Return value: %TRUE if @ancestor contains @path somewhere below it
|
||||
**/
|
||||
@ -481,7 +481,7 @@ gtk_tree_path_next (GtkTreePath *path)
|
||||
*
|
||||
* Moves the @path to point to the previous node at the current depth, if it exists.
|
||||
*
|
||||
* Return value: TRUE if @path has a previous node, and the move was made.
|
||||
* Return value: %TRUE if @path has a previous node, and the move was made.
|
||||
**/
|
||||
gboolean
|
||||
gtk_tree_path_prev (GtkTreePath *path)
|
||||
@ -502,7 +502,7 @@ gtk_tree_path_prev (GtkTreePath *path)
|
||||
*
|
||||
* Moves the @path to point to it's parent node, if it has a parent.
|
||||
*
|
||||
* Return value: TRUE if @path has a parent, and the move was made.
|
||||
* Return value: %TRUE if @path has a parent, and the move was made.
|
||||
**/
|
||||
gboolean
|
||||
gtk_tree_path_up (GtkTreePath *path)
|
||||
@ -537,10 +537,10 @@ gtk_tree_path_down (GtkTreePath *path)
|
||||
*
|
||||
* Creates a dynamically allocated tree iterator as a copy of @iter. This
|
||||
* function is not intended for use in applications, because you can just copy
|
||||
* the structs by value (GtkTreeIter new_iter = iter;). You
|
||||
* the structs by value (<literal>GtkTreeIter new_iter = iter;</literal>). You
|
||||
* must free this iter with gtk_tree_iter_free ().
|
||||
*
|
||||
* Return value: a newly allocated copy of @iter.
|
||||
* Return value: a newly-allocated copy of @iter.
|
||||
**/
|
||||
GtkTreeIter *
|
||||
gtk_tree_iter_copy (GtkTreeIter *iter)
|
||||
@ -559,7 +559,7 @@ gtk_tree_iter_copy (GtkTreeIter *iter)
|
||||
* gtk_tree_iter_free:
|
||||
* @iter: A dynamically allocated tree iterator.
|
||||
*
|
||||
* Free an iterator that has been allocated on the heap. This function is
|
||||
* Frees an iterator that has been allocated on the heap. This function is
|
||||
* mainly used for language bindings.
|
||||
**/
|
||||
void
|
||||
@ -595,7 +595,7 @@ gtk_tree_model_get_flags (GtkTreeModel *tree_model)
|
||||
* gtk_tree_model_get_n_columns:
|
||||
* @tree_model: A #GtkTreeModel.
|
||||
*
|
||||
* Returns the number of columns supported by the #tree_model
|
||||
* Returns the number of columns supported by @tree_model.
|
||||
*
|
||||
* Return value: The number of columns.
|
||||
**/
|
||||
@ -636,7 +636,7 @@ gtk_tree_model_get_column_type (GtkTreeModel *tree_model,
|
||||
*
|
||||
* Sets @iter to a valid iterator pointing to @path.
|
||||
*
|
||||
* Return value: TRUE, if @iter was set.
|
||||
* Return value: %TRUE, if @iter was set.
|
||||
**/
|
||||
gboolean
|
||||
gtk_tree_model_get_iter (GtkTreeModel *tree_model,
|
||||
@ -661,7 +661,7 @@ gtk_tree_model_get_iter (GtkTreeModel *tree_model,
|
||||
* Sets @iter to a valid iterator pointing to @path_string, if it
|
||||
* exists. Otherwise, @iter is left invalid and %FALSE is returned.
|
||||
*
|
||||
* Return value: TRUE, if @iter was set.
|
||||
* Return value: %TRUE, if @iter was set.
|
||||
**/
|
||||
gboolean
|
||||
gtk_tree_model_get_iter_from_string (GtkTreeModel *tree_model,
|
||||
@ -691,10 +691,10 @@ gtk_tree_model_get_iter_from_string (GtkTreeModel *tree_model,
|
||||
* @tree_model: A #GtkTreeModel.
|
||||
* @iter: The uninitialized #GtkTreeIter.
|
||||
*
|
||||
* Initialized @iter with the root iterator in the tree (the one at the root
|
||||
* Initializes @iter with the root iterator in the tree (the one at the root
|
||||
* path) and returns %TRUE. Returns %FALSE if the tree is empty.
|
||||
*
|
||||
* Return value: TRUE, if @iter was set.
|
||||
* Return value: %TRUE, if @iter was set.
|
||||
**/
|
||||
gboolean
|
||||
gtk_tree_model_get_iter_root (GtkTreeModel *tree_model,
|
||||
@ -718,10 +718,10 @@ gtk_tree_model_get_iter_root (GtkTreeModel *tree_model,
|
||||
* @tree_model: A #GtkTreeModel.
|
||||
* @iter: The #GtkTreeIter.
|
||||
*
|
||||
* Returns a newly created #GtkTreePath referenced by @iter. This path should
|
||||
* be freed with #gtk_tree_path_free.
|
||||
* Returns a newly-created #GtkTreePath referenced by @iter. This path should
|
||||
* be freed with gtk_tree_path_free().
|
||||
*
|
||||
* Return value: a newly created #GtkTreePath.
|
||||
* Return value: a newly-created #GtkTreePath.
|
||||
**/
|
||||
GtkTreePath *
|
||||
gtk_tree_model_get_path (GtkTreeModel *tree_model,
|
||||
@ -742,7 +742,7 @@ gtk_tree_model_get_path (GtkTreeModel *tree_model,
|
||||
* @value: An empty #GValue to set.
|
||||
*
|
||||
* Sets initializes and sets @value to that at @column. When done with @value,
|
||||
* #g_value_unset needs to be called to free any allocated memory.
|
||||
* g_value_unset() needs to be called to free any allocated memory.
|
||||
**/
|
||||
void
|
||||
gtk_tree_model_get_value (GtkTreeModel *tree_model,
|
||||
@ -764,9 +764,9 @@ gtk_tree_model_get_value (GtkTreeModel *tree_model,
|
||||
* @iter: The #GtkTreeIter.
|
||||
*
|
||||
* Sets @iter to point to the node following it at the current level. If there
|
||||
* is no next @iter, FALSE is returned and @iter is set to be invalid.
|
||||
* is no next @iter, %FALSE is returned and @iter is set to be invalid.
|
||||
*
|
||||
* Return value: TRUE if @iter has been changed to the next node.
|
||||
* Return value: %TRUE if @iter has been changed to the next node.
|
||||
**/
|
||||
gboolean
|
||||
gtk_tree_model_iter_next (GtkTreeModel *tree_model,
|
||||
@ -786,10 +786,10 @@ gtk_tree_model_iter_next (GtkTreeModel *tree_model,
|
||||
* @parent: The #GtkTreeIter.
|
||||
*
|
||||
* Sets @iter to point to the first child of @parent. If @parent has no children,
|
||||
* FALSE is returned and @iter is set to be invalid. @parent will remain a valid
|
||||
* %FALSE is returned and @iter is set to be invalid. @parent will remain a valid
|
||||
* node after this function has been called.
|
||||
*
|
||||
* Return value: TRUE, if @child has been set to the first child.
|
||||
* Return value: %TRUE, if @child has been set to the first child.
|
||||
**/
|
||||
gboolean
|
||||
gtk_tree_model_iter_children (GtkTreeModel *tree_model,
|
||||
@ -808,9 +808,9 @@ gtk_tree_model_iter_children (GtkTreeModel *tree_model,
|
||||
* @tree_model: A #GtkTreeModel.
|
||||
* @iter: The #GtkTreeIter to test for children.
|
||||
*
|
||||
* Returns TRUE if @iter has children, FALSE otherwise.
|
||||
* Returns %TRUE if @iter has children, %FALSE otherwise.
|
||||
*
|
||||
* Return value: TRUE if @iter has children.
|
||||
* Return value: %TRUE if @iter has children.
|
||||
**/
|
||||
gboolean
|
||||
gtk_tree_model_iter_has_child (GtkTreeModel *tree_model,
|
||||
@ -826,10 +826,10 @@ gtk_tree_model_iter_has_child (GtkTreeModel *tree_model,
|
||||
/**
|
||||
* gtk_tree_model_iter_n_children:
|
||||
* @tree_model: A #GtkTreeModel.
|
||||
* @iter: The #GtkTreeIter, or NULL.
|
||||
* @iter: The #GtkTreeIter, or %NULL.
|
||||
*
|
||||
* Returns the number of children that @iter has. As a special case, if @iter
|
||||
* is NULL, then the number of toplevel nodes is returned.
|
||||
* is %NULL, then the number of toplevel nodes is returned.
|
||||
*
|
||||
* Return value: The number of children of @iter.
|
||||
**/
|
||||
@ -847,16 +847,16 @@ gtk_tree_model_iter_n_children (GtkTreeModel *tree_model,
|
||||
* gtk_tree_model_iter_nth_child:
|
||||
* @tree_model: A #GtkTreeModel.
|
||||
* @iter: The #GtkTreeIter to set to the nth child.
|
||||
* @parent: The #GtkTreeIter to get the child from, or NULL.
|
||||
* @parent: The #GtkTreeIter to get the child from, or %NULL.
|
||||
* @n: Then index of the desired child.
|
||||
*
|
||||
* Sets @iter to be the child of @parent, using the given index. The first
|
||||
* index is 0. If @index is too big, or @parent has no children, @iter is set
|
||||
* to an invalid iterator and FALSE is returned. @parent will remain a valid
|
||||
* to an invalid iterator and %FALSE is returned. @parent will remain a valid
|
||||
* node after this function has been called. As a special case, if @parent is
|
||||
* NULL, then the nth root node is set.
|
||||
* %NULL, then the @n<!>th root node is set.
|
||||
*
|
||||
* Return value: TRUE, if @parent has an nth child.
|
||||
* Return value: %TRUE, if @parent has an @n<!>th child.
|
||||
**/
|
||||
gboolean
|
||||
gtk_tree_model_iter_nth_child (GtkTreeModel *tree_model,
|
||||
@ -879,11 +879,11 @@ gtk_tree_model_iter_nth_child (GtkTreeModel *tree_model,
|
||||
* @child: The #GtkTreeIter.
|
||||
*
|
||||
* Sets @iter to be the parent of @child. If @child is at the toplevel, and
|
||||
* doesn't have a parent, then @iter is set to an invalid iterator and FALSE
|
||||
* doesn't have a parent, then @iter is set to an invalid iterator and %FALSE
|
||||
* is returned. @child will remain a valid node after this function has been
|
||||
* called.
|
||||
*
|
||||
* Return value: TRUE, if @iter is set to the parent of @child.
|
||||
* Return value: %TRUE, if @iter is set to the parent of @child.
|
||||
**/
|
||||
gboolean
|
||||
gtk_tree_model_iter_parent (GtkTreeModel *tree_model,
|
||||
@ -910,7 +910,7 @@ gtk_tree_model_iter_parent (GtkTreeModel *tree_model,
|
||||
* This function is primarily meant as a way for views to let caching model know
|
||||
* when nodes are being displayed (and hence, whether or not to cache that
|
||||
* node.) For example, a file-system based model would not want to keep the
|
||||
* entire file-heirarchy in memory, just the sections that are currently being
|
||||
* entire file-hierarchy in memory, just the sections that are currently being
|
||||
* displayed by every current view.
|
||||
*
|
||||
* A model should be expected to be able to get an iter independent of it's
|
||||
@ -935,7 +935,7 @@ gtk_tree_model_ref_node (GtkTreeModel *tree_model,
|
||||
* implement. To be more specific, models may ignore this call as it exists
|
||||
* primarily for performance reasons.
|
||||
*
|
||||
* For more information on what this means, please see #gtk_tree_model_ref_node.
|
||||
* For more information on what this means, see gtk_tree_model_ref_node().
|
||||
* Please note that nodes that are deleted are not unreffed.
|
||||
**/
|
||||
void
|
||||
@ -961,7 +961,8 @@ gtk_tree_model_unref_node (GtkTreeModel *tree_model,
|
||||
* retrieved. The list is terminated by a -1. For example, to get a
|
||||
* value from column 0 with type %G_TYPE_STRING, you would
|
||||
* write: <literal>gtk_tree_model_get (model, iter, 0, &place_string_here, -1)</literal>,
|
||||
* where place_string_here is a gchar* to be filled with the string.
|
||||
* where <literal>place_string_here</literal> is a <type>gchar*</type> to be
|
||||
* filled with the string.
|
||||
* If appropriate, the returned values have to be freed or unreferenced.
|
||||
*
|
||||
**/
|
||||
@ -984,10 +985,10 @@ gtk_tree_model_get (GtkTreeModel *tree_model,
|
||||
* gtk_tree_model_get_valist:
|
||||
* @tree_model: a #GtkTreeModel
|
||||
* @iter: a row in @tree_model
|
||||
* @var_args: va_list of column/return location pairs
|
||||
* @var_args: <type>va_list</type> of column/return location pairs
|
||||
*
|
||||
* See gtk_tree_model_get(), this version takes a va_list for language bindings
|
||||
* to use.
|
||||
* See gtk_tree_model_get(), this version takes a <type>va_list</type>
|
||||
* for language bindings to use.
|
||||
**/
|
||||
void
|
||||
gtk_tree_model_get_valist (GtkTreeModel *tree_model,
|
||||
@ -1113,6 +1114,18 @@ gtk_tree_model_row_deleted (GtkTreeModel *tree_model,
|
||||
g_signal_emit_by_name (tree_model, "row_deleted", path);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_tree_model_rows_reordered:
|
||||
* @tree_model: A #GtkTreeModel
|
||||
* @path: A #GtkTreePath pointing to the tree node whose children have been reordered
|
||||
* @iter: A valid #GtkTreeIter pointing to the node whose children have been reordered
|
||||
* @new_order: an array of integers containing the new indices of the children,
|
||||
* i.e. the former child <literal>n</literal> is now at position
|
||||
* @new_order<literal>[n]</literal>.
|
||||
*
|
||||
* Emits the "rows_reordered" signal on @tree_model. This should be called by
|
||||
* models when their rows have been reordered.
|
||||
**/
|
||||
void
|
||||
gtk_tree_model_rows_reordered (GtkTreeModel *tree_model,
|
||||
GtkTreePath *path,
|
||||
|
@ -4974,11 +4974,11 @@ gtk_widget_set_extension_events (GtkWidget *widget,
|
||||
* gtk_widget_get_toplevel() and check if the %TOPLEVEL flags
|
||||
* is set on the result.
|
||||
* <informalexample><programlisting>
|
||||
* GtkWidget *toplevel = gtk_widget_get_toplevel (widget);
|
||||
* if (GTK_WIDGET_TOPLEVEL (toplevel))
|
||||
* {
|
||||
* [ Perform action on toplevel. ]
|
||||
* }
|
||||
* <!>GtkWidget *toplevel = gtk_widget_get_toplevel (widget);
|
||||
* <!>if (GTK_WIDGET_TOPLEVEL (toplevel))
|
||||
* <!> {
|
||||
* <!> [ Perform action on toplevel. ]
|
||||
* <!> }
|
||||
* </programlisting></informalexample>
|
||||
*
|
||||
* Return value: the topmost ancestor of @widget, or @widget itself if there's no ancestor.
|
||||
@ -5286,13 +5286,13 @@ gtk_widget_get_composite_name (GtkWidget *widget)
|
||||
*
|
||||
* Here is a simple example:
|
||||
* <informalexample><programlisting>
|
||||
* gtk_widget_push_composite_child (<!>);
|
||||
* scrolled_window->hscrollbar = gtk_hscrollbar_new (hadjustment);
|
||||
* gtk_widget_set_composite_name (scrolled_window->hscrollbar, "hscrollbar");
|
||||
* gtk_widget_pop_composite_child (<!>);
|
||||
* gtk_widget_set_parent (scrolled_window->hscrollbar,
|
||||
* GTK_WIDGET (scrolled_window));
|
||||
* gtk_widget_ref (scrolled_window->hscrollbar);
|
||||
* <!> gtk_widget_push_composite_child (<!>);
|
||||
* <!> scrolled_window->hscrollbar = gtk_hscrollbar_new (hadjustment);
|
||||
* <!> gtk_widget_set_composite_name (scrolled_window->hscrollbar, "hscrollbar");
|
||||
* <!> gtk_widget_pop_composite_child (<!>);
|
||||
* <!> gtk_widget_set_parent (scrolled_window->hscrollbar,
|
||||
* <!> GTK_WIDGET (scrolled_window));
|
||||
* <!> gtk_widget_ref (scrolled_window->hscrollbar);
|
||||
* </programlisting></informalexample>
|
||||
**/
|
||||
void
|
||||
|
@ -1091,9 +1091,9 @@ gtk_window_add_accel_group (GtkWindow *window,
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_accel_group_detach:
|
||||
* gtk_window_remove_accel_group:
|
||||
* @window: a #GtkWindow
|
||||
* @accel_group: a #GtkAccelGroup
|
||||
* @object: a #GObject
|
||||
*
|
||||
* Reverses the effects of gtk_window_add_accel_group().
|
||||
**/
|
||||
|
Loading…
Reference in New Issue
Block a user