@@ -256,7 +256,7 @@ ScreenshotNotification.prototype = {
256
256
// We hide all types of notifications once the user clicks on them because the common
257
257
// outcome of clicking should be the relevant window being brought forward and the user's
258
258
// attention switching to the window.
259
-
259
+
260
260
// if (!this.resident) {
261
261
// this.emit('done-displaying');
262
262
// global.log('destroying it');
@@ -433,7 +433,7 @@ MyApplet.prototype = {
433
433
else if ( this . _uuid ) {
434
434
global . log ( this . _uuid + ': ' + msg ) ;
435
435
}
436
-
436
+
437
437
} ,
438
438
439
439
_initSettings : function ( ) {
@@ -448,7 +448,7 @@ MyApplet.prototype = {
448
448
this . settings = new LocalSettings ( this . _uuid , this . _instanceId ) ;
449
449
this . _localSettings = true ;
450
450
}
451
-
451
+
452
452
this . settings . connect ( "settings-changed" , Lang . bind ( this , this . _onSettingsChanged ) ) ;
453
453
this . settings . connect ( "changed::camera-program" , Lang . bind ( this , this . _onRuntimeChanged ) ) ;
454
454
this . settings . connect ( "changed::recorder-program" , Lang . bind ( this , this . _onRuntimeChanged ) ) ;
@@ -526,7 +526,7 @@ MyApplet.prototype = {
526
526
return this . run_cinnamon_camera ( captureType , null , index ) ;
527
527
}
528
528
} ) ;
529
-
529
+
530
530
// Read current value and if set, add the hotkey
531
531
var curVal = this . settings . getValue ( key ) ;
532
532
if ( curVal != '' && curVal != null )
@@ -598,7 +598,7 @@ MyApplet.prototype = {
598
598
599
599
this . _notifLeftClickBehavior = this . settings . getValue ( 'notif-image-left-click' ) ;
600
600
this . _notifRightClickBehavior = this . settings . getValue ( 'notif-image-right-click' ) ;
601
-
601
+
602
602
this . _showDeleteAction = this . settings . getValue ( 'show-delete-action' ) ;
603
603
this . _showCopyPathAction = this . settings . getValue ( 'show-copy-path-action' ) ;
604
604
this . _showCopyDataAction = this . settings . getValue ( 'show-copy-data-action' ) ;
@@ -696,7 +696,7 @@ MyApplet.prototype = {
696
696
697
697
_onMenuKeyPress : function ( actor , event ) {
698
698
let symbol = event . get_key_symbol ( ) ;
699
-
699
+
700
700
if ( symbol == Clutter . Shift_L )
701
701
{
702
702
this . setModifier ( symbol , true ) ;
@@ -723,7 +723,7 @@ MyApplet.prototype = {
723
723
724
724
_init : function ( metadata , orientation , panelHeight , instanceId ) {
725
725
Applet . IconApplet . prototype . _init . call ( this , orientation ) ;
726
-
726
+
727
727
try {
728
728
this . _programs = { } ;
729
729
this . _programSupport = { } ;
@@ -765,7 +765,7 @@ MyApplet.prototype = {
765
765
this . openScreenshotsFolderItem = new Applet . MenuItem ( _ ( "Open screenshots folder" ) ,
766
766
'folder' , Lang . bind ( this , this . _openScreenshotsFolder ) ) ;
767
767
this . _applet_context_menu . addMenuItem ( this . openScreenshotsFolderItem ) ;
768
-
768
+
769
769
this . openRecordingsFolderItem = new Applet . MenuItem ( _ ( "Open recordings folder" ) ,
770
770
'folder' , Lang . bind ( this , this . _openRecordingsFolder ) ) ;
771
771
this . _applet_context_menu . addMenuItem ( this . openRecordingsFolderItem ) ;
@@ -801,7 +801,7 @@ MyApplet.prototype = {
801
801
this . _xfixesCursor = xfixesCursor ;
802
802
803
803
this . actor . add_style_class_name ( 'desktop-capture' ) ;
804
-
804
+
805
805
this . set_applet_tooltip ( _ ( "Screenshot and desktop video" ) ) ;
806
806
807
807
this . draw_menu ( orientation ) ;
@@ -827,7 +827,7 @@ MyApplet.prototype = {
827
827
828
828
_checkPaths : function ( force ) {
829
829
force = force || false ;
830
-
830
+
831
831
this . openScreenshotsFolderItem . setSensitive (
832
832
false != this . _getCreateFolder ( this . _cameraSaveDir , force ) ) ;
833
833
@@ -910,13 +910,13 @@ MyApplet.prototype = {
910
910
}
911
911
else {
912
912
this . _outputTitle = new PopupMenu . PopupIconMenuItem (
913
- _ ( "Camera" ) + ": " + this . get_camera_option ( 'title' ) ,
913
+ _ ( "Camera" ) + ": " + this . get_camera_option ( 'title' ) ,
914
914
"camera-photo" , St . IconType . SYMBOLIC ,
915
915
{ reactive : false } ) ;
916
916
}
917
917
918
918
this . menu . addMenuItem ( this . _outputTitle ) ;
919
-
919
+
920
920
if ( this . get_camera_program ( ) == 'cinnamon' ) {
921
921
let item = this . menu . addAction ( this . indent ( _ ( "Window" ) ) , Lang . bind ( this , function ( e ) {
922
922
return this . run_cinnamon_camera ( Screenshot . SelectionType . WINDOW , e ) ;
@@ -935,7 +935,7 @@ MyApplet.prototype = {
935
935
if ( Main . layoutManager . monitors . length > 1 ) {
936
936
Main . layoutManager . monitors . forEach ( function ( monitor , index ) {
937
937
if ( index < 3 ) {
938
- this . menu . addAction ( this . indent ( _ ( "Monitor %d" ) . format ( index + 1 ) ) ,
938
+ this . menu . addAction ( this . indent ( _ ( "Monitor %d" ) . format ( index + 1 ) ) ,
939
939
Lang . bind ( this , function ( e ) {
940
940
return this . run_cinnamon_camera ( Screenshot . SelectionType . MONITOR , e , index ) ;
941
941
} ) , 'kb-cs-monitor-' + index ) ;
@@ -944,7 +944,7 @@ MyApplet.prototype = {
944
944
}
945
945
946
946
this . _redoMenuItem = this . menu . addAction (
947
- this . indent ( _ ( "Repeat last" ) ) ,
947
+ this . indent ( _ ( "Repeat last" ) ) ,
948
948
Lang . bind ( this , this . repeat_cinnamon_camera ) ,
949
949
this . settings . getValue ( 'kb-cs-repeat' ) ) ;
950
950
@@ -1024,7 +1024,7 @@ MyApplet.prototype = {
1024
1024
optionSwitch . connect ( 'toggled' , Lang . bind ( this , function ( e1 , v ) {
1025
1025
this . _includeCursor = v ;
1026
1026
this . setSettingValue ( 'include-cursor' , v ) ;
1027
-
1027
+
1028
1028
if ( this . get_camera_program ( ) == CAMERA_PROGRAM_GNOME
1029
1029
&& null !== this . _ssSettings ) {
1030
1030
// We can't pass a cursor option to gnome-screenshot,
@@ -1067,7 +1067,7 @@ MyApplet.prototype = {
1067
1067
this._send_test_notification();
1068
1068
}));
1069
1069
}*/
1070
-
1070
+
1071
1071
1072
1072
if ( this . has_recorder ( ) )
1073
1073
{
@@ -1077,26 +1077,26 @@ MyApplet.prototype = {
1077
1077
1078
1078
if ( this . has_recorder_option ( 'gui' ) ) {
1079
1079
this . _outputTitle2 = new PopupMenu . PopupIconMenuItem (
1080
- _ ( "Recorder" ) + ": " + this . get_recorder_option ( 'title' ) ,
1080
+ _ ( "Recorder" ) + ": " + this . get_recorder_option ( 'title' ) ,
1081
1081
"media-record" , St . IconType . SYMBOLIC ) ;
1082
-
1082
+
1083
1083
let guiCommand = this . get_recorder_option ( 'gui' ) ;
1084
1084
this . _outputTitle2 . connect ( 'activate' , Lang . bind ( this , function ( menuItem , event ) {
1085
1085
this . Exec ( guiCommand ) ;
1086
1086
} ) ) ;
1087
1087
}
1088
1088
else {
1089
1089
this . _outputTitle2 = new PopupMenu . PopupIconMenuItem (
1090
- _ ( "Recorder" ) + ": " + this . get_recorder_option ( 'title' ) ,
1090
+ _ ( "Recorder" ) + ": " + this . get_recorder_option ( 'title' ) ,
1091
1091
"media-record" , St . IconType . SYMBOLIC , { reactive : false } ) ;
1092
1092
}
1093
-
1093
+
1094
1094
this . menu . addMenuItem ( this . _outputTitle2 ) ;
1095
1095
1096
1096
if ( this . get_recorder_program ( ) == 'cinnamon' )
1097
1097
{
1098
1098
this . _cRecorderItem = this . menu . addAction (
1099
- this . indent ( _ ( "Start recording" ) ) ,
1099
+ this . indent ( _ ( "Start recording" ) ) ,
1100
1100
Lang . bind ( this , this . _toggle_cinnamon_recorder ) ,
1101
1101
this . settings . getValue ( 'kb-recorder-stop' ) ) ;
1102
1102
// We could try to listen for when recording is activated
@@ -1116,7 +1116,7 @@ MyApplet.prototype = {
1116
1116
soundSwitch . connect ( 'toggled' , Lang . bind ( this , function ( e1 , v ) {
1117
1117
this . _recordSound = v ;
1118
1118
this . setSettingValue ( 'record-sound' , v ) ;
1119
-
1119
+
1120
1120
return false ;
1121
1121
} ) ) ;
1122
1122
this . menu . addMenuItem ( soundSwitch ) ;
@@ -1303,12 +1303,10 @@ MyApplet.prototype = {
1303
1303
1304
1304
let image_file = Gio . file_new_for_path ( screenshot . file ) ;
1305
1305
let image_uri = image_file . get_uri ( ) ;
1306
- let scaleFactor = St . ThemeContext . get_for_stage ( global . stage ) . scale_factor ;
1307
1306
let image_texture = St . TextureCache . get_default ( ) . load_uri_sync (
1308
1307
St . TextureCachePolicy . NONE ,
1309
- image_uri ,
1310
- this . _notificationImageSize , this . _notificationImageSize ,
1311
- scaleFactor ) ;
1308
+ image_uri ,
1309
+ this . _notificationImageSize , this . _notificationImageSize ) ;
1312
1310
1313
1311
//global.tex = image_texture;
1314
1312
@@ -1329,7 +1327,7 @@ MyApplet.prototype = {
1329
1327
//notification.addButton('custom', this._customActionLabel);
1330
1328
//}
1331
1329
1332
- notification . connect ( 'action-invoked' , Lang . bind ( this , function ( n , action_id ) {
1330
+ notification . connect ( 'action-invoked' , Lang . bind ( this , function ( n , action_id ) {
1333
1331
// global.log('Action invoked from notification: ' + action_id);
1334
1332
return this . handleNotificationResponse ( screenshot , action_id , n ) ;
1335
1333
} ) ) ;
@@ -1522,7 +1520,7 @@ MyApplet.prototype = {
1522
1520
1523
1521
let fnCapture = Lang . bind ( this , function ( ) {
1524
1522
new Screenshot . ScreenshotHelper ( type , Lang . bind ( this , this . cinnamon_camera_complete ) ,
1525
- {
1523
+ {
1526
1524
includeCursor : this . _includeCursor ,
1527
1525
useFlash : this . _useCameraFlash ,
1528
1526
includeFrame : this . _includeWindowFrame ,
@@ -1621,7 +1619,7 @@ MyApplet.prototype = {
1621
1619
{
1622
1620
return false ;
1623
1621
}
1624
-
1622
+
1625
1623
let file = Gio . file_new_for_path ( folderPath + '/' + fileName + '.' + fileExtension ) ;
1626
1624
let desiredFilepath = file . get_path ( ) ;
1627
1625
try {
@@ -1645,7 +1643,7 @@ MyApplet.prototype = {
1645
1643
if ( this . cRecorder . is_recording ( ) ) {
1646
1644
this . cRecorder . pause ( ) ;
1647
1645
Meta . enable_unredirect_for_screen ( global . screen ) ;
1648
-
1646
+
1649
1647
if ( ! this . _useSymbolicIcon ) {
1650
1648
this . set_applet_icon_path ( ICON_FILE ) ;
1651
1649
}
@@ -1927,7 +1925,7 @@ MyApplet.prototype = {
1927
1925
else {
1928
1926
options = this . get_recorder_options ( ) ;
1929
1927
}
1930
-
1928
+
1931
1929
let cmd = options [ 'custom' ] [ custom ] ;
1932
1930
1933
1931
if ( ! cmd ) {
@@ -2124,7 +2122,7 @@ MyApplet.prototype = {
2124
2122
2125
2123
let accessToken , refreshToken , albumId ;
2126
2124
2127
- let cmd = [ AppletDir + "/imgur-setup.js" , AppletDir ,
2125
+ let cmd = [ AppletDir + "/imgur-setup.js" , AppletDir ,
2128
2126
this . _imgurAccessToken , this . _imgurRefreshToken , this . _imgurAlbumId
2129
2127
] . join ( ' ' ) ;
2130
2128
@@ -2275,7 +2273,7 @@ function main(metadata, orientation, panelHeight, instanceId) {
2275
2273
Screenshot = imports . screenshot ;
2276
2274
Services = imports . services ;
2277
2275
AppUtil = imports . apputil ;
2278
-
2276
+
2279
2277
SUPPORT_FILE = AppletDir + '/support.json' ;
2280
2278
ICON_FILE = AppletDir + '/icon.png' ;
2281
2279
ICON_FILE_ACTIVE = AppletDir + '/icon-active.png' ;
0 commit comments