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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
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
Oblomov
gtk
Commits
7b5763fd
Commit
7b5763fd
authored
Jul 28, 1998
by
Lars Hamann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fix for border drawing bug
* gtk/gtknotebook.c (gtk_notebook_paint): small fix for border drawing bug
parent
0e7cab34
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
161 additions
and
73 deletions
+161
-73
ChangeLog
ChangeLog
+5
-0
ChangeLog.pre-2-0
ChangeLog.pre-2-0
+5
-0
ChangeLog.pre-2-10
ChangeLog.pre-2-10
+5
-0
ChangeLog.pre-2-2
ChangeLog.pre-2-2
+5
-0
ChangeLog.pre-2-4
ChangeLog.pre-2-4
+5
-0
ChangeLog.pre-2-6
ChangeLog.pre-2-6
+5
-0
ChangeLog.pre-2-8
ChangeLog.pre-2-8
+5
-0
gtk/gtknotebook.c
gtk/gtknotebook.c
+126
-73
No files found.
ChangeLog
View file @
7b5763fd
Tue Jul 28 00:03:20 1998 Lars Hamann <lars@gtk.org>
* gtk/gtknotebook.c (gtk_notebook_paint): small fix for border drawing
bug
Tue Jul 28 00:15:28 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
Tue Jul 28 00:15:28 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* docs/gdk.sgml: new format for GDK documentation. Eventually
* docs/gdk.sgml: new format for GDK documentation. Eventually
...
...
ChangeLog.pre-2-0
View file @
7b5763fd
Tue Jul 28 00:03:20 1998 Lars Hamann <lars@gtk.org>
* gtk/gtknotebook.c (gtk_notebook_paint): small fix for border drawing
bug
Tue Jul 28 00:15:28 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
Tue Jul 28 00:15:28 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* docs/gdk.sgml: new format for GDK documentation. Eventually
* docs/gdk.sgml: new format for GDK documentation. Eventually
...
...
ChangeLog.pre-2-10
View file @
7b5763fd
Tue Jul 28 00:03:20 1998 Lars Hamann <lars@gtk.org>
* gtk/gtknotebook.c (gtk_notebook_paint): small fix for border drawing
bug
Tue Jul 28 00:15:28 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
Tue Jul 28 00:15:28 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* docs/gdk.sgml: new format for GDK documentation. Eventually
* docs/gdk.sgml: new format for GDK documentation. Eventually
...
...
ChangeLog.pre-2-2
View file @
7b5763fd
Tue Jul 28 00:03:20 1998 Lars Hamann <lars@gtk.org>
* gtk/gtknotebook.c (gtk_notebook_paint): small fix for border drawing
bug
Tue Jul 28 00:15:28 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
Tue Jul 28 00:15:28 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* docs/gdk.sgml: new format for GDK documentation. Eventually
* docs/gdk.sgml: new format for GDK documentation. Eventually
...
...
ChangeLog.pre-2-4
View file @
7b5763fd
Tue Jul 28 00:03:20 1998 Lars Hamann <lars@gtk.org>
* gtk/gtknotebook.c (gtk_notebook_paint): small fix for border drawing
bug
Tue Jul 28 00:15:28 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
Tue Jul 28 00:15:28 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* docs/gdk.sgml: new format for GDK documentation. Eventually
* docs/gdk.sgml: new format for GDK documentation. Eventually
...
...
ChangeLog.pre-2-6
View file @
7b5763fd
Tue Jul 28 00:03:20 1998 Lars Hamann <lars@gtk.org>
* gtk/gtknotebook.c (gtk_notebook_paint): small fix for border drawing
bug
Tue Jul 28 00:15:28 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
Tue Jul 28 00:15:28 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* docs/gdk.sgml: new format for GDK documentation. Eventually
* docs/gdk.sgml: new format for GDK documentation. Eventually
...
...
ChangeLog.pre-2-8
View file @
7b5763fd
Tue Jul 28 00:03:20 1998 Lars Hamann <lars@gtk.org>
* gtk/gtknotebook.c (gtk_notebook_paint): small fix for border drawing
bug
Tue Jul 28 00:15:28 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
Tue Jul 28 00:15:28 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* docs/gdk.sgml: new format for GDK documentation. Eventually
* docs/gdk.sgml: new format for GDK documentation. Eventually
...
...
gtk/gtknotebook.c
View file @
7b5763fd
...
@@ -1662,6 +1662,8 @@ gtk_notebook_paint (GtkWidget *widget,
...
@@ -1662,6 +1662,8 @@ gtk_notebook_paint (GtkWidget *widget,
}
}
else
else
{
{
gint
i
=
0
;
switch
(
notebook
->
tab_pos
)
switch
(
notebook
->
tab_pos
)
{
{
case
GTK_POS_TOP
:
case
GTK_POS_TOP
:
...
@@ -1675,90 +1677,141 @@ gtk_notebook_paint (GtkWidget *widget,
...
@@ -1675,90 +1677,141 @@ gtk_notebook_paint (GtkWidget *widget,
width
-=
notebook
->
cur_page
->
allocation
.
width
;
width
-=
notebook
->
cur_page
->
allocation
.
width
;
break
;
break
;
}
}
switch
(
notebook
->
tab_pos
)
switch
(
notebook
->
tab_pos
)
{
{
case
GTK_POS_TOP
:
case
GTK_POS_TOP
:
points
[
0
].
x
=
notebook
->
cur_page
->
allocation
.
x
;
if
(
x
!=
notebook
->
cur_page
->
allocation
.
x
)
points
[
0
].
y
=
y
;
{
points
[
1
].
x
=
x
;
points
[
i
].
x
=
notebook
->
cur_page
->
allocation
.
x
;
points
[
1
].
y
=
y
;
points
[
i
++
].
y
=
y
;
points
[
2
].
x
=
x
;
}
points
[
2
].
y
=
y
+
height
-
1
;
points
[
3
].
x
=
x
+
width
-
1
;
points
[
i
].
x
=
x
;
points
[
3
].
y
=
y
+
height
-
1
;
points
[
i
++
].
y
=
y
;
points
[
4
].
x
=
x
+
width
-
1
;
points
[
i
].
x
=
x
;
points
[
4
].
y
=
y
;
points
[
i
++
].
y
=
y
+
height
-
1
;
points
[
5
].
x
=
(
notebook
->
cur_page
->
allocation
.
x
+
points
[
i
].
x
=
x
+
width
-
1
;
notebook
->
cur_page
->
allocation
.
width
-
points
[
i
++
].
y
=
y
+
height
-
1
;
widget
->
style
->
klass
->
xthickness
);
points
[
i
].
x
=
x
+
width
-
1
;
points
[
5
].
y
=
y
;
points
[
i
++
].
y
=
y
;
if
(
points
[
5
].
x
==
(
x
+
width
))
if
((
notebook
->
cur_page
->
allocation
.
x
+
points
[
5
].
x
-=
1
;
notebook
->
cur_page
->
allocation
.
width
-
widget
->
style
->
klass
->
xthickness
)
<
x
+
width
-
widget
->
style
->
klass
->
xthickness
)
{
points
[
i
].
x
=
(
notebook
->
cur_page
->
allocation
.
x
+
notebook
->
cur_page
->
allocation
.
width
-
widget
->
style
->
klass
->
xthickness
);
if
(
points
[
i
].
x
==
(
x
+
width
))
points
[
i
].
x
-=
1
;
points
[
i
++
].
y
=
y
;
}
break
;
break
;
case
GTK_POS_BOTTOM
:
case
GTK_POS_BOTTOM
:
points
[
0
].
x
=
(
notebook
->
cur_page
->
allocation
.
x
+
if
((
notebook
->
cur_page
->
allocation
.
x
+
notebook
->
cur_page
->
allocation
.
width
-
notebook
->
cur_page
->
allocation
.
width
-
widget
->
style
->
klass
->
xthickness
);
widget
->
style
->
klass
->
xthickness
)
<
points
[
0
].
y
=
y
+
height
-
1
;
x
+
width
-
widget
->
style
->
klass
->
xthickness
)
points
[
1
].
x
=
x
+
width
-
1
;
{
points
[
1
].
y
=
y
+
height
-
1
;
points
[
i
].
x
=
(
notebook
->
cur_page
->
allocation
.
x
+
points
[
2
].
x
=
x
+
width
-
1
;
notebook
->
cur_page
->
allocation
.
width
-
points
[
2
].
y
=
y
;
widget
->
style
->
klass
->
xthickness
);
points
[
3
].
x
=
x
;
points
[
3
].
y
=
y
;
if
(
points
[
i
].
x
==
(
x
+
width
))
points
[
4
].
x
=
x
;
points
[
i
].
x
-=
1
;
points
[
4
].
y
=
y
+
height
-
1
;
points
[
5
].
x
=
notebook
->
cur_page
->
allocation
.
x
;
points
[
i
++
].
y
=
y
+
height
-
1
;
points
[
5
].
y
=
y
+
height
-
1
;
}
if
(
points
[
0
].
x
==
(
x
+
width
))
points
[
i
].
x
=
x
+
width
-
1
;
points
[
0
].
x
-=
1
;
points
[
i
++
].
y
=
y
+
height
-
1
;
points
[
i
].
x
=
x
+
width
-
1
;
points
[
i
++
].
y
=
y
;
points
[
i
].
x
=
x
;
points
[
i
++
].
y
=
y
;
points
[
i
].
x
=
x
;
points
[
i
++
].
y
=
y
+
height
-
1
;
if
(
notebook
->
cur_page
->
allocation
.
x
!=
x
)
{
points
[
i
].
x
=
notebook
->
cur_page
->
allocation
.
x
;
points
[
i
++
].
y
=
y
+
height
-
1
;
}
break
;
break
;
case
GTK_POS_LEFT
:
case
GTK_POS_LEFT
:
points
[
0
].
x
=
x
;
if
((
notebook
->
cur_page
->
allocation
.
y
+
points
[
0
].
y
=
(
notebook
->
cur_page
->
allocation
.
y
+
notebook
->
cur_page
->
allocation
.
height
-
notebook
->
cur_page
->
allocation
.
height
-
widget
->
style
->
klass
->
ythickness
)
<
widget
->
style
->
klass
->
ythickness
);
y
+
height
-
widget
->
style
->
klass
->
ythickness
)
points
[
1
].
x
=
x
;
{
points
[
1
].
y
=
y
+
height
-
1
;
points
[
i
].
x
=
x
;
points
[
2
].
x
=
x
+
width
-
1
;
points
[
i
++
].
y
=
notebook
->
cur_page
->
allocation
.
y
+
points
[
2
].
y
=
y
+
height
-
1
;
notebook
->
cur_page
->
allocation
.
height
-
points
[
3
].
x
=
x
+
width
-
1
;
widget
->
style
->
klass
->
ythickness
;
points
[
3
].
y
=
y
;
points
[
4
].
x
=
x
;
if
(
points
[
0
].
y
==
(
y
+
height
))
points
[
4
].
y
=
y
;
points
[
0
].
y
-=
1
;
points
[
5
].
x
=
x
;
}
points
[
5
].
y
=
notebook
->
cur_page
->
allocation
.
y
;
points
[
i
].
x
=
x
;
if
(
points
[
0
].
y
==
(
y
+
height
))
points
[
i
++
].
y
=
y
+
height
-
1
;
points
[
0
].
y
-=
1
;
points
[
i
].
x
=
x
+
width
-
1
;
points
[
i
++
].
y
=
y
+
height
-
1
;
points
[
i
].
x
=
x
+
width
-
1
;
points
[
i
++
].
y
=
y
;
points
[
i
].
x
=
x
;
points
[
i
++
].
y
=
y
;
if
(
notebook
->
cur_page
->
allocation
.
y
!=
y
)
{
points
[
i
].
x
=
x
;
points
[
i
++
].
y
=
notebook
->
cur_page
->
allocation
.
y
;
}
break
;
break
;
case
GTK_POS_RIGHT
:
case
GTK_POS_RIGHT
:
points
[
0
].
x
=
x
+
width
-
1
;
if
(
notebook
->
cur_page
->
allocation
.
y
!=
y
)
points
[
0
].
y
=
notebook
->
cur_page
->
allocation
.
y
;
{
points
[
1
].
x
=
x
+
width
-
1
;
points
[
i
].
x
=
x
+
width
-
1
;
points
[
1
].
y
=
y
;
points
[
i
++
].
y
=
notebook
->
cur_page
->
allocation
.
y
;
points
[
2
].
x
=
x
;
}
points
[
2
].
y
=
y
;
points
[
3
].
x
=
x
;
points
[
i
].
x
=
x
+
width
-
1
;
points
[
3
].
y
=
y
+
height
-
1
;
points
[
i
++
].
y
=
y
;
points
[
4
].
x
=
x
+
width
-
1
;
points
[
i
].
x
=
x
;
points
[
4
].
y
=
y
+
height
-
1
;
points
[
i
++
].
y
=
y
;
points
[
5
].
x
=
x
+
width
-
1
;
points
[
i
].
x
=
x
;
points
[
5
].
y
=
(
notebook
->
cur_page
->
allocation
.
y
+
points
[
i
++
].
y
=
y
+
height
-
1
;
notebook
->
cur_page
->
allocation
.
height
-
points
[
i
].
x
=
x
+
width
-
1
;
widget
->
style
->
klass
->
ythickness
);
points
[
i
++
].
y
=
y
+
height
-
1
;
if
(
points
[
5
].
y
==
(
y
+
height
))
if
((
notebook
->
cur_page
->
allocation
.
y
+
points
[
5
].
y
-=
1
;
notebook
->
cur_page
->
allocation
.
height
-
widget
->
style
->
klass
->
ythickness
)
<
y
+
height
-
widget
->
style
->
klass
->
ythickness
)
{
points
[
i
].
x
=
x
+
width
-
1
;
points
[
i
++
].
y
=
notebook
->
cur_page
->
allocation
.
y
+
notebook
->
cur_page
->
allocation
.
height
-
widget
->
style
->
klass
->
ythickness
;
if
(
points
[
i
-
1
].
y
==
(
y
+
height
))
points
[
i
-
1
].
y
-=
1
;
}
break
;
break
;
}
}
gtk_draw_polygon
(
widget
->
style
,
widget
->
window
,
gtk_draw_polygon
(
widget
->
style
,
widget
->
window
,
GTK_STATE_NORMAL
,
GTK_SHADOW_OUT
,
GTK_STATE_NORMAL
,
GTK_SHADOW_OUT
,
points
,
6
,
FALSE
);
points
,
i
,
FALSE
);
}
}
children
=
g_list_last
(
notebook
->
children
);
children
=
g_list_last
(
notebook
->
children
);
showarrow
=
FALSE
;
showarrow
=
FALSE
;
...
...
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