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,124
Issues
1,124
List
Boards
Labels
Service Desk
Milestones
Merge Requests
153
Merge Requests
153
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
d00b2b0a
Commit
d00b2b0a
authored
Oct 29, 2002
by
Matthias Clasen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc comment fixes.
parent
ec84d8d1
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
69 additions
and
23 deletions
+69
-23
ChangeLog
ChangeLog
+8
-0
ChangeLog.pre-2-10
ChangeLog.pre-2-10
+8
-0
ChangeLog.pre-2-2
ChangeLog.pre-2-2
+8
-0
ChangeLog.pre-2-4
ChangeLog.pre-2-4
+8
-0
ChangeLog.pre-2-6
ChangeLog.pre-2-6
+8
-0
ChangeLog.pre-2-8
ChangeLog.pre-2-8
+8
-0
gdk/gdkcolor.c
gdk/gdkcolor.c
+0
-2
gdk/x11/gdkcolor-x11.c
gdk/x11/gdkcolor-x11.c
+14
-14
gdk/x11/gdkcursor-x11.c
gdk/x11/gdkcursor-x11.c
+7
-7
No files found.
ChangeLog
View file @
d00b2b0a
2002-10-29 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkcolor-x11.c (gdk_colors_free): Use the same parameter
names in header, docs and implementation.
* gdk/gdkcolor.c (gdk_colors_store): Doc comment fix.
* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Fix
example in doc comment.
* gtk/gtkiconfactory.c (gtk_icon_size_lookup_for_settings):
* gtk/gtkfilesel.c (gtk_file_selection_get_selections): Doc
comment fixes. (#97136, #97125, Vitaly Tishkov)
...
...
ChangeLog.pre-2-10
View file @
d00b2b0a
2002-10-29 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkcolor-x11.c (gdk_colors_free): Use the same parameter
names in header, docs and implementation.
* gdk/gdkcolor.c (gdk_colors_store): Doc comment fix.
* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Fix
example in doc comment.
* gtk/gtkiconfactory.c (gtk_icon_size_lookup_for_settings):
* gtk/gtkfilesel.c (gtk_file_selection_get_selections): Doc
comment fixes. (#97136, #97125, Vitaly Tishkov)
...
...
ChangeLog.pre-2-2
View file @
d00b2b0a
2002-10-29 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkcolor-x11.c (gdk_colors_free): Use the same parameter
names in header, docs and implementation.
* gdk/gdkcolor.c (gdk_colors_store): Doc comment fix.
* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Fix
example in doc comment.
* gtk/gtkiconfactory.c (gtk_icon_size_lookup_for_settings):
* gtk/gtkfilesel.c (gtk_file_selection_get_selections): Doc
comment fixes. (#97136, #97125, Vitaly Tishkov)
...
...
ChangeLog.pre-2-4
View file @
d00b2b0a
2002-10-29 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkcolor-x11.c (gdk_colors_free): Use the same parameter
names in header, docs and implementation.
* gdk/gdkcolor.c (gdk_colors_store): Doc comment fix.
* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Fix
example in doc comment.
* gtk/gtkiconfactory.c (gtk_icon_size_lookup_for_settings):
* gtk/gtkfilesel.c (gtk_file_selection_get_selections): Doc
comment fixes. (#97136, #97125, Vitaly Tishkov)
...
...
ChangeLog.pre-2-6
View file @
d00b2b0a
2002-10-29 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkcolor-x11.c (gdk_colors_free): Use the same parameter
names in header, docs and implementation.
* gdk/gdkcolor.c (gdk_colors_store): Doc comment fix.
* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Fix
example in doc comment.
* gtk/gtkiconfactory.c (gtk_icon_size_lookup_for_settings):
* gtk/gtkfilesel.c (gtk_file_selection_get_selections): Doc
comment fixes. (#97136, #97125, Vitaly Tishkov)
...
...
ChangeLog.pre-2-8
View file @
d00b2b0a
2002-10-29 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkcolor-x11.c (gdk_colors_free): Use the same parameter
names in header, docs and implementation.
* gdk/gdkcolor.c (gdk_colors_store): Doc comment fix.
* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Fix
example in doc comment.
* gtk/gtkiconfactory.c (gtk_icon_size_lookup_for_settings):
* gtk/gtkfilesel.c (gtk_file_selection_get_selections): Doc
comment fixes. (#97136, #97125, Vitaly Tishkov)
...
...
gdk/gdkcolor.c
View file @
d00b2b0a
...
...
@@ -82,8 +82,6 @@ gdk_colormap_get_visual (GdkColormap *colormap)
* Changes the value of the first @ncolors colors in
* a private colormap. This function is obsolete and
* should not be used. See gdk_color_change().
*
* Return value:
**/
void
gdk_colors_store
(
GdkColormap
*
colormap
,
...
...
gdk/x11/gdkcolor-x11.c
View file @
d00b2b0a
...
...
@@ -604,8 +604,8 @@ gdk_colors_alloc (GdkColormap *colormap,
/**
* gdk_colors_free:
* @colormap: a #GdkColormap.
* @
in_
pixels: the pixel values of the colors to free.
* @
in_
npixels: the number of values in @pixels.
* @pixels: the pixel values of the colors to free.
* @npixels: the number of values in @pixels.
* @planes: the plane masks for all planes to free, OR'd together.
*
* Frees colors allocated with gdk_colors_alloc(). This
...
...
@@ -613,17 +613,17 @@ gdk_colors_alloc (GdkColormap *colormap,
**/
void
gdk_colors_free
(
GdkColormap
*
colormap
,
gulong
*
in_
pixels
,
gint
in_
npixels
,
gulong
*
pixels
,
gint
npixels
,
gulong
planes
)
{
GdkColormapPrivateX11
*
private
;
gulong
*
pixels
;
gint
npixels
=
0
;
gulong
*
pixels
_to_free
;
gint
npixels
_to_free
=
0
;
gint
i
;
g_return_if_fail
(
GDK_IS_COLORMAP
(
colormap
));
g_return_if_fail
(
in_
pixels
!=
NULL
);
g_return_if_fail
(
pixels
!=
NULL
);
private
=
GDK_COLORMAP_PRIVATE_DATA
(
colormap
);
...
...
@@ -631,11 +631,11 @@ gdk_colors_free (GdkColormap *colormap,
(
colormap
->
visual
->
type
!=
GDK_VISUAL_GRAYSCALE
))
return
;
pixels
=
g_new
(
gulong
,
in_
npixels
);
pixels
_to_free
=
g_new
(
gulong
,
npixels
);
for
(
i
=
0
;
i
<
in_
npixels
;
i
++
)
for
(
i
=
0
;
i
<
npixels
;
i
++
)
{
gulong
pixel
=
in_
pixels
[
i
];
gulong
pixel
=
pixels
[
i
];
if
(
private
->
info
[
pixel
].
ref_count
)
{
...
...
@@ -643,7 +643,7 @@ gdk_colors_free (GdkColormap *colormap,
if
(
private
->
info
[
pixel
].
ref_count
==
0
)
{
pixels
[
npixels
++
]
=
pixel
;
pixels
_to_free
[
npixels_to_free
++
]
=
pixel
;
if
(
!
(
private
->
info
[
pixel
].
flags
&
GDK_COLOR_WRITEABLE
))
g_hash_table_remove
(
private
->
hash
,
&
colormap
->
colors
[
pixel
]);
private
->
info
[
pixel
].
flags
=
0
;
...
...
@@ -651,10 +651,10 @@ gdk_colors_free (GdkColormap *colormap,
}
}
if
(
npixels
&&
!
private
->
screen
->
closed
)
if
(
npixels
_to_free
&&
!
private
->
screen
->
closed
)
XFreeColors
(
GDK_SCREEN_XDISPLAY
(
private
->
screen
),
private
->
xcolormap
,
pixels
,
npixels
,
planes
);
g_free
(
pixels
);
pixels
_to_free
,
npixels_to_free
,
planes
);
g_free
(
pixels
_to_free
);
}
/* This is almost identical to gdk_colors_free.
...
...
gdk/x11/gdkcursor-x11.c
View file @
d00b2b0a
...
...
@@ -151,19 +151,19 @@ gdk_cursor_new_for_display (GdkDisplay *display,
* 0x80, 0x01, 0x40, 0x02, 0x20, 0x04, 0x10, 0x08, 0x08, 0x10, 0x04, 0x20,
* 0x82, 0x41, 0x41, 0x82, 0x41, 0x82, 0x82, 0x41, 0x04, 0x20, 0x08, 0x10,
* 0x10, 0x08, 0x20, 0x04, 0x40, 0x02, 0x80, 0x01};
*
*
* static unsigned char cursor1mask_bits[] = {
* 0x80, 0x01, 0xc0, 0x03, 0x60, 0x06, 0x30, 0x0c, 0x18, 0x18, 0x8c, 0x31,
* 0xc6, 0x63, 0x63, 0xc6, 0x63, 0xc6, 0xc6, 0x63, 0x8c, 0x31, 0x18, 0x18,
* 0x30, 0x0c, 0x60, 0x06, 0xc0, 0x03, 0x80, 0x01};
*
*
*
*
* GdkCursor *cursor;
* GdkPixmap *source, *mask;
* GdkColor fg = { 0, 65535, 0, 0 }; /<!-- -->* Red. *<!-- -->/
* GdkColor bg = { 0, 0, 0, 65535 }; /<!-- -->* Blue. *<!-- -->/
*
*
*
*
* source = gdk_bitmap_create_from_data (NULL, cursor1_bits,
* cursor1_width, cursor1_height);
* mask = gdk_bitmap_create_from_data (NULL, cursor1mask_bits,
...
...
@@ -171,8 +171,8 @@ gdk_cursor_new_for_display (GdkDisplay *display,
* cursor = gdk_cursor_new_from_pixmap (source, mask, &fg, &bg, 8, 8);
* gdk_pixmap_unref (source);
* gdk_pixmap_unref (mask);
*
*
*
*
* gdk_window_set_cursor (widget->window, cursor);
* </programlisting>
* </example>
...
...
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