Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xfce4-panel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xfce
xfce4-panel
Commits
d19e6009
Commit
d19e6009
authored
15 years ago
by
Nick Schermer
Browse files
Options
Downloads
Patches
Plain Diff
Better check for the lcd resize when the number of hour digits changes (bug #5218).
parent
d4759963
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/clock/clock-lcd.c
+7
-3
7 additions, 3 deletions
plugins/clock/clock-lcd.c
with
7 additions
and
3 deletions
plugins/clock/clock-lcd.c
+
7
−
3
View file @
d19e6009
...
...
@@ -327,8 +327,12 @@ xfce_clock_lcd_expose_event (GtkWidget *widget,
if
(
!
lcd
->
show_military
&&
ticks
>
12
)
ticks
-=
12
;
/* queue a resize when the number of hour digits changed */
if
(
G_UNLIKELY
((
ticks
==
10
||
ticks
==
0
)
&&
tm
.
tm_min
==
0
&&
tm
.
tm_sec
==
0
))
/* queue a resize when the number of hour digits changed,
* because we might miss the exact second (due to slightly delayed
* timeout) we queue a resize the first 3 seconds or anything in
* the first minute when seconds are disabled */
if
((
ticks
==
10
||
ticks
==
0
)
&&
tm
.
tm_min
==
0
&&
(
!
lcd
->
show_seconds
||
tm
.
tm_sec
<
3
))
gtk_widget_queue_resize
(
widget
);
if
(
ticks
>=
10
)
...
...
@@ -500,7 +504,7 @@ xfce_clock_lcd_draw_digit (cairo_t *cr,
{
3
,
2
,
1
,
0
,
5
,
6
,
-
1
},
{
4
,
5
,
0
,
1
,
2
,
6
,
-
1
},
{
4
,
5
,
0
,
1
,
6
,
-
1
}
};
g_return_val_if_fail
((
gint
)
number
>=
0
||
number
<=
11
,
offset_x
);
for
(
i
=
0
;
i
<
9
;
i
++
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment