Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b676f356
Commit
b676f356
authored
Mar 28, 2003
by
Jan Djärv
Browse files
* gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
of area to be redrawn for better performance.
parent
c337cd0a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
src/ChangeLog
src/ChangeLog
+5
-0
src/gtkutil.c
src/gtkutil.c
+13
-4
No files found.
src/ChangeLog
View file @
b676f356
2003-03-28 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
of area to be redrawn for better performance.
2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
* xterm.c (take_vertical_position_into_account): Remove.
...
...
src/gtkutil.c
View file @
b676f356
...
...
@@ -1383,8 +1383,6 @@ xg_keep_popup (menu, submenu)
G_CALLBACK
(
tearoff_remove
),
menu
);
}
int
xg_debug
=
0
;
/* Create a menu item widget, and connect the callbacks.
ITEM decribes the menu item.
F is the frame the created menu belongs to.
...
...
@@ -2949,8 +2947,19 @@ xg_tool_bar_item_expose_callback (w, event, client_data)
GdkEventExpose
*
event
;
gpointer
client_data
;
{
event
->
area
.
x
=
event
->
area
.
y
=
0
;
event
->
area
.
width
=
event
->
area
.
height
=
1000
;
gint
width
,
height
;
gdk_drawable_get_size
(
event
->
window
,
&
width
,
&
height
);
event
->
area
.
x
-=
width
>
event
->
area
.
width
?
width
-
event
->
area
.
width
:
0
;
event
->
area
.
y
-=
height
>
event
->
area
.
height
?
height
-
event
->
area
.
height
:
0
;
event
->
area
.
x
=
max
(
0
,
event
->
area
.
x
);
event
->
area
.
y
=
max
(
0
,
event
->
area
.
y
);
event
->
area
.
width
=
max
(
width
,
event
->
area
.
width
);
event
->
area
.
height
=
max
(
height
,
event
->
area
.
height
);
return
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