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
b42c0e55
Commit
b42c0e55
authored
16 years ago
by
Jerome Guelfucci
Browse files
Options
Downloads
Patches
Plain Diff
Patch by Mike Massonnet to improve the main dialog.
(Old svn revision: 6866)
parent
8e388691
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+14
-1
14 additions, 1 deletion
ChangeLog
TODO
+0
-1
0 additions, 1 deletion
TODO
lib/screenshooter-dialogs.c
+11
-7
11 additions, 7 deletions
lib/screenshooter-dialogs.c
with
25 additions
and
9 deletions
ChangeLog
+
14
−
1
View file @
b42c0e55
2009-03-08 jeromeg
Patch from Mike Massonnet.
* lib/screenshooter-dialogs.c (screenshooter_dialog_new):
- use "Ok" and "Cancel" buttons to make the layout cleaner.
- do not display a separator to be consistent with other goodies.
- improve the label of the mouse check box.
- add a subtitile for the dialog.
- the dialog does not need to be resizable, widgets are not resized
dynamically.
- tweak the spacing of the delay spin button box.
2009-03-08 jeromeg
Now, when taking a region screenshot, the Escape key cancels everything.
* lib/screenshooter-actions.c: don't do anything if the screenshot is
NULL.
* lib/screenshooter-utils.c
* lib/screenshooter-utils.c
:
- include the keysim header.
- (get_rectangle_screenshot):
+ grab the keyboard.
...
...
This diff is collapsed.
Click to expand it.
TODO
+
0
−
1
View file @
b42c0e55
* Port "select a region" to use cairo to have transparent rubber banding
as in thunar and xfdesktop.
* When selecting a region, Escape should cancel everything.
* Check for leaks using valgrind.
* Use Xshape to have a transparent background in the generated screenshots.
...
...
This diff is collapsed.
Click to expand it.
lib/screenshooter-dialogs.c
+
11
−
7
View file @
b42c0e55
...
...
@@ -479,23 +479,26 @@ GtkWidget *screenshooter_dialog_new (ScreenshotData *sd,
if
(
!
plugin
)
{
dlg
=
xfce_titled_dialog_new_with_buttons
(
_
(
"
Take a s
creenshot"
),
xfce_titled_dialog_new_with_buttons
(
_
(
"
S
creenshot"
),
NULL
,
GTK_DIALOG_DESTROY_WITH_PARENT
,
GTK_DIALOG_DESTROY_WITH_PARENT
|
GTK_DIALOG_NO_SEPARATOR
,
GTK_STOCK_HELP
,
GTK_RESPONSE_HELP
,
GTK_STOCK_C
LOSE
,
GTK_STOCK_C
ANCEL
,
GTK_RESPONSE_CANCEL
,
_
(
"Take"
)
,
GTK_STOCK_OK
,
GTK_RESPONSE_OK
,
NULL
);
xfce_titled_dialog_set_subtitle
(
XFCE_TITLED_DIALOG
(
dlg
),
_
(
"Take a screenshot"
));
}
else
{
dlg
=
xfce_titled_dialog_new_with_buttons
(
_
(
"Screenshot"
),
NULL
,
GTK_DIALOG_DESTROY_WITH_PARENT
,
GTK_DIALOG_DESTROY_WITH_PARENT
|
GTK_DIALOG_NO_SEPARATOR
,
GTK_STOCK_HELP
,
GTK_RESPONSE_HELP
,
GTK_STOCK_CLOSE
,
...
...
@@ -507,6 +510,7 @@ GtkWidget *screenshooter_dialog_new (ScreenshotData *sd,
}
gtk_window_set_position
(
GTK_WINDOW
(
dlg
),
GTK_WIN_POS_CENTER
);
gtk_window_set_resizable
(
GTK_WINDOW
(
dlg
),
FALSE
);
gtk_container_set_border_width
(
GTK_CONTAINER
(
dlg
),
0
);
gtk_window_set_icon_name
(
GTK_WINDOW
(
dlg
),
"applets-screenshooter"
);
...
...
@@ -620,7 +624,7 @@ GtkWidget *screenshooter_dialog_new (ScreenshotData *sd,
/* Create show mouse checkbox */
show_mouse_checkbox
=
gtk_check_button_new_with_label
(
_
(
"
Display
the mouse pointer
on the screenshot
"
));
gtk_check_button_new_with_label
(
_
(
"
Capture
the mouse pointer"
));
gtk_toggle_button_set_active
(
GTK_TOGGLE_BUTTON
(
show_mouse_checkbox
),
(
sd
->
show_mouse
==
1
));
...
...
@@ -669,7 +673,7 @@ GtkWidget *screenshooter_dialog_new (ScreenshotData *sd,
/* Create delay spinner */
delay_spinner_box
=
gtk_hbox_new
(
FALSE
,
12
);
delay_spinner_box
=
gtk_hbox_new
(
FALSE
,
4
);
gtk_widget_show
(
delay_spinner_box
);
...
...
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