Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gtk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,126
Issues
1,126
List
Boards
Labels
Service Desk
Milestones
Merge Requests
152
Merge Requests
152
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
gtk
Commits
c5eedc04
Commit
c5eedc04
authored
May 02, 2005
by
Matthias Clasen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc fixups
parent
fe59413c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
53 additions
and
72 deletions
+53
-72
ChangeLog
ChangeLog
+2
-0
ChangeLog.pre-2-10
ChangeLog.pre-2-10
+2
-0
ChangeLog.pre-2-8
ChangeLog.pre-2-8
+2
-0
docs/reference/ChangeLog
docs/reference/ChangeLog
+2
-0
docs/reference/gtk/tmpl/gtkselection.sgml
docs/reference/gtk/tmpl/gtkselection.sgml
+39
-66
gtk/gtkselection.c
gtk/gtkselection.c
+6
-6
No files found.
ChangeLog
View file @
c5eedc04
2005-05-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkselection.c: Small doc fixes.
* gtk/gtkmenushell.c (gtk_menu_shell_set_take_focus):
(gtk_menu_shell_get_take_focus): Fix up the docs a bit.
...
...
ChangeLog.pre-2-10
View file @
c5eedc04
2005-05-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkselection.c: Small doc fixes.
* gtk/gtkmenushell.c (gtk_menu_shell_set_take_focus):
(gtk_menu_shell_get_take_focus): Fix up the docs a bit.
...
...
ChangeLog.pre-2-8
View file @
c5eedc04
2005-05-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkselection.c: Small doc fixes.
* gtk/gtkmenushell.c (gtk_menu_shell_set_take_focus):
(gtk_menu_shell_get_take_focus): Fix up the docs a bit.
...
...
docs/reference/ChangeLog
View file @
c5eedc04
2005-05-02 Matthias Clasen <mclasen@redhat.com>
* gtk/tmpl/gtkselection.sgml: Remove inlined docs.
* gtk/gtk-sections.txt: Remove nonexisting functions.
2005-04-29 Matthias Clasen <mclasen@redhat.com>
...
...
docs/reference/gtk/tmpl/gtkselection.sgml
View file @
c5eedc04
...
...
@@ -85,50 +85,44 @@ selection handling code.
<!-- ##### FUNCTION gtk_target_list_new ##### -->
<para>
Creates a new #GtkTargetList from an array of #GtkTargetEntry.
</para>
@targets:
Pointer to an array of #GtkTargetEntry
@ntargets:
number of entries in @targets.
@Returns:
the new #GtkTargetList.
@targets:
@ntargets:
@Returns:
<!-- ##### FUNCTION gtk_target_list_ref ##### -->
<para>
Increases the reference count of a #GtkTargetList by one.
</para>
@list:
a #GtkTargetList
@list:
<!-- ##### FUNCTION gtk_target_list_unref ##### -->
<para>
Decreases the reference count of a #GtkTargetList by one.
If the resulting reference count is zero, frees the list.
</para>
@list:
a #GtkTargetList
@list:
<!-- ##### FUNCTION gtk_target_list_add ##### -->
<para>
Adds another target to a #GtkTargetList.
</para>
@list:
a #GtkTargetList
@target:
the interned atom representing the target
@flags:
the flags for this target
@info:
an ID that will be passed back to the application
@list:
@target:
@flags:
@info:
<!-- ##### FUNCTION gtk_target_list_add_table ##### -->
<para>
Adds a table of #GtkTargetEntry into a target list.
</para>
@list:
a #GtkTargetList
@targets:
the table of #GtkTargetEntry
@ntargets:
number of targets in the table
@list:
@targets:
@ntargets:
<!-- ##### FUNCTION gtk_target_list_add_text_targets ##### -->
...
...
@@ -161,22 +155,20 @@ Adds a table of #GtkTargetEntry into a target list.
<!-- ##### FUNCTION gtk_target_list_remove ##### -->
<para>
Removes a target from a target list.
</para>
@list:
a #GtkTargetList
@target:
the interned atom representing the target
@list:
@target:
<!-- ##### FUNCTION gtk_target_list_find ##### -->
<para>
Looks up a given target in a #GtkTargetList.
</para>
@list:
a #GtkTargetList
@target:
an interned atom representing the target to search for
@info:
a pointer to the location to store application info for target
@Returns:
%TRUE if the target was found, otherwise %FALSE
@list:
@target:
@info:
@Returns:
<!-- ##### FUNCTION gtk_selection_owner_set ##### -->
...
...
@@ -203,26 +195,22 @@ Looks up a given target in a #GtkTargetList.
<!-- ##### FUNCTION gtk_selection_add_target ##### -->
<para>
Adds specified target to the list of supported targets for a
given widget and selection.
</para>
@widget:
a #GtkTarget
@selection:
the selection
@target:
target to add.
@info:
A unsigned integer which will be passed back to the application.
@widget:
@selection:
@target:
@info:
<!-- ##### FUNCTION gtk_selection_add_targets ##### -->
<para>
Adds a table of targets to the list of supported targets
for a given widget and selection.
</para>
@widget:
a #GtkWidget
@selection:
the selection
@targets:
a table of targets to add
@ntargets:
number of entries in @targets
@widget:
@selection:
@targets:
@ntargets:
<!-- ##### FUNCTION gtk_selection_clear_targets ##### -->
...
...
@@ -236,32 +224,24 @@ for a given widget and selection.
<!-- ##### FUNCTION gtk_selection_convert ##### -->
<para>
Requests the contents of a selection. When received,
a "selection_received" signal will be generated.
</para>
@widget: The widget which acts as requestor
@selection: Which selection to get
@target: Form of information desired (e.g., STRING)
@time_: Time of request (usually of triggering event)
In emergency, you could use #GDK_CURRENT_TIME
@Returns: %TRUE if requested succeeded. %FALSE if we could not process
request. (e.g., there was already a request in process for
this widget).
@widget:
@selection:
@target:
@time_:
@Returns: x
<!-- ##### FUNCTION gtk_selection_data_set ##### -->
<para>
Stores new data into a #GtkSelectionData object. Should
<emphasis>only</emphasis> be called from a selection handler callback.
Zero-terminates the stored data.
</para>
@selection_data:
@type:
the type of selection data
@format:
format (number of bits in a unit)
@data:
pointer to the data (will be copied)
@length:
length of the data
@type:
@format:
@data:
@length:
<!-- ##### FUNCTION gtk_selection_data_set_text ##### -->
...
...
@@ -354,13 +334,9 @@ Zero-terminates the stored data.
<!-- ##### FUNCTION gtk_selection_remove_all ##### -->
<para>
Removes all handlers and unsets ownership of all
selections for a widget. Called when widget is being
destroyed. This function will not generally be
called by applications.
</para>
@widget:
a #GtkWidget
@widget:
<!-- ##### FUNCTION gtk_selection_clear ##### -->
...
...
@@ -374,19 +350,16 @@ called by applications.
<!-- ##### FUNCTION gtk_selection_data_copy ##### -->
<para>
Makes a copy of a #GtkSelectionData structure and its data.
</para>
@data:
a pointer to a #GtkSelectionData structure.
@Returns:
a pointer to a copy of @data.
@data:
@Returns:
<!-- ##### FUNCTION gtk_selection_data_free ##### -->
<para>
Frees a #GtkSelectionData structure returned from
gtk_selection_data_copy().
</para>
@data:
a pointer to a #GtkSelectionData structure.
@data:
gtk/gtkselection.c
View file @
c5eedc04
...
...
@@ -2553,26 +2553,26 @@ gtk_selection_default_handler (GtkWidget *widget,
/**
* gtk_selection_data_copy:
* @
selection_
data: a pointer to a #GtkSelectionData structure.
* @data: a pointer to a #GtkSelectionData structure.
*
* Makes a copy of a #GtkSelectionData structure and its data.
*
* Return value: a pointer to a copy of @data.
**/
GtkSelectionData
*
gtk_selection_data_copy
(
GtkSelectionData
*
selection_
data
)
gtk_selection_data_copy
(
GtkSelectionData
*
data
)
{
GtkSelectionData
*
new_data
;
g_return_val_if_fail
(
selection_
data
!=
NULL
,
NULL
);
g_return_val_if_fail
(
data
!=
NULL
,
NULL
);
new_data
=
g_new
(
GtkSelectionData
,
1
);
*
new_data
=
*
selection_data
;
if
(
selection_
data
->
data
)
if
(
data
->
data
)
{
new_data
->
data
=
g_malloc
(
selection_
data
->
length
+
1
);
memcpy
(
new_data
->
data
,
selection_data
->
data
,
selection_
data
->
length
+
1
);
new_data
->
data
=
g_malloc
(
data
->
length
+
1
);
memcpy
(
new_data
->
data
,
data
->
data
,
data
->
length
+
1
);
}
return
new_data
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment