Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xfce4-screenshooter
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
Apps
xfce4-screenshooter
Commits
b0affb2c
Commit
b0affb2c
authored
10 years ago
by
Landry Breuil
Browse files
Options
Downloads
Patches
Plain Diff
Declare variable at the beginning of the function
parent
4b4de96f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
panel-plugin/screenshooter-plugin.c
+2
-1
2 additions, 1 deletion
panel-plugin/screenshooter-plugin.c
with
2 additions
and
1 deletion
panel-plugin/screenshooter-plugin.c
+
2
−
1
View file @
b0affb2c
...
@@ -115,13 +115,14 @@ static gboolean
...
@@ -115,13 +115,14 @@ static gboolean
cb_set_size
(
XfcePanelPlugin
*
plugin
,
int
size
,
PluginData
*
pd
)
cb_set_size
(
XfcePanelPlugin
*
plugin
,
int
size
,
PluginData
*
pd
)
{
{
GdkPixbuf
*
pb
;
GdkPixbuf
*
pb
;
int
width
;
#if defined (LIBXFCE4PANEL_CHECK_VERSION) && LIBXFCE4PANEL_CHECK_VERSION (4,9,0)
#if defined (LIBXFCE4PANEL_CHECK_VERSION) && LIBXFCE4PANEL_CHECK_VERSION (4,9,0)
/* reduce the size of the plugin to a single row */
/* reduce the size of the plugin to a single row */
size
/=
xfce_panel_plugin_get_nrows
(
plugin
);
size
/=
xfce_panel_plugin_get_nrows
(
plugin
);
#endif
#endif
int
width
=
size
-
2
-
2
*
MAX
(
pd
->
button
->
style
->
xthickness
,
width
=
size
-
2
-
2
*
MAX
(
pd
->
button
->
style
->
xthickness
,
pd
->
button
->
style
->
ythickness
);
pd
->
button
->
style
->
ythickness
);
TRACE
(
"Get the icon from the theme"
);
TRACE
(
"Get the icon from the theme"
);
...
...
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